question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linter not working

See original GitHub issue

Your 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:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
zinkkrystycommented, May 11, 2018

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.

5reactions
jdarnokcommented, Oct 13, 2018

@mjhenkes That worked, thanks! version for rbenv (mac): "path": "/Users/{user}/.rbenv/shims/"

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found