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

Using Live Preview in conjunction with the Inline Editor causes uncaught exceptions #536

Closed
pthiess opened this issue Apr 4, 2012 · 2 comments

Comments

@pthiess
Copy link
Contributor

pthiess commented Apr 4, 2012

1.) Have a page open in Live Mode (GoLive active)
2.) Open the Inline Editor with a class defined in multiple places (multiple results shown)
3.)Switch between the results

Result:

Developer Tool opens with errors -
A number of them stating "failed to load resource" pointing at localhost/json.
Following unhandled exception:

/C:/Users/pthiess/git/brackets-app/brackets/src/document/DocumentManager.js:394Uncaught Error: Document for this path already in _openDocuments!

Stack:
Document.addRef/C:/Users/pthiess/git/brackets-app/brackets/src/document/DocumentManager.js:394
Editor/C:/Users/pthiess/git/brackets-app/brackets/src/editor/Editor.js:218
_createEditorForDocument/C:/Users/pthiess/git/brackets-app/brackets/src/editor/EditorManager.js:108
createInlineEditorForDocument/C:/Users/pthiess/git/brackets-app/brackets/src/editor/EditorManager.js:255
InlineTextEditor.createInlineEditorFromText/C:/Users/pthiess/git/brackets-app/brackets/src/editor/InlineTextEditor.js:210
CSSInlineEditor.setSelectedRule/C:/Users/pthiess/git/brackets-app/brackets/src/editor/CSSInlineEditor.js:135
(anonymous function)/C:/Users/pthiess/git/brackets-app/brackets/src/editor/CSSInlineEditor.js:73
f.event.dispatchjquery-1.7.min.js:3
f.event.add.h.handle.i

@peterflynn
Copy link
Member

There are two separate bugs here:

@gruehle
Copy link
Member

gruehle commented Apr 4, 2012

The "failed to load resources" error is an FOL. To establish a remote debugging connection, we try to get the JSON debugging information from port 9222, and handle any failures correctly in our code. These errors are expected and harmless. There is no way (that I could find) to suppress the error in the console.

I found these related StackOverflow questions:
http://stackoverflow.com/questions/4500741/suppress-chrome-failed-to-load-resource-messages-in-console
http://stackoverflow.com/questions/3962647/how-to-supress-chrome-error-message

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

No branches or pull requests

3 participants