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

[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. #10172

Open
equinox opened this issue Dec 14, 2014 · 1 comment

Comments

@equinox
Copy link
Contributor

equinox commented Dec 14, 2014

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 #5338 and/or #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.

@busykai
Copy link
Contributor

busykai commented Dec 15, 2014

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants