-
Notifications
You must be signed in to change notification settings - Fork 196
VsCodium: Error code -32097 can't connect to the server #1216
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
Thank you for the bug report. Based on this line
It looks like this is the same issue as #1705. Can you try opening VS Code from the terminal with If it does, then it's certainly related to that bug with VS Code not finding the correct default shell. |
I tried to launch it from the terminal by typing vscodium. No difference, it gives the same error code and no kind of output, not even debug information in the terminal running vscodium Ruby LSP> Checking if asdf is available on the path with command: /bin/bash -ic 'asdf --version' |
I don't believe that's the root cause of the problem. If you look at
Something is causing VS Code to think that It could be the same case as this VS Code issue microsoft/vscode#88736. |
This issue is being marked as stale because there was no activity in the last 2 months |
I'm also experiencing the same issue and I'm not able to figure it out for some reason... 😞 Any ideas why my 2024-04-04 15:19:48.613 [info] Checking if asdf is available on the path with command: /bin/zsh -i -c 'asdf --version'
2024-04-04 15:19:49.240 [info] Checking if chruby is available on the path with command: /bin/zsh -i -c 'chruby --version'
2024-04-04 15:19:49.651 [info] Checking if rbenv is available on the path with command: /bin/zsh -i -c 'rbenv --version'
2024-04-04 15:19:50.059 [info] Discovered version manager rbenv And I do have $ /bin/zsh -i -c 'rbenv --version'
rbenv 1.2.0 |
@Raxelgrande I took another look at this issue and I think I now understand the issue. You're not using any version manager, but rather installing Ruby through Homebrew. With no version manager, we don't perform automatic detection of the Ruby version, but on the latest v0.7.0 version of the extension you can manually select your Ruby installation, which should fix your issue. @vladhadzhiyski your issue seems to be a different one, but if the problem is that |
Hey there, Have been getting the issue lately while I never got it before:
I'm using zsh, and in VSCode, integrated terminal is on zsh. I've tried the Have also been trying to launch I'm running out of ideas, if you have any @vinistock |
Are you sourcing The VS Code process doesn't source those automatically which would explain why when you open the editor through the icon, then When you launch it through the terminal, it was your terminal shell that sourced the scripts already and running |
Hey, so actually this was a weird bug and quite unrelated to the original issue. I'm on AwesomeWM, so to start apps I use built-in functions called However, to my surprise, when clicking on the icon in app menu/launching So I figured it would be better to start VSCode with the Sorry for bothering you and going on a tangent. But you helped me by giving me the idea to launch VSCode through the app menu! It might be related to how the |
Ruby version
3.0.6-1
Code snippet
The output by ruby-lsp. All i did was search for it and install it on my system
Ruby LSP> Checking if asdf is available on the path with command: /bin/bash -ic 'asdf --version'
Ruby LSP> Checking if chruby is available on the path with command: /bin/bash -ic 'chruby --version'
Ruby LSP> Checking if rbenv is available on the path with command: /bin/bash -ic 'rbenv --version'
Ruby LSP> Checking if rvm is available on the path with command: /bin/bash -ic 'rvm --version'
Ruby LSP> Discovered version manager none
Ruby LSP> Trying to activate Ruby environment with command: /bin/bash -ic 'ruby -rjson -e "printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE}, JSON.dump(ENV.to_h))"' inside directory: /home/lucas/Programas/Codium/Ruby
/bin/sh: línea 1: ruby-lsp: orden no encontrada
[Error - 19:35:57] Server process exited with code 127.
[Error - 19:35:57] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 19:35:57] Connection to server got closed. Server will restart.
true
[Error - 19:35:57] Ruby LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
/bin/sh: línea 1: ruby-lsp: orden no encontrada
[Error - 19:35:57] Server process exited with code 127.
[Error - 19:35:57] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 19:35:57] Connection to server got closed. Server will restart.
true
[Error - 19:35:57] Ruby LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Error restarting the server: Pending response rejected since connection got disposed
/bin/sh: línea 1: ruby-lsp: orden no encontrada
[Error - 19:35:57] Server process exited with code 127.
[Error - 19:35:57] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 19:35:57] Connection to server got closed. Server will restart.
true
[Error - 19:35:57] Ruby LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 19:35:57] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
/bin/sh: línea 1: ruby-lsp: orden no encontrada
[Error - 19:35:57] Server process exited with code 127.
[Error - 19:35:57] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 19:35:57] Connection to server got closed. Server will restart.
true
[Error - 19:35:57] Ruby LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 19:35:57] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
/bin/sh: línea 1: ruby-lsp: orden no encontrada
[Error - 19:35:57] Server process exited with code 127.
[Error - 19:35:57] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 19:35:57] The Ruby LSP server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 19:35:57] Ruby LSP client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 19:35:57] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
Description
Using vscodium 1.84.2.23319-1 in Arch Linux, provided via the AUR.
The only other extension installed is Dracula Official
Expected output
That everything works as intended.
The text was updated successfully, but these errors were encountered: