sublime_rubocop icon indicating copy to clipboard operation
sublime_rubocop copied to clipboard

"Auto correct current file" does nothing

Open ocarreterom opened this issue 2 years ago • 2 comments

Please add some general information about your environment:
  • Operating System - macOS 12.4
  • Sublime Text version - 4126
  • Details about your config e.g. do you use rbenv, rvm or your_own_command to run rubocop? rvm
Steps to reproduce:

The command "Check current file" works ok, but "Auto correct current file" does nothing.

# .rubocop.yml
require:
  - rubocop-rails
  - rubocop-rspec
  - standard

inherit_gem:
  standard: config/base.yml

Running rubocop -a in the console works ok.

ocarreterom avatar Sep 01 '22 20:09 ocarreterom

@ocarreterom can you please check out this PR https://github.com/pderichs/sublime_rubocop/pull/70 It will display the output from the rubocop command in the console if the command fails. This will give you more information about what is going wrong.

dan-corneanu avatar Aug 23 '23 07:08 dan-corneanu

Hi @dan-corneanu , I am currently using LSP for autocorrect. I have tested the PR and it works fine. Maybe I had a wrong configuration or something like that…

You can close the issue if it is solved.

ocarreterom avatar Aug 24 '23 13:08 ocarreterom