Skip to content
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

Solargraph only works in workspaces, not on individual files? #130

Closed
adamroyjones opened this issue Jun 27, 2019 · 2 comments
Closed

Solargraph only works in workspaces, not on individual files? #130

adamroyjones opened this issue Jun 27, 2019 · 2 comments

Comments

@adamroyjones
Copy link

I can get Solargraph to work on macOS, in vscode, provided that I've opened a folder in vscode.

However, if I open up a blank instance of vscode (code -n), open a new file, and set the language to Ruby, then the Solargraph server starts as expected but it doesn't do anything. (Changing the log level to debug illustrates this.)

Is this intentional, or a bug, or a limitation of vscode?

@castwide
Copy link
Owner

This is a known issue with files that don't have an .rb extension and/or haven't been saved to disk (#34). If you name the file and save it, it should start working.

@adamroyjones
Copy link
Author

You're quite right—I'm sorry that I didn't see that issue when searching. Thanks for your help (and for making Solargraph)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants