-
Notifications
You must be signed in to change notification settings - Fork 0
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] Document's refCount is no longer reliably correct #10619
Comments
Comment by MarcelGerber It all boils down to this check: https://github.com/adobe/brackets/blob/76f3f993512a16a7f28b935f0cc07e6131863d83/src/editor/EditorManager.js#L548 |
Comment by petetnt Nice job debugging the cause |
Comment by swmitra Great job |
Comment by nethip Good job |
Comment by swmitra
|
Comment by MarcelGerber Resolved with #12405. Thanks |
Comment by MarcelGerber I am deeply sorry, but I have to reopen this. |
Comment by swmitra
Edit Can confirm, this particular test has to be updated as the created editor using SpecRunnerUtils.createEditorInstance is never added to the pane , hence when we try to show it , we are going to call addView. One alternate is that we add the pane.addView call in SpecRunnerUtils.createEditorInstance itself , but then again the test will fail if we don't modify it. Following points are resolution options...
|
Comment by nethip
|
Issue by MarcelGerber
Monday May 02, 2016 at 19:50 GMT
Originally opened as adobe/brackets#12396
SpecRunnerUtils.js
DocumentManager = require("document/DocumentManager")
andDocumentManager.getAllOpenDocuments()
(supposed to only output one document - SpecRunnerUtils; otherwise, restart Brackets)_notifyActiveEditorChanged
and pressCtrl + E
to invoke an inline editorDocumentManager.getAllOpenDocuments()
now includes a second document - EditorManager - with a_refCount
of 3DocumentManager.getAllOpenDocuments()
's entry for EditorManager has a_refCount
of 5 nowCtrl + W
to close the full editorDocumentManager.getAllOpenDocuments()
's entry for EditorManager has a_refCount
of 4 nowDocumentManager.getAllOpenDocuments()
's entry for EditorManager has a_refCount
of 1 nowResult:
On current master, the
_refCount
of that document, where notably no editor exists any longer, is still 1, which means this document is not gonna get destroyedExpected:
As it is on ebd613b,
_refCount
should go down to 0, which means the document will self-destroyThis is the reason for some of the current test failures. I know it makes the UrlCodeHints tests fail, but I suppose it has broader impact.
This is caused by ffa298c78f95c70f98bd905cbba8e2f1fb4a457f, part of #11820
cc
@
swmitra@
nethip@
petetntThe text was updated successfully, but these errors were encountered: