-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
After enabling NextLS, connection to server is erroring #53
Comments
Would you mind running through the troubleshooting steps in the Next LS README and report back? |
I had a similar experience on Ubuntu 22.04 trying it out just now with both the default install and then switching VSCode to tcp mode. After the errors I manually started Next LS in tcp mode on port 9000 in a terminal. I then opened VSCode with the extension in tcp mode and VSCode started building my repo via the extension / Next LS. Haven't experimented with any other configurations yet. |
I haven't gotten a chance to review the troubleshooting steps yet, but I'll do it later this evening! |
I can confirm that manually starting Next LS in TCP mode in another terminal works for me too. This is on MacOS. |
I also experienced this issue on MacOS and then followed the troubleshooting steps. I tried
Elixir was already in path in
Launching from the command line and having the elixir daemon running is probably not the default for most users, so it might be worth pointing MacOS users towards the troubleshooting. Thanks for you work. I look forward to trying out NextJS 🙂 |
erlang is supposed to start epmd if it isn't already started, but that doesn't seem to be the case actually (or maybe isn't the case in how we launch the nextls release. I hope to remove the need for epmd (elixir-tools/next-ls#204) soon, and the possibility of not needed a local elixir/otp in your path is also something on the horizon. |
I tried running the VS Code extension under a JS debugger. I'm getting an exception about a Content-Length header not being found. I tried clicking around the debugger to get more context without luck. However, I changed the I haven't had a chance to track this down any farther to how this propagates to an HTTP header warning in Javascript rather than Elixir. |
Hmm, interesting, thanks for finding that out! so, that is a header from JSON RPC (not HTTP), which LSP clients and servers use to talk to each other. so that implies that the server is sending a malformed payload to the client, which VSCode is rather fragile to (some clients like nvim are more resistant to malformed payloads) Let me check out what could possibly be happening. can you tell me what version of nextls is currently installed? you can do |
I suspect something is just being printed to stdout on accident which is clobbering VSCode. |
|
Yeah I thought I disabled logging enough for Req but there's a chance it's logging somewhere other than the module I turned it off for. |
I redirected logging to Now that I see the error, it's:
Looks like I use GitHub too much and the error might have magically gone away if I waited a little bit longer. |
Frank's issue fixed in elixir-tools/next-ls#208 @matt-glover @jarrodmoldrich if y'all continue to have issues, please feel free to open another bug report! |
With the Credo Language server disabled and NextLS enabled, I'm getting the following error on Ubuntu 22.04.4.
I'm also getting an error with NextLS timing out on MacOS, but it didn't have a stack trace.
This is my first try at enabling NextLS. I did get the dialog box to download it and the
nextls
binary prints out help when I manually run it.I'm using the
stdio
adapter. When I tried thetcp
adapter, I received the same stack trace.Any ideas on debugging this?
The text was updated successfully, but these errors were encountered: