yujinakayama / atom-lint

Obsolete: Generic code linting support for Atom
https://atom.io/packages/atom-lint
MIT License
111 stars 33 forks source link

Uncaught Error: Severity must be any of warning,error. help is passed. #121

Open Kilobyte22 opened 9 years ago

Kilobyte22 commented 9 years ago

When linting rust i keep getting this an error recently. The rust code in question is:

struct SomeStruct {
    somevar: Vec<Something>;
}

The code compiles and runs fine. (given Something is defined). WHat follows is the bug information atom generated for me. EDIT: I failed and the compiler actually ignored the file. Still, even this way it should not error, no matter if the file compiles. Atom Version: 0.169.0
System: linux 3.18.2-2-ARCH
Thrown From: atom-lint https://github.com/yujinakayama/atom-lint package, v0.20.1

Stack Trace

Uncaught Error: Severity must be any of warning,error. help is passed.
     At /home/stephan/.atom/packages/atom-lint/lib/violation.coffee:12 Error: Severity must be any of warning,error. help is passed.
 at new Violation  /home/stephan/.atom/packages/atom-lint/lib/violation.coffee:12:17  at Rustc.module.exports.Rustc.parseDiagnostics  /home/stephan/.atom/packages/atom-lint/lib/linter/rustc.coffee:50:11
  at /home/stephan/.atom/packages/atom-lint/lib/linter/rustc.coffee:33:23 at ChildProcess. anonymous>  /home/stephan/.atom/packages/atom-lint/lib/command-runner.coffee:32:7
  at ChildProcess.emit  events.js:110:17  at maybeClose  child_process.js:1009:16  at Socket. anonymous>  child_process.js:1177:11
  at Socket.emit  events.js:107:17
  at Pipe.close  net.js:469:12      

Commands

4x -1:00.0 core:move-left  atom-text-editor.editor.is-focused  -0:59.1 editor:delete-to-beginning-of-word  atom-text-editor.editor.is-focused  -0:55.1 editor:move-to-end-of-screen-line  atom-text-editor.editor.is-focused  -0:46.7 core:paste  atom-text-editor.editor  -0:46.1 core:save  atom-text-editor.editor  2x -0:31.9 core:backspace  atom-text-editor.editor.is-focused  2x -0:30.7 core:save  atom-text-editor.editor.is-focused  3x -0:21.6 core:backspace  atom-text-editor.editor  -0:19.8 core:save  atom-text-editor.editor  -0:12.0 core:backspace  atom-text-editor.editor.is-focused  2x -0:10.2 core:move-left  atom-text-editor.editor.is-focused  -0:09.1 editor:delete-to-beginning-of-word  atom-text-editor.editor.is-focused  -0:06.7 core:save  atom-text-editor.editor.is-focused  -0:02.6 core:select-all  atom-text-editor.editor.is-focused  -0:01.8 core:copy  atom-text-editor.editor.is-focused  -0:00.0 core:save  atom-text-editor.editor.is-focused    

Installed Packages

coffee

User

atom-lint, v0.20.1
editorconfig, v0.3.0
language-haml, v0.15.0
language-latex, v0.4.1
language-lua, v0.9.0
language-moonscript, v1.4.1
language-rust, v0.3.5
linter-coffeelint, v0.1.7
linter-rubocop, v0.2.1
minimap, v3.5.6
terminal-panel, v1.9.1

Dev No dev packages

/cc @atom/core