Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Reload Brackets, changes to extensions are cached (& unit tests) #1516

Open
core-ai-bot opened this issue Aug 29, 2021 · 7 comments

Comments

@core-ai-bot
Copy link
Member

Issue by jrowny
Wednesday Sep 05, 2012 at 05:49 GMT
Originally opened as adobe/brackets#1551


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.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Sep 05, 2012 at 06:40 GMT


Possibly same bug as adobe/brackets-shell#32

@core-ai-bot
Copy link
Member Author

Comment by pthiess
Tuesday Sep 11, 2012 at 16:44 GMT


Reviewed - assigned to@jasonsanjose

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Tuesday Sep 11, 2012 at 16:45 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Tuesday Sep 11, 2012 at 16:46 GMT


  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

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Sep 19, 2012 at 20:08 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Sep 19, 2012 at 21:01 GMT


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?).

@core-ai-bot
Copy link
Member Author

Comment by njx
Saturday Nov 10, 2012 at 03:21 GMT


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

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

No branches or pull requests

1 participant