Uncaught TypeError: Cannot read property 'path' of undefined
See original GitHub issueSteps to reproduce:
- Open Atom
- Remove current project folder
- Add C:\ as project folder (error is thrown)
- Exit Atom
- Repeat
Atom: 1.14.0-beta0 x64 Electron: 1.3.13 OS: W10 Thrown From: file-icons package 2.0.8
Stack Trace
Uncaught TypeError: Cannot read property ‘path’ of undefined
At C:\Users\nikol\.atom\packages\file-icons\lib\filesystem\filesystem.js:147
TypeError: Cannot read property 'path' of undefined
at FileSystem.fixPath (/packages/file-icons/lib/filesystem/filesystem.js:147:14)
at resource.onDidMove.paths (/packages/file-icons/lib/filesystem/filesystem.js:104:38)
at Function.module.exports.Emitter.simpleDispatch (/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
at Directory.emit (/packages/file-icons/lib/filesystem/resource.js:111:17)
at Directory.setPath (/packages/file-icons/lib/filesystem/resource.js:252:9)
at FileSystem.get (/packages/file-icons/lib/filesystem/filesystem.js:80:15)
at /packages/file-icons/lib/consumers/tree-entry.js:23:30)
at TreeView.track (/packages/file-icons/lib/consumers/tree-view.js:132:25)
at TreeView.rebuild (/packages/file-icons/lib/consumers/tree-view.js:123:9)
at disposables.add.atom.project.onDidChangePaths._ (/packages/file-icons/lib/consumers/tree-view.js:43:45)
at Function.module.exports.Emitter.simpleDispatch (/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
at Project.module.exports.Project.addPath (/app.asar/src/project.js:270:29)
at /app.asar/src/atom-environment.js:1007:40
at /app.asar/src/application-delegate.js:27:16)
at emitTwo (events.js:106:13)
at EventEmitter.emit (events.js:191:7)
Commands
-0:19.2.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-firewatch-syntax.theme-one-dark-ui)
-0:15 tree-view:remove-project-folder (div.header.list-item.project-root-header)
-0:11.1.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
Non-Core Packages
atom-beautify 0.29.16
autocomplete-php 0.3.7
file-icons 2.0.8
firewatch-syntax 1.0.1
language-generic-config 1.3.0
linter 1.11.18
linter-eslint 8.0.0
linter-php 1.3.1
linter-stylelint 3.7.0
php-cs-fixer 4.1.0
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Node.js TypeError: Cannot read property 'path' of undefined
I found that the error "Cannot read property path of undefined" when using multer in find upload was due to the fileFilter option...
Read more >Cannot read property 'path' of undefined · Issue #124 - GitHub
js process with a non-zero exit code. (node:5588) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'path' of undefined at D:\ ...
Read more >cannot read properties of undefined (reading 'path') nodejs
You're calling connectDB() which returns immediately (because it's async). You don't 'wait' until dbconnection is being set.
Read more >TypeError: Cannot read property 'path' of undefined - Vue Forum
If I console log the current var, it shows undefined . So there seems to be an issue with getting the proper current...
Read more >How to solve "can not read property path of undefined" in ...
TypeError : Cannot read property 'path' of undefined. I have read many problems regarding that the problem occurs due to enctype="multipart/form-data".
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by 09327d0483a85550c2ea015342423d55f428e5f5.
Right, one massive VirtualBox download later…
Atom 1.13
C:\
has no name when added as project folderAtom 1.14-beta
C:\
has name of.
when added as project folderWill attempt to fix, but man, what the hell? 😀