thehogfather / brackets-code-folding

Code folding extension for brackets IDE
134 stars 42 forks source link

"working files" and active project states not preserved correctly with this extension enabled #101

Open rhbecker opened 10 years ago

rhbecker commented 10 years ago

This extension is causing issues for me with (1) preserving the state of the "Working Files" area of Brackets between project switches and with (2) preserving the open project during applications restarts.

Recreate issue 1:

  1. Change the state of the "Working Files" area by opening or closing some files.
  2. Switch to a different project.
  3. Switch back to the project where you modified the "Working Files" area's state.
  4. Observe that the changes are not preserved (files that were closed have reverted to being open, files that were opened do not remain so).

    Recreate issue 2:

  5. Start Brackets.
  6. Switch to a different project.
  7. Close Brackets.
  8. Re-open Brackets and observe that the project you switched to in the last session is no longer open, but rather the project that was open when you started Brackets the first time is what appears.

I've followed the instructions provided on the Brackets wiki to disable all extensions except for this one - seemingly a confirmation that it's not an issue of conflicting extensions.

I'm using version 0.2.23 of the extension, along with Brackets ... Release 1.0 build 1.0.0-15191 (release 3f2eb90a4) build timestamp: Fri Oct 31 2014 12:47:39 GMT-0700

With this being such a popular extension, I'm surprised to find no other reports of these issues. It makes me think it's particular to my usage, but I'm not sure what else to try after disabling all other plugins.

thehogfather commented 10 years ago

What operating system are you running? Are you absolutely certain that there is one instance of brackets running while you encounter these issues? I've just tried to recreate the issues on my mac without any success. I have the same version of Brackets and the extension.

thehogfather commented 10 years ago

Also for completeness, what settings do you have enabled for Code Folding (i.e., View > Code Folding Settings)?

rhbecker commented 10 years ago

>> What operating system are you running?

Windows 7

>> Are you absolutely certain that there is one instance of brackets running while you encounter these issues?

Yes, unless Brackets is hiding an instance from Windows Task Manager.

>> what settings do you have enabled for Code Folding

code-folding-settings

rhbecker commented 10 years ago

Until you asked, I didn't even know there was a settings dialog for this extension. I just started playing with that after posting my last comment.

Interestingly, I just tried un-checking "Save fold states" and hitting "Save". Brackets gives me the usual prompt to reload. I accept. Returning to the settings dialog, I see the box is still checked, as though my action had no effect.

rhbecker commented 10 years ago

Ok, I've gone through a few cycles of the following, and I think I can report some consistent behaviors:

thehogfather commented 10 years ago

Thanks for that - it is very helpful.

thehogfather commented 10 years ago

By the way I am still unable to reproduce these issues - including the cycles needed for the settings to 'stick'. I however do agree that Brackets does not need to be reloaded every time a setting is saved. If you get some time could you update to the latest master version and see if the issues can still be reproduced?