Closed shawninder closed 8 years ago
Hmm as you said this isn't a systematic error, so it will be hard to replicate, but I will try.
Thanks @shawninder
I'm able to reliably replicate.
{}
, and set the syntax to JavaScript
Atom Version: 1.1.0 System: Mac OS X 10.11.1 Thrown From: linter-js-standard package, v3.2.1
Uncaught TypeError: Cannot read property 'replace' of undefined
At /Users/shaun/.atom/packages/linter-js-standard/lib/utils/style-settings.js:20
TypeError: Cannot read property 'replace' of undefined
at Object.checkStyleSettings (/Users/shaun/.atom/packages/linter-js-standard/lib/utils/style-settings.js:20:34)
at Object.module.exports.__cacheTextEditor (/Users/shaun/.atom/packages/linter-js-standard/lib/init.js:100:21)
at storeSettings (/Users/shaun/.atom/packages/linter-js-standard/lib/init.js:63:14)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:333:27
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:247:22)
at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:311:21)
at tabs-tab.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:210:24)
at space-pen-ul.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
at space-pen-ul.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
-5:39.2.0 command-palette:toggle (atom-text-editor.editor.is-focused)
-5:38.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-5:38.4.0 atom-beautify:beautify-editor (atom-text-editor.editor)
-5:37.5.0 core:select-all (atom-text-editor.editor.is-focused)
-5:37.2.0 core:copy (atom-text-editor.editor.is-focused)
-2:39.3.0 settings-view:open (atom-text-editor.editor.is-focused)
-2:37.5.0 core:close (div.panels-item)
2x -2:37.5.0 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-always.theme-atom-material-syntax.theme-atom-dark-ui)
-2:10.9.0 application:new-file (ul.list-inline.tab-bar.inset-panel)
-2:10.9.0 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-always.theme-atom-material-syntax.theme-atom-dark-ui)
-2:07.7.0 grammar-selector:show (atom-text-editor.editor)
-2:05.9.0 core:move-down (atom-text-editor.editor.mini.is-focused)
-2:05.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
3x -2:03.4.0 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-always.theme-atom-material-syntax.theme-atom-dark-ui)
-0:54.2.0 grammar-selector:show (atom-text-editor.editor)
2x -0:50.7.0 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-always.theme-atom-material-syntax.theme-atom-dark-ui)
{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"projectHome": "/Users/shaun/Repositories",
"disabledPackages": [
"atom-jade",
"autocomplete-css",
"autocomplete-paths",
"linter-jshint"
],
"destroyEmptyPanes": false,
"followSymlinks": false,
"themes": [
"atom-dark-ui",
"atom-material-syntax"
],
"audioBeep": false
},
"linter-js-standard": {
"lintMarkdownFiles": true,
"showEslintRules": true,
"checkStyleDevDependencies": true,
"honorStyleSettings": true
}
}
# User
Sublime-Style-Column-Selection, v1.3.0
aligner, v0.17.1
aligner-ruby, v1.4.0
angularjs, v0.3.3
atom-beautify, v0.28.17
atom-material-syntax, v0.2.4
atom-ternjs, v0.8.4
auto-reveal-in-sidebar, v0.8.0
color-picker, v2.0.13
emmet, v2.3.14
file-icons, v1.6.11
highlight-column, v0.5.0
highlight-selected, v0.10.1
javascript-snippets, v1.0.0
language-haml, v0.23.5
language-jade, v0.6.2
linter, v1.10.0
linter-js-standard, v3.2.1
pain-split, v1.4.0
pigments, v0.18.1
project-manager, v2.6.5
ruby-slim, v0.2.0
standard-formatter, v1.2.0
sync-settings, v0.6.0
tag, v0.3.0
# Dev
No dev packages
Happens also with the current beta (1.3.0-beta6).
Happens because getPath
returns undefined for a file that has not been saved.
This is still happening (v 3.2.1).
Merged a PR from @thtliife, should be fixed on the latest release.
Repro:
Fix by triggering
Window:reload
and trying againAtom Version: 1.0.19 System: Mac OS X 10.10.5 Thrown From: linter-js-standard package, v3.2.1
Stack Trace
Uncaught TypeError: Cannot read property 'replace' of undefined
Commands
Config
Installed Packages