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.
Repository navigation
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Lint: executing bundle exec rubocop -s /Users/ncohen/software/Web/app/models/location.rb -f json...
Lint: unable to execute bundle exec rubocop -s /Users/ncohen/software/Web/app/models/location.rb -f json as the command could not be found
I get a same error with or without setting the rubocop useBundler flag:
The file must be piped into rubocop or other utilities. This methodology is the best representation of how the language server runs these commands. If the command succeeds here but not in the language server, additional steps will be necessary to troubleshoot. Please open an issue.
Hmm -- can't figure this out and opening an issue as the troubleshooting docs suggest. Much appreciate!
Extension version: 0.25.3
VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:33:00.827Z)
OS version: Darwin x64 18.7.0
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2800)
In workspace file are all the settings related to vscode-ruby -- and I've tried all the different variations of the "ruby.useBundler" and "ruby.lint" options ...
Warning: the following is a hack and it will be overwritten on vscode-ruby update:
You could edit ~/.vscode/extensions/rebornix.ruby-0.25.3/client/out/util/shims/env.fish.sh to this:
#!/usr/local/bin/fish
for name in (set -nx)
if string match --quiet '*PATH' $name
echo $name=(string join : -- $$name)
else
echo $name="$$name"
end
end
Warning: the following is a hack and it will be overwritten on vscode-ruby update:
You could edit ~/.vscode/extensions/rebornix.ruby-0.25.3/client/out/util/shims/env.fish.sh to this:
#!/usr/local/bin/fish
for name in (set -nx)
if string match --quiet '*PATH' $name
echo $name=(string join : -- $$name)
else
echo $name="$$name"
end
end
this worked for me but in the following file instead (I'm on Mac using VSCodium, maybe that is why the file is different) ~/.vscode-oss/extensions/rebornix.ruby-0.25.3/dist/extension/shims/env.fish.sh
Activity
andrewmcodes commentedon Oct 24, 2019
What’s the output of
rubocop -v?Can you paste your config relating to this extension?
breathe commentedon Oct 24, 2019
Hi @andrewmcodes
In workspace file are all the settings related to vscode-ruby -- and I've tried all the different variations of the "ruby.useBundler" and "ruby.lint" options ...
breathe commentedon Oct 24, 2019
Aside -- my user shell is fish if there's any chance that might impact behavior here ...?
andrewmcodes commentedon Oct 24, 2019
@breathe First, I would try
gem install rubocopjust to get on the latest version, then modify your config slightly to resemble this:ajimix commentedon Oct 24, 2019
I'm having the same problem. It seems to be related with fish as I also use fish: #523
Seems like we have to wait for that issue to be closed first before using this extension
wingrunr21 commentedon Oct 24, 2019
Or just set up a minimal setup that is POSIX compliant just to run RuboCop. Fish support is in progress.
e1senh0rn commentedon Oct 25, 2019
Warning: the following is a hack and it will be overwritten on vscode-ruby update:
You could edit
~/.vscode/extensions/rebornix.ruby-0.25.3/client/out/util/shims/env.fish.shto this:ajimix commentedon Oct 29, 2019
this worked for me but in the following file instead (I'm on Mac using VSCodium, maybe that is why the file is different)
~/.vscode-oss/extensions/rebornix.ruby-0.25.3/dist/extension/shims/env.fish.she1senh0rn commentedon Oct 29, 2019
@ajimix my bad, you are correct. I reused path to file from earlier vscode-ruby version.
wingrunr21 commentedon Nov 19, 2019
Fish shell support for the environment detection landed in
v0.26.0. Please give it a try!