-
Notifications
You must be signed in to change notification settings - Fork 132
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
Windows support #5
Comments
@asampal Thanks, I believe I know how to fix this. I've accidentally shipped an OS X binary I believe ;) |
Great - looking forward to the fix. |
@asampal Could you try installing version |
@asampal Please reopen if you're still having issues 🙂 |
I'm still seeing the same problem @mads-hartmann . Should the Windows binary be built automatically when the extension is installed? The error message is exactly the same, so it looks like the extension is still somehow not building for Windows. |
Could it be that my system is somehow being detected as running OS X? |
@asampal I'm trying a different approach. Can you run |
I get this when I try to install the language server:
|
The full log is for the above is: 2018-03-03T21_03_30_599Z-debug.log I had already installed node-gyp as per, instructions, along with it's dependency of the Microsoft Build Tools (for VS 20017). |
Maybe you could, at least as an option, use the WSL (Windows Subsystem for Linux) for what you need to do. Since the Fall Creators Update it's quite interoperable with Windows. Some of the files here might be of help. |
@asampal I'd love your help on this. I don't have access to a windows computer right now so it's hard for me to work on it and my knowledge of windows is very limited. |
The goal is to get |
After playing around with various settings of
But looking in my environment variables I found the relevant folder ( |
@mads-hartmann: Could you try both cases of command, |
@seflue Definitely. I should be able to detect if you're on windows or not and then use the |
@seflue I've published version |
@mads-hartmann: I tried the new version, but I still get the same error. It would be nice if you can write out some error log, to check, what is going wrong when the plugin tries to execute the command. |
@seflue Thanks for trying :) I'll add some more logging. Could you explain how you managed to install it on Windows? That would make it possible for me to debug it :) |
@mads-hartmann: I can't give you an exact recipe, but I fiddled around a little bit with the tips on the Internet. I ran |
Here's what I get: C:\WINDOWS\system32>bash-language-server C:\WINDOWS\system32>bash-language-server.cmd Could you somehow be quoting the path of the program and the argument before calling it? EDIT: Nevermind! I wasn't putting start after it.. |
I may or may not be doing something wrong. Was unable to get it intsall on windows, so have installed on WSL and used the |
Lots of tinkering this afternoon, but didn't really get anywhere with it. It appears that attempting to run I did, however, discover that you can get it working under WSL by using the Linux version of Code via an Xserver. Bit of a hacky workaround I guess, but I'm satisfied with the outcome. TL;DR - Compile |
@PromoFaux Thanks for documenting your attempts :) I hope it will help other people to get it to work on Windows, even if it is using WSL 👍 |
should I use 'sh': ['bash-language-server', 'start'] bash-language-server start works well in cmd but not work when use in Vim |
Since this is still open, and there doesn't seem to be a clear recipe confirmed:
If you use the command with the '.cmd' suffix, you're all set! If you use the one with out the suffix, you'll get the dreaded: And I'm now using it locally, happily ever after. |
Thanks @beltaurus ! I'm using NVM For Windows so I had to set the "Bash Ide: Path" setting to something like: C:\Users\MyUserName\AppData\Roaming\nvm\v10.16.3\bash-language-server.cmd (note "nvm\v10.16.3" instead of npm in the path) and now it works 👍 |
With the new version (1.4.0) of the VS Code extension, we got rid of the manual npm install step of the bash-language-server. Hopefully, this will resolve npm installation issues. :) The latest version of Let me know if this solves the issues. |
Seeing this when I switch to a bash file, in Visual Studio Code 1.20.1, Windows 10, extension v. 1.1.4:
The text was updated successfully, but these errors were encountered: