jccguimaraes / atom-project-viewer

Project Viewer - An Atom's package
MIT License
75 stars 15 forks source link

Database not found after update #115

Closed asitemade4u closed 7 years ago

asitemade4u commented 7 years ago

ISSUE

The updates to version 1.0.0 then version 1.0.1 have taken place. But when I open Project Viewer again, a message tells the project database cannot be found and no project is displayed. How can I recover them?

Environment

jccguimaraes commented 7 years ago

please go to menu -> Project-Viewer -> Utilities -> Convert from 0.3.x ...

Please inform me if this resolves, it is actually not a bug, but something i don't want the project to automatically do

jccguimaraes commented 7 years ago

Please update to 1.0.3 sorry about this...

devnox commented 7 years ago

Im currently using 1.0.3 version and its not working. I tried to Convert from 0.3.x and still nothing. Please advice.

girlandhercode commented 7 years ago

First: Thank you for all of the work that went into this package. It is fantastic.

The upgrade may or may not have solved the original issue, however, I still had to toggle "Disable" for the package and then re-"Enable" it to get the project sidebar to show up. My project list and all info is still there, however it will not show up at all without the toggling of the package state. I'll post my error in a new issue.

ETA: Issue already reported: #118

jccguimaraes commented 7 years ago

@devnox let me check this issue. I have two guys here that migrated well. Can you check if you really have the file like ~/.atom/storage/project-viewer.json?

jccguimaraes commented 7 years ago

@girlandhercode does in config you have Display On Startup and Panel visibility interaction state checked?

girlandhercode commented 7 years ago

@jccguimaraes These are my settings: image

Also, just to reiterate, I do not get any errors if I toggle "enable"/"disable" the addon. The sidebar shows up and works as expected. It also avoids the 'null' error in #118

jccguimaraes commented 7 years ago

@girlandhercode thank you for the feedback, let me see this later tonight. This was a major refactor. Didn't expect all these issues :) :( let's see.

Appreciate the patience... :full_moon_with_face:

jccguimaraes commented 7 years ago

@girlandhercode, made two fixes, can you check? if not, do you have tree-view active? thankx

girlandhercode commented 7 years ago

@jccguimaraes I still have to toggle "Disable" then re-"Enable" the package to get the sidebar to show up, however, I am no longer experiencing #118 either so progress is good!!

I have tried the following:

None of the above open the panel (nor does the command pallet allow me to switch between projects). Toggling package state makes the panel show up.

Thanks again!

jccguimaraes commented 7 years ago

will investigate more

devnox commented 7 years ago

@jccguimaraes yes i have ~/.atom/storage/project-viewer.json

devnox commented 7 years ago

I get that error:

Local database corrupted. Please check the content of the local database.

jccguimaraes commented 7 years ago

@devnox, i know it is asking too much but can you PM your file? prob if you have gist of it (dont use import/export for now if you have this issue)

devnox commented 7 years ago

Hey I just found something. I moved the panel to the right side position and after that moved it to the left side without Auto hidding. I think there is something in Auto Hidding option.

encodis commented 7 years ago

I also get the database corruption error. This is with 1.0.4 (and Atom 1.14.1)

devnox commented 7 years ago

After last update I again can not see my projects.

jccguimaraes commented 7 years ago

@devnox and @philip-hodder, using the utilities -> migrate from 0.3.x don't work i really don't know why you can't get it to work. Just for troubleshooting, you came from a 0.3.x and not 0.2.x right?

Any ways, if you can send a snippet of the file in PM that would be great also. I am really sorry for this :(

colorful-tones commented 7 years ago

I've been away from my computer (unusual) for a few days and just updating all the things in Atom and got the error message:

Local database corrupted. Please check the content of the local database.

I perused this ticket, and then did the following steps in exact sequence:

  1. menu -> Project-Viewer -> Utilities -> Convert from 0.3.x
  2. Disabled Project Viewer package
  3. Enabled Project Viewer package
  4. Restarted Atom
  5. The sidebar projects were restored and no longer receiving Local database corrupted. error. However, the sidebar setting for Autohide was not restored, therefore I just had to...
  6. Go to Project Viewer Settings and re-check the "Sidebar auto hiding" option.
  7. Another restart of Atom and back to where I was, and no errors. Seems good to go now.

Atom: 1.14.1 Project Viewer: 1.0.5

jccguimaraes commented 7 years ago

@colorful-tones, thanks for this feedback, i hope it can solve some issues for the short run, i will be diving all of this and hopefully come to a final solution. i have identified the issues regarding the auto hide at least but it is not a simple fix due to the major refactor i did. sorry :D

encodis commented 7 years ago

Running the "Utilities > Convert from 0.3.x" tool worked great! I think this should maybe be at the top of the readme file, at least for a few releases! Other than that this seems to be an excellent update! Thanks!

jccguimaraes commented 7 years ago

@philip-hodder, thank god! just missing now for @devnox to work :( thank you for the vote of confidence on the update. there were a lot of changes, and there is still some big ass issues.

devnox commented 7 years ago

Hello again. The problem here is that the Auto hiding is not working properly. When I enabled the auto hiding feature the panel is not hidding, only the projects disapear but project viewer panel stays on and empty. And one more. When I start Atom I need to Menu -> Project-Viewer -> Toggle Panel to make it working.

jccguimaraes commented 7 years ago

it is almost ready the autohide! just hang there people :(

jccguimaraes commented 7 years ago

can you all please validate with 1.0.6 is this issue is resolved?

devnox commented 7 years ago

It is getting better. Now anytime i start Atom i need to Toggle Panel to get it working.

jccguimaraes commented 7 years ago

@devnox what are the 2 and 3 option of the pv config. by the way, you recovered your DB?

devnox commented 7 years ago

Yeah Database is recovered. I'm attaching a screenshot of what I have. pv-conf

jccguimaraes commented 7 years ago

@devnox, there you have. 2nd and 3rd option are related. Display on startup -> you need to check the 3rd. so it is displayed on startup.

devnox commented 7 years ago

Just great! Its working now!

jccguimaraes commented 7 years ago

@devnox. cool

jccguimaraes commented 7 years ago

closing this issue if you all don't mind... :+1:

miztizm commented 5 years ago

hello, i had a similar error today. Local database corrupted, please check the content of the local database.After my researches. in the file project-viewer.json at the end there was a one more than necessary symbol } how he get there , i dont have idea. Maybe it helps someone.