Open zal-lex opened 9 months ago
This vscode-rubocop extension is not referencing the .git directory. This could be due to a misconfiguration in the Gemfile. Is there an entry for gem 'rubocop-rspec'
in your Gemfile?
Simply adding require: rubocop-rspec
to .rubocop.yml is not sufficient.
Yes, I have both gem 'rubocop-rspec'
record in the Gemfile and require: rubocop-rspec
in .rubocop.yml. bundle install
was executed as well
I have exactly the same issue.
The other vs code extension ruby-robocop
uses the root folders of the current workfspace to find the Gemfiles. That's not the best strategy but at least there is a workaround.
The best solution IMHO would to be find the first ancestor folder which contains the Gemfile. That would allow to works smoothly with mono repositories.
@abrisse I managed to fix that by installing rubocop-rspec
globally.
@zal-lex: that's a workaround of course but installing gems globally is not recommended. I don't have the same versions of the rubocop gem / the file .rubocop.yml on all projects.
I have the same error. Not sure if there is a working solution.
Getting this error on opening VS Code.
I think the problem is in the project structure. It is a git repo with several folders. The backend with the rails app is one of several folders.
The Gemfile is in the
rails-app
folder. I need to have open full git repo with all folders simultaneously. It would be great to have a setting to pass the Gemfile path for the project/workspaceFull log: