This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Description Your environment
vscode-ruby version: 0.22.1
Ruby version: 2.6.0
Ruby version manager (if any): rvm
VS Code version: 1.31.1
Operating System: macOS 10.14.3
Using language server? yes
Steps to reproduce
Enable language server, use this config:
"ruby.lint": {
"reek": true,
"rubocop": {
"lint": true,
"rails": true
},
"ruby": {
"unicode": true,
},
"fasterer": true,
"debride": true,
"ruby-lint": true
},
Expected behavior
Server runs fine and only uses supported linters
Actual behavior
Server crashes:
TypeError: LINTER_MAP[name] is not a constructor
at getLinter (/Users/pelle/.vscode/extensions/rebornix.ruby-0.22.1/server/out/Linter.js:24:12)
[...]
A little investigation shows that LINTER only has 'rubocop' and 'reek' in there. See https://github.com/rubyide/vscode-ruby/blob/master/server/src/Linter.ts#L15 .
Reactions are currently unavailable
Your environment
vscode-rubyversion:0.22.12.6.0rvm1.31.1macOS 10.14.3yesSteps to reproduce
Enable language server, use this config:
Expected behavior
Server runs fine and only uses supported linters
Actual behavior
Server crashes:
A little investigation shows that LINTER only has 'rubocop' and 'reek' in there. See https://github.com/rubyide/vscode-ruby/blob/master/server/src/Linter.ts#L15.