Linter not working
See original GitHub issueYour environment
vscode-ruby
version: 0.18.0- Ruby version: 2.0.0(rvm)
- VS Code version: 1.22.1
- Operating System: Fedora
- Hardware (optional): Dell inspirion
Make sure you have ruby
, ruby-debug-ide
and ruby-debug-basex19
installed before submitting your issue – thank you !
Expected behavior
Linter should highlights erros.
Actual behavior
Nothing is highlighten.
Steps to reproduce the problem
I saw similar problem on your closed issue, but they didn’t help me. https://github.com/rubyide/vscode-ruby/issues/226 https://github.com/rubyide/vscode-ruby/issues/229
Rubocop is installed and works in console but not in vs code.
I have tried many configurations, for example:
"ruby.lint": {
"rubocop": true
},
but then i have error that
Linter error: rubocop Error: spawn rubocop ENOENT
As i said before in console everything is ok.
I have changed configuration(https://github.com/rubyide/vscode-ruby/issues/187) to
"ruby.lint": {
"rubocop": {
"path": "/home/{username}/.rvm/gems/ruby-2.0.0-p648/bin"
}
},
There is no error in log, but stil not working
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:15 (1 by maintainers)
Top Results From Across the Web
Linting Python in Visual Studio Code
Troubleshooting linting ; The linter has not been installed in the current Python environment. Open a command prompt, navigate to the location where...
Read more >ESLint not working in VS Code? - Stack Overflow
If ESLint is running in the terminal but not inside VSCode, it is probably because the extension is unable to detect both the...
Read more >ESLint not working in VSCode? Help build a troubleshooting ...
Maybe you've just set up a new VSCode installation or something's gone wrong syncing your settings. Make sure, the ESLint plugin is installed...
Read more >linter-eslint not showing errors (or even working ?) · Issue #834
The file I'm looking at has 138 problems (94 errors, 44 warnings) when running eslint manually (I know, yikes). Atom version: 1.15.0 linter- ......
Read more >Troubleshooting — SublimeLinter 3.4.24 documentation
The first thing you should do when a linter does not work within SublimeLinter is to test it from the command line (Terminal...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a similar issue. Running ruby through RVM. Not getting any output from the linter. Tried
rubocop
linter,ruby
linter,ruby-lint
, nothing works and there are no meaningful errors to debug. I would really appreciate some progress here. It is the main reason why I don’t fully switch from Atom to VS Code.@mjhenkes That worked, thanks! version for rbenv (mac):
"path": "/Users/{user}/.rbenv/shims/"