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

Error in diagnostics: RuboCop returned invalid data #248

Open
baelter opened this issue Jun 10, 2022 · 2 comments
Open

Error in diagnostics: RuboCop returned invalid data #248

baelter opened this issue Jun 10, 2022 · 2 comments

Comments

@baelter
Copy link

baelter commented Jun 10, 2022

Often happens on syntax errors

Screenshot from 2022-06-10 15-19-36
Screenshot from 2022-06-10 15-17-03

@baelter
Copy link
Author

baelter commented Jul 13, 2022

Might be that solargraph can't handle warnings like

Warning: obsolete parameter `IgnoredPatterns` (for `Layout/LineLength`) found in .rubocop.yml
`IgnoredPatterns` has been renamed to `AllowedPatterns`.

@baelter
Copy link
Author

baelter commented Oct 10, 2022

Seems to happen when RubocopRunner.run does not produce any output, leading to trying to parse nil here: https://github.com/castwide/solargraph/blob/3254dec22a55bdb7b66382c7ebe08283a4cc1168/lib/solargraph/diagnostics/rubocop.rb#L29

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

1 participant