-
Notifications
You must be signed in to change notification settings - Fork 171
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
Automatic Ruby environment activation with none failed: Unexpected token 'y' "your 13107"... is not valid JSON #2370
Comments
Maybe this is similar to a problem I recently experienced (#2369 ). The cause was the default terminal in VSCode not being compatible. In
or whatever size you prefer as long as it's more than 1. another quick solution is to change the default terminal in VSCode; that might fix the issue. |
@motebaya amazing, thank you! Both options worked but I settled on hardcoding the columns and lines in Weirdly it still doesn't detect my version manager but it is working 🤷
|
@jared-thoughtbot Have you tried setting the version manager manually? i think in log, LSP checking version manager because you haven't set it up yet. Here's what i did:
it might help. |
I have the same issue but only in 1 project:
Using RVM to manage Ruby but also asdf to manage NodeJS. Bash is my shell. Annoyingly, it’s not consistent, i.e. the LSP works for gems and all other Ruby/Rails projects I work on except for one. Last week it worked without issues IIRC. |
@ur5us can you provide the content from the Output tab with |
@jared-thoughtbot I think I solved it. The problem was asdf complaining about NodeJS version as per
|
I believe #2552 should make this a bit more robust. Since we need to invoke the shell to integrate with version managers, we are susceptible to what gets printed by plugins or shell configs. Hopefully, putting the JSON environment for the activation between separators will make this a bit more robust. |
Description
Error
My environment
Reproduction steps
code .
from WSL consoleError message
Output tab (Ruby LSP)
Running commands directly in terminal (Fish shell)
Notes
your 131072x1 screen size is bogus. expect trouble
- I have no idea about this but it doesn't sound good 🙃The text was updated successfully, but these errors were encountered: