You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
VS Code version: 1.33.0 (also tested with previous version)
Operating System: macOS
Using language server? Yes (cannot reproduce without language server)
Expected behavior
Extension reports all warnings detected by rubocop as problems and decorates significant characters.
Actual behavior
I'm having the issue that some warnings reported by rubocop (when run manually) do not show up in the editor (0 problems, no decorations). I noticed this applies to errors where start_column/last_column in JSON output of rubocop are identical.
Are you sure it's required to subtract from offense.location.length? Removing the subtraction appears to fix this error and also a glitch where the last character of an error is not decorated.
Your environment
vscode-rubyversion: 0.22.3Expected behavior
Extension reports all warnings detected by
rubocopas problems and decorates significant characters.Actual behavior
I'm having the issue that some warnings reported by
rubocop(when run manually) do not show up in the editor (0 problems, no decorations). I noticed this applies to errors wherestart_column/last_columnin JSON output ofrubocopare identical.Hints
vscode-ruby/server/src/linters/RuboCop.ts
Lines 87 to 95 in 2d8e443
Are you sure it's required to subtract from
offense.location.length? Removing the subtraction appears to fix this error and also a glitch where the last character of an error is not decorated.