-
Notifications
You must be signed in to change notification settings - Fork 32
Uncaught TypeError: Cannot read property 'getPath' of undefined #128
Comments
[Enter steps to reproduce below:]
Atom Version: 1.1.0 Stack TraceUncaught TypeError: Cannot read property 'getPath' of undefined
Commands
Config{
"core": {
"themes": [
"one-dark-ui",
"atom-dark-syntax"
],
"disabledPackages": [
"json-schema",
"autocomplete-ctags",
"atom-ternjs"
],
"excludeVcsIgnoredPaths": false,
"projectHome": "/home/anders/Projects",
"autoHideMenuBar": true,
"ignoredNames": [
".git"
]
},
"linter-jscs": {
"esnext": true,
"preset": "crockford",
"onlyConfig": true,
"fixOnSave": true,
"displayAs": "warning"
}
} Installed Packages# User
angularjs, v0.3.3
autoclose-html, v0.19.0
autocomplete-modules, v1.3.1
autocomplete-paths, v1.0.2
autocomplete-python, v0.9.4
autocomplete-sass, v0.1.0
color-picker, v2.0.12
compare-files, v0.6.2
css-snippets, v0.9.0
ctags-status, v1.3.3
custom-title, v1.0.1
disable-keybindings, v0.5.0
docblockr, v0.7.3
editorconfig, v1.2.0
external-open, v0.6.1
file-icons, v1.6.11
filesize, v0.3.0
flex-tool-bar, v0.6.0
git-log, v0.4.1
go-plus, v3.5.1
highlight-selected, v0.10.1
language-diff, v0.3.1
language-groovy, v0.4.0
language-nginx, v0.6.1
language-qml, v1.0.0
language-rspec, v0.3.0
language-svg, v0.9.0
linter, v1.10.0
linter-clang, v3.3.0
linter-coffeelint, v1.1.2
linter-csslint, v1.1.0
linter-htmlhint, v0.2.1
linter-javac, v1.2.0
linter-jscs, v3.1.2
linter-jshint, v1.2.1
linter-jsonlint, v1.0.1
linter-less, v2.2.0
linter-php, v1.0.5
linter-pylint, v1.0.3
linter-ruby, v1.2.0
linter-scss-lint, v2.4.0
linter-shellcheck, v1.0.2
linter-xmllint, v0.0.7
local-history, v3.2.3
markdown-scroll-sync, v0.4.2
minimap, v4.15.1
minimap-bookmarks, v0.1.0
minimap-find-and-replace, v4.3.1
minimap-git-diff, v4.1.8
minimap-highlight-selected, v4.3.1
minimap-pigments, v0.1.7
minimap-selection, v4.3.1
pigments, v0.18.1
pretty-json, v0.4.1
project-manager, v2.6.5
regex-railroad-diagram, v0.10.4
restore-windows, v0.4.1
rspec-snippets, v0.4.0
simple-drag-drop-text, v0.3.0
svg-preview, v0.6.1
symbol-gen, v1.0.0
symbols-tree-view, v0.10.1
sync-settings, v0.6.0
synced-sidebar, v0.4.2
tabs-to-spaces, v0.11.1
tool-bar, v0.1.9
trailing-spaces, v0.3.2
zentabs, v0.8.6
# Dev
autocomplete-plus, v2.19.0 |
+1 |
[Enter steps to reproduce below:]
Atom Version: 1.2.4 Stack TraceUncaught TypeError: Cannot read property 'getPath' of undefined
Commands
Config{
"core": {
"themes": [
"atom-material-ui",
"atom-material-syntax"
],
"disabledPackages": [
"language-python"
]
},
"linter-jscs": {
"preset": "node-style-guide",
"fixOnSave": true,
"esnext": true
}
} Installed Packages# User
MagicPython, v0.5.7
atom-beautify, v0.28.19
atom-material-syntax, v0.2.6
atom-material-ui, v1.0.0
auto-update-packages, v1.0.0
autocomplete-plus, v2.23.1
color-picker, v2.0.13
docblockr, v0.7.3
file-icons, v1.6.12
go-plus, v3.5.2
go-rename, v0.3.0
highlight-selected, v0.11.1
language-c, v0.50.1
language-docker, v1.1.3
language-gitignore, v0.2.0
language-protobuf, v0.5.0
language-shellscript, v0.20.0
linter, v1.11.3
linter-jscs, v3.2.0
open-recent, v4.0.1
pigments, v0.19.1
project-manager, v2.6.5
react, v0.12.10
tool-bar, v0.1.9
tool-bar-main, v0.0.8
# Dev
No dev packages |
+1 |
Can somebody provide steps to reproduce this? The error should only be thrown if Atom can't determine an active TextEditor... which should be impossible if lint is being called. |
I had it happen to me when I did a find & replace in my entire project for |
@Arcanemagus Happened again just now when doing a find & replace in project. I could reproduce this consistently, as long as one of the files that was affected by the replace was open in the editor. |
So you are doing Find and Replace on the entire project, including a file that you have open, and during/after the replace this error just pops up? I wonder if linter is catching the change event, but since it isn't the active editor (there may not be one?) it fails to send the correct editor to the linter provider... I'll try to debug this a bit more later tonight. It might just be a case of needing to bail out early if we don't have a valid editor. |
Yes, that's correct. I can reproduce it quite consistently now. Opened a file in my project, added a random unique string in it, then find the string in files, and hit replace all. The error then pops up during the find & replace operation. |
👍 |
[Enter steps to reproduce below:]
Atom Version: 1.1.0
System: Microsoft Windows 10 Pro
Thrown From: linter-jscs package, v3.1.2
Stack Trace
Uncaught TypeError: Cannot read property 'getPath' of undefined
Commands
Config
Installed Packages
The text was updated successfully, but these errors were encountered: