-
Notifications
You must be signed in to change notification settings - Fork 6
[BUG] Can't run the Language Server #6
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
Comments
Hey @pr1metine The Language Server is build using shell commands for run-time code intelli-sense I'm pretty sure running in windows will not work. Not tried it on Ubuntu VM but can you try re-running the build scripts with |
Hello @SyamSundarKirubakaran , $ sudo -s
# java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
# echo $CLASSPATH
/opt/processing-3.5.4/core/library/core.jar
# uname -a
Linux Vierzehnhundert 4.19.84-microsoft-standard #1 SMP Wed Nov 13 11:44:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux When I try running # sh ./reinitserver.sh
Performing Server Cleanup...
rm: cannot remove './node_modules': No such file or directory
rm: cannot remove './node_modules': No such file or directory
Server Cleanup successful.!
Installing required node modules...
npm WARN lifecycle [email protected]~postinstall: cannot run in wd [email protected] cd client && npm install && cd ../server && npm install && cd .. (wd=/home/pr1metine/projects/LS4P)
added 42 packages from 49 contributors and audited 42 packages in 1.427s
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
Installation successful.!
[...] When executing
Maybe there is something wrong with the Java npm package or with my Java configuration in general. Could you walkthrough the whole process of setting up the server? Could you also state all prerequisites and dependencies? |
Running this results in the following output:
|
I'll give it a spin in my end and I'll let you know if it fails on my end as well. |
So? Did you succeed, @SyamSundarKirubakaran ? |
Nope, definitely failing. I encountered the same issue with In the meantime, If you're really into language servers. I'll suggest you look into https://github.com/microsoft/vscode-extension-samples/tree/master/lsp-sample |
Godspeed, SyamSundarKirubakaran. Would you mind if I implemented the server with LSP4J? |
Sure. I remember looking into LSP4J a year earlier but since I was about to build a Language Server for an Upcoming IDE for Processing which will probably be written in Electron JS. I went with the JS side of implementation. You can try it out with LSP4J as well.! |
Should be working now.! Just do a clean and rebuild.! |
It looks like I am unable to get your server up and running @SyamSundarKirubakaran 😢 .
I tried Windows, WSL and Ubuntu 20.04 via Hyper-V with no success. Could you please confirm that your server is working as intended?
The text was updated successfully, but these errors were encountered: