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

no implicit conversion of nil into String #68

Closed
theSoenke opened this issue Jun 24, 2018 · 4 comments
Closed

no implicit conversion of nil into String #68

theSoenke opened this issue Jun 24, 2018 · 4 comments

Comments

@theSoenke
Copy link

Sometimes I see the following error:

[Error - 4:15:44 PM] Request textDocument/hover failed.
  Message: [TypeError] no implicit conversion of nil into String
  Code: -32603 

I have only seen this when editing specs. Shouldn't solargraph also by default ignore files in spec/?

@castwide
Copy link
Owner

Solargraph still processes excluded Ruby files when you open them in an editor. The exclusion rule prohibits them from being mapped as part of the workspace. For example, a class defined in a spec file should not be visible from a lib file.

That error probably occurs when you move the cursor over a particular word. Any chance you can identify the location and post the relevant code?

@theSoenke
Copy link
Author

Thanks for your response. I will try to reproduce this and post an example if find something

@castwide
Copy link
Owner

Gem version 0.25.1 includes a change that should fix this issue. More information: castwide/solargraph#82

@theSoenke
Copy link
Author

Thanks! Will then close this issue

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