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] Using Live Preview in conjunction with the Inline Editor causes uncaught exceptions #533

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

Comments

@core-ai-bot
Copy link
Member

Issue by pthiess
Wednesday Apr 04, 2012 at 01:14 GMT
Originally opened as adobe/brackets#536


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

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Apr 04, 2012 at 17:42 GMT


There are two separate bugs here:

@core-ai-bot
Copy link
Member Author

Comment by gruehle
Wednesday Apr 04, 2012 at 20:55 GMT


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 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