Skip to content

Instantly share code, notes, and snippets.

@ChrisVilches
Last active January 21, 2022 12:53
Show Gist options
  • Save ChrisVilches/6fa0b677633b01f76690dac0f78d62c1 to your computer and use it in GitHub Desktop.
Save ChrisVilches/6fa0b677633b01f76690dac0f78d62c1 to your computer and use it in GitHub Desktop.
Fix VSCode RuboCop error

RuboCop (VSCode) bundle not found error

Fix the error bundle not found error or something similar. This happens when the rubocop VSCode extension is set to execute using bundle exec.

Open this file:

~/.vscode/extensions/misogi.ruby-rubocop-0.8.6/out/src/configuration.js

Modify the part that says bundle exec, and replace bundle by another command like:

~/.rbenv/shims/bundle

It may be necessary to test a few different paths, for example if more than one installation exists.

Then restart VSCode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment