-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add steps for indexing troubleshooting #2367
Conversation
93febef
to
2a4b5e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's link to this new section from the indexing error dialog
ruby-lsp/lib/ruby_lsp/server.rb
Line 778 in a5e1775
send_message(Notification.window_show_error("Error while indexing: #{error.message}")) |
|
||
When Ruby LSP starts, it attempts to index your code as well as your dependencies as described in [Configuring code indexing](README.md#configuring-code-indexing). | ||
|
||
In rare cases, Ruby LSP will encounter an error which prevents parsing from completing, meaning Ruby LSP cannot start. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We rescue all indexing errors, so that the language server doesn't crash. The only consequence of an indexing failure is incomplete indexing data.
In rare cases, Ruby LSP will encounter an error which prevents parsing from completing, meaning Ruby LSP cannot start. | |
In rare cases, Ruby LSP will encounter an error which prevents indexing from completing, which will result in incomplete information in the editor. |
Co-authored-by: Vinicius Stock <vinistock@users.noreply.github.com>
Co-authored-by: Stan Lo <stan001212@gmail.com>
This pull request is being marked as stale because there was no activity in the last 2 months |
Since the new docs have been moved around, I'll close this and open a seperate PR. |
Closes #2296