Closed johnathanludwig closed 9 years ago
Sorry. This turned out to be a change in rubocop removing support for something in our config. I thought I had retested atom-lint after updating our config.
I still get this on an empty file
Atom Version: 0.187.0 System: Mac OS X 10.9.4 Thrown From: atom-lint package, v0.20.1
Uncaught TypeError: Cannot read property 'offenses' of undefined
At /Users/ahmet/.atom/packages/atom-lint/lib/linter/rubocop.coffee:18
TypeError: Cannot read property 'offenses' of undefined
at /Users/ahmet/.atom/packages/atom-lint/lib/linter/rubocop.coffee:18:24
at /Users/ahmet/.atom/packages/atom-lint/lib/linter/rubocop.coffee:54:9
at ChildProcess.<anonymous> (/Users/ahmet/.atom/packages/atom-lint/lib/command-runner.coffee:32:7)
at ChildProcess.emit (events.js:119:17)
at maybeClose (child_process.js:1013:16)
at Socket.<anonymous> (child_process.js:1181:11)
at Socket.emit (events.js:116:17)
at Pipe.close (net.js:477:12)
-2:56.0 core:confirm (atom-text-editor.editor.mini)
-2:35.0 core:close (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-flatland-dark-ui)
-2:34.3 pane:show-item-3 (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-flatland-dark-ui)
-2:30.0 spec-maker:open-or-create-spec (atom-text-editor.editor)
-2:20.8 core:close (atom-text-editor.editor.is-focused)
2x -2:11.8 core:confirm (atom-text-editor.editor.mini)
-1:17.6 core:close (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-flatland-dark-ui)
-1:01.9 core:confirm (atom-text-editor.editor.mini)
-0:57.5 core:select-all (atom-text-editor.editor.mini)
-0:56.8 core:confirm (atom-text-editor.editor.mini)
-0:27.2 pane:show-item-1 (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-flatland-dark-ui)
-0:24.8 rails-rspec:toggle-spec-file (atom-text-editor.editor)
-0:10.7 core:close (atom-text-editor.editor.is-focused)
-0:08.1 rails-rspec:toggle-spec-file (atom-text-editor.editor)
-0:05.1 core:close (atom-text-editor.editor.is-focused)
-0:01.8 rails-rspec:toggle-spec-file (atom-text-editor.editor)
{
"core": {
"projectHome": "/Users/ahmet/Projects",
"disabledPackages": [
"atom-bitcoin",
"atom-ctags",
"linter"
],
"themes": [
"flatland-dark-ui",
"monokai"
],
"ignoredNames": [
".DS_Store",
"tmp",
".keep",
".git",
"tags",
"config.ru",
"Gemfile.lock",
"Rakefile",
"vendor",
"public",
"log",
"bin",
".capistrano",
".gitkeep",
"*.caching",
"script",
"docs",
""
]
},
"atom-lint": {}
}
# User
atom-beautify, v0.22.3
atom-lint, v0.20.1
autocomplete-plus, v2.5.0
autocomplete-ruby, v0.0.1
file-icons, v1.5.1
flatland-dark-ui, v0.2.3
highlight-line, v0.10.1
highlight-selected, v0.9.1
language-rspec, v0.3.0
linter-rubocop, v0.2.2
linter-ruby, v0.1.4
monokai, v0.12.0
pain-split, v1.3.1
rails-rspec, v0.3.1
rspec, v0.1.9
symbol-gen, v0.2.0
tabs-to-spaces, v0.8.1
travis-ci-status, v0.13.0
# Dev
No dev packages
I upgraded Rubocop from 0.27.1 to 0.29.1 and this error started happening.
Atom Version: 0.178.0 System: Mac OS X 10.10.2 Thrown From: atom-lint package, v0.20.1
Stack Trace
Uncaught TypeError: Cannot read property 'offenses' of undefined
Commands
Config
Installed Packages