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

[Live Preview]: Live Preview stops when there's a JS error on the page that is saved and doesn't return to normal functionality once fixed. #12992

Open
core-ai-bot opened this issue Aug 31, 2021 · 1 comment

Comments

@core-ai-bot
Copy link
Member

Issue by equinox
Sunday Dec 14, 2014 at 20:15 GMT
Originally opened as adobe/brackets#10172


While using jQuery (the example on Imgur is using jQuery, I haven't tested if it still acts the same with normal JS), I found that when I saved with an error on the page the Live Preview of the HTML would stop updating and even once the error was fixed and it was saved, it still never returned to original functionality.

I thought it was potentially related to adobe/brackets#5338 and/or adobe/brackets#7126 but this is more specifically errors in the JavaScript.

Imgur album with step by step of how to reproduce without extensions

The error in Chrome's developer tools console is always "ConsoleAgent: data-brackets-id=xx not found in :25" (xx changing every time). Stopping Live Preview and then starting again does resolve it, but so far nothing I've found does while it is still open.

Steps: shown in the Imgur album.

What happened: Live Preview stopped updating and never gave a reason for it.

What was expected: After the error was corrected, the Live Preview should have gone back to its original state and continued to update the HTML without error.

Brackets version: 1.0, Windows 7.
Happens with and without extensions.
The error "ConsoleAgent: data-brackets-id=xx not found in :25" is always present when typing anything into the HTML page once the steps have been followed. The error shows after every character is typed.

@core-ai-bot
Copy link
Member Author

Comment by busykai
Monday Dec 15, 2014 at 19:02 GMT


@Equinoxdawg, thanks for the report. Confirmed reproducible. It seems like on document save, the reloaded page is not instrumented (LiveDocument for HTML does not have associated editor).

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