question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot read property 'path' of undefined

See original GitHub issue

Steps to reproduce:

  1. Open Atom
  2. Remove current project folder
  3. Add C:\ as project folder (error is thrown)
  4. Exit Atom
  5. 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Alhadiscommented, Jan 19, 2017

Fixed by 09327d0483a85550c2ea015342423d55f428e5f5.

1reaction
Alhadiscommented, Jan 11, 2017

Right, one massive VirtualBox download later…

Atom 1.13

  • No error
  • C:\ has no name when added as project folder

Atom 1.14-beta

  • Throws error
  • C:\ has name of . when added as project folder

Will attempt to fix, but man, what the hell? 😀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found