Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Uncaught TypeError: Cannot read property 'getItem' of undefined #149

Closed
eliot-akira opened this issue May 17, 2017 · 13 comments
Closed

Uncaught TypeError: Cannot read property 'getItem' of undefined #149

eliot-akira opened this issue May 17, 2017 · 13 comments

Comments

@eliot-akira
Copy link

Issue

Background: Upgraded Atom and project-viewer at the same time; lost previous projects (but not project-viewer.json); created new project..

When clicking on the project name, it won't open and displays the following error.

Stack Trace

At ~/.atom/packages/project-viewer/src/status-bar.js:7

TypeError: Cannot read property 'getItem' of undefined
    at /packages/project-viewer/src/status-bar.js:7:30)
    at /packages/project-viewer/src/project-view.js:273:13)
    at /packages/project-viewer/src/project-view.js:19:8)
@jccguimaraes
Copy link
Owner

@eliot-akira thanks for reporting this.yeah atom 1.17 made a lot of breaking changes. not only on PV. i am activaly working on it. i hope during the next 24h to release a stable release.

@eliot-akira
Copy link
Author

Thank you! Fortunately the project data was intact, so it wasn't a big problem. I appreciate the excellent work on project-viewer, I've been using it for a long time.

@jccguimaraes jccguimaraes added this to the 1.1.0 milestone May 21, 2017
@jccguimaraes jccguimaraes self-assigned this May 21, 2017
@PixelT
Copy link

PixelT commented May 22, 2017

After update to 1.1.0 I get this error when I try to change project... :(

@jccguimaraes
Copy link
Owner

can you try to clear all stored states files? in .atom/storage file? editor-whatever files

@PixelT
Copy link

PixelT commented May 22, 2017

I clear whole .atom/storage folder, but without any effects - error still exist.

@jccguimaraes
Copy link
Owner

ok. i will check on this. sorry about it

@jccguimaraes
Copy link
Owner

please validate with now @PixelT

@PixelT
Copy link

PixelT commented May 22, 2017

Unfortunatelly nothing change for me - still this same error

@jccguimaraes
Copy link
Owner

can you share screenshots?

@PixelT
Copy link

PixelT commented May 22, 2017

http://www5.zippyshare.com/v/Wl1cFYXm/file.html

  • Stack Trace:
TypeError: Cannot read property 'getItem' of undefined
    at undefined._update [as update] (/Users/krzysiek/.atom/packages/project-viewer/src/status-bar.js:5:47)
    at project-viewer-project._openOnWorkspace [as openOnWorkspace] (/Users/krzysiek/.atom/packages/project-viewer/src/project-view.js:276:13)
    at project-viewer-project._onClickEvent (/Users/krzysiek/.atom/packages/project-viewer/src/project-view.js:17:8)

jccguimaraes added a commit that referenced this issue May 22, 2017
📝 update CHANGELOG
@jccguimaraes
Copy link
Owner

@PixelT, by bad, validate with 1.1.2 please

@PixelT
Copy link

PixelT commented May 22, 2017

From some reason (no idea) I have status-bar disabled....
After enabled it, seems to work OK :P

@jccguimaraes
Copy link
Owner

yeah, but that was an issue, i needed to validate if status-bar was enabled :)
also, there is an option that when you switch project, it tries to reload 3 default packages, and one of them is status-bar it could have been stuck in the process. If you keep having status-bar disabled, please inform me...

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants