-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does it work on Windows? #44
Comments
Hi @alex-shamshurin, Will start looking into this and do a release to fix it. Thank you for reporting! |
Sorry, but is there any progress? I think it's only replace slashes... |
@alex-shamshurin I will look into this this weekend and do a release to fix it but please feel free to submit a PR in the meantime. |
I have just downloaded a windows virtual machine and will investigate this issue tomorrow. |
Did not have a chance to look into this yet, if anyone has some time feel free to pick it up. Will try to find some time to look into it tomorrow |
Ok, I think it's very easy, but I do not know vim-script |
Hmm, how to debug it? Prettier really works from command line (from project node_modules.bin) and :Prettier command does not provide any error output. It just do nothing. may be it is expected |
Hi @alex-shamshurin, There are 3 ways that A - It looks to find the B - If [A] fails then - It looks for a global C - If [B] fails then - It looks for the * - As per the readme this assumes you have either used Would be great if you could provide more information on how is it failing for you so that I can better assist you.
|
|
Please reopen this issue, until it solved |
Have you set any of the configuration variables for vim-prettier? I ask because I've noticed a separate issue where the async version does nothing yet reports no errors. |
Hi @alex-shamshurin, I have re-opened this issue to try to help solving your problem, I still cannot reproduce this issue that you have described. I have however confirmed the bug where PrettierAsync is not working on windows created by @boojinks . The command To better debug this issue would be great to know your Also Could you try running vim with just Thanks for your patience, happy to work together with you to make sure you are unblocked. |
I've disabled all other plugins except |
Also I have disabled all plugin settings and it did not help |
Hmm, I added some debug points to
result is "Before Async"
message is "In Exec ASync if change
It then goes to sync mode and did job. So please fix it! |
I suspected it might be the same problem I was having. I don't have access to put in a pull request at the moment but the below should fix it for you.
If it does, could you do me a massive favour and put in a PR? Thank you. |
Thank you both of you @boojinks and @alex-shamshurin for working together on this issue, will test the above code and submit a PR for it. One thing that I cannot understand is why on @alex-shamshurin he was going to the async code path, the default @alex-shamshurin do you have this line on your g:prettier#exec_cmd_async=1 Once again thank you all for working together on this issue :) |
Yes, I have this option set. |
I disabled that option and :Prettitier works fine now, even without patching the file with |
@alex-shamshurin I have just done a release for version 0.0.14 with that fix |
Prettier cli works from windows console, but
:Prettier
does not.The text was updated successfully, but these errors were encountered: