-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
"Couldn't start client Yang Language Server" on windows #95
Comments
I have the same problem on windows and with |
Could this be the issue: nodejs/node#52681 Needs Cheers. |
I seem to have fixed this. First off, need a file in: %USERPROFILE%\.yang\yang.settings:
Where the path is the root of your Yang modules locations. For me, they are in 'C:\usr\share\yang\modules', but I'm using the "unix"-like path which seems to work fine. Next, you need to add the
indicates. There, you'll find:
I changed that to:
And now the plugin shows the function outlines and creates diagrams! Cheers. |
@vinsworldcom |
@dhuebner , yes, from the 2 Node.js links I reference above, seems a new Node.js setting prevents it from launching Windows Not sure you need to worry about the 'yang.settings' file, but it may be nice to make note of that in the README so Windows users know what file to create at what directory path for the Language Server to validate. I've been happily working with my fix above for a week or so with no ill effects. Of course, not sure of the "proper" way to fix this as I'm not a VSCode extension author or even know much about it. Cheers. |
@vinsworldcom |
Not sure what that means. Who creates the file: %USERPROFILE%\extensions\typefox.yang-vscode-2.3.2\extension\pack\extension.js Isn't that from this plugin? That is the file that I'm editing and that is the file that is launching the ".vscode\extensions\typefox.yang-vscode-2.3.3\server\bin\yang-language-server.bat" file. Launching that BAT file is what is generating the error - unless you make the Cheers. |
For me, I only had to add |
Yangster version: 2.3.2
vscode: 1.93.0
OS: windows 11
I tried with openjdk 11, 21, 22, microsoft build openjdk, oracle jdk, same error
but it works fine if use vscode with WSL2 (e.g. open YANG file in WSL), with openjdk 11 installed in WSL2
The text was updated successfully, but these errors were encountered: