Hi, Thanks for the extension!
I’m seeing a mismatch specifically with the RuboCop linter inside the ERB Linter extension.
Environment
- Editor: Cursor 1.5.5 (VS Code-based, engine 1.99.3)
- Ruby 3.4.4 / Rails 8.0.2.1
- vscode-erb-linter v0.0.10, installed from VS Code marketplace
erb_lint in Gemfile, run via Bundler
What happens
When using the vscode-erb-linter extension in Cursor, diagnostics from ERB Lint’s built-in linters (including optional ones) appear both inline and in the Problems panel. This is good and expected.
However, findings from the RuboCop linter never show up in the editor, neither inline nor in the Problems panel.
The erb_lint gem itself works fine. Running e.g. bundle exec erb_lint app/views on the command line reports RuboCop offenses (for example Style/StringLiterals) as expected. For whatever reason it seems that the extension is not surfacing RuboCop linter results inside the editor.
Minimal config
# .erb-lint.yml
---
linters:
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
Steps to reproduce
- Add
rubocop to the project Gemfile and configure ERB Lint to use it in .erb-lint.yml.
- Introduce a RuboCop offense inside an ERB tag. For example, use single quotes where double quotes are expected:
<%= stylesheet_link_tag 'app', "data-turbo-track": 'reload' %>
- Run
bundle exec erb_lint app/views → the offense is reported correctly.
- Open the same file in Cursor with the ERB Linter extension enabled. No RuboCop diagnostics appear (while other ERBLint linters do).
Am I missing something obvious?
Happy to provide logs, screenshots or further details if helpful.
Hi, Thanks for the extension!
I’m seeing a mismatch specifically with the RuboCop linter inside the ERB Linter extension.
Environment
erb_lintin Gemfile, run via BundlerWhat happens
When using the vscode-erb-linter extension in Cursor, diagnostics from ERB Lint’s built-in linters (including optional ones) appear both inline and in the Problems panel. This is good and expected.
However, findings from the RuboCop linter never show up in the editor, neither inline nor in the Problems panel.
The
erb_lintgem itself works fine. Running e.g.bundle exec erb_lint app/viewson the command line reports RuboCop offenses (for exampleStyle/StringLiterals) as expected. For whatever reason it seems that the extension is not surfacing RuboCop linter results inside the editor.Minimal config
Steps to reproduce
rubocopto the project Gemfile and configure ERB Lint to use it in.erb-lint.yml.<%= stylesheet_link_tag 'app', "data-turbo-track": 'reload' %>bundle exec erb_lint app/views→ the offense is reported correctly.Am I missing something obvious?
Happy to provide logs, screenshots or further details if helpful.