Closed gottlike closed 5 years ago
Confirmed. I was able to reproduce by opening VS Code with a single Ruby file instead of a folder. I should be able to fix it in the gem.
(Side note: Patch updates of the gem and extension were released today, but they don't affect this particular issue.)
The language server needs better handling of cases where a Ruby file is not associated with a project (i.e., a workspace folder or a root folder). Fixing it is not trivial, but it's certainly a common use case, so I'll prioritize it and try to have a patch ready by Monday.
Temporary workaround: Start VS Code by opening the folder that contains the Ruby file you want to edit.
The fix is published in gem version 0.30.2.
Fix confirmed - thanks! :+1:
After updating all gems to the latest version, the solargraph extension isn't working anymore. I was able to get a stack trace by switching to
stdio
as transport: