Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Reload Brackets, changes to extensions are cached (& unit tests) #1551

Closed
jrowny opened this issue Sep 5, 2012 · 7 comments
Closed

Reload Brackets, changes to extensions are cached (& unit tests) #1551

jrowny opened this issue Sep 5, 2012 · 7 comments
Assignees

Comments

@jrowny
Copy link
Contributor

jrowny commented Sep 5, 2012

With the new brackets shell changes to extensions are cached and therefore don't reload when you hit F5 or reload brackets. To demonstrate the issue:

  1. Add alert("I am here"); to brackets.js just after the define
  2. hit f5, it works fine
  3. add the same code to an extension in the user directory, and hit f5
  4. nothing :(
  5. unless brackets is completely closed and re-opened

Kinda a pain if you're working on an extension and just want to hit f5 to see your change.

@peterflynn
Copy link
Member

Possibly same bug as adobe/brackets-shell#32

@pthiess
Copy link
Contributor

pthiess commented Sep 11, 2012

Reviewed - assigned to @jasonsanjose

@jasonsanjose
Copy link
Member

I'll update here with a comment and update the developer docs on how to disable the cache.

@jasonsanjose
Copy link
Member

  1. Choose "Debug > Show Developer Tools" in Brackets-Shell
  2. In the developer tools tab that launches in Chrome, click the gear
    icon in the lower right
  3. Check "Disable cache" in the "General" tab

@peterflynn
Copy link
Member

Note: this issue still occurs for unit test spec files too ("*-test.js"). Same workaround applies.

@peterflynn
Copy link
Member

Also note: the workaround only works while the Developer Tools window is open. If you close it, the bug comes back for any further changes to extension/spec code.

Ideally, we should figure out a way for brackets-shell to just automatically do whatever the "Disable cache" checkbox does (or maybe it could even be done in brackets core code, by pinging our own remote debugging URL?).

@njx
Copy link

njx commented Nov 10, 2012

I think this is now being tracked by #1744. Closing.

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

5 participants