-
Notifications
You must be signed in to change notification settings - Fork 56
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
Crystalline server crashes if VSCode started with shortcut #179
Comments
Can you let me know if this is still happening with v0.9.0? |
Unfortunately it's still broken for me (at least on WSL, haven't tried on Linux/macOS yet).
|
@elbywan Do you know what could be causing this issue? Could the extension be calling crystalline incorrectly / crystalline not handling all the ways vscode is calling it? |
Hey @nobodywasishere 👋
I have no idea, sorry 😕 . Maybe starting the IDE through a shortcut is missing some (crystal?) environment variables which are inherited when booting from the terminal? If |
I had a thought to try loading Crystalline using VSCode's built-in terminal, and received this error: $ crystalline
2024-05-01T14:17:00.234684Z ERROR - lsp: Error executing process: 'crystal': No such file or directory
???
???
???
???
???
src/env/__libc_start_main.c:95:2 in 'libc_start_main_stage2'
Error executing process: 'crystal': No such file or directory (File::NotFoundError)
from ???
from ???
from ???
from ???
from ???
from src/env/__libc_start_main.c:95:2 in 'libc_start_main_stage2' This was in the Crystal project directory. Maybe this is related? I should note this is through a WSL install, so that might be weird. I do think there's some issue with launching VSCode through a shortcut. On Mac/Linux, if I launch VSCode from the command line, the extension works fine. |
Hi! I had the exact same issue as @Timecrash, as I mentioned in a Crystalline issue earlier today, except native linux with flatpak. The issue seems to stem from the way both flatpak and WSL handle access to files. Using a native (non-flatpak) version of VSCodium works correctly. |
Describe the bug
I use Crystalline as my language server, as Scry is now depreciated. Similar to #14, Crystalline crashes in VSCode if started through a desktop shortcut, but works fine if started through the
code
CLI command.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Crystalline should work normally.
Piece of Code
n/a
Screenshots
Desktop (please complete the following information):
Additional context
I'm not sure if this is a bug in this extension, or Crystalline itself.
The text was updated successfully, but these errors were encountered: