-
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
Switching to JS file while Live Development is connecting causes it to fail #12379
Comments
Comment by peterflynn This didn't really work in earlier sprints either -- in Sprint 29, it causes Chrome to show the JS file's source in the browser tab, and in Sprint 30 the current bug (above) repros. So maybe not a high priority... |
Comment by lkcampbell
Your Expected result make a lot more sense though. Especially since this behavior is now causing an error in the connection. |
Comment by njx Medium priority to |
Comment by couzteau I observed reviewing the launch code that the helper function _doLaunchAfterServerReady is calling _getCurrentDocument again - after the open function has already retrieved a ref top the current document. I have set up a branch with a fix: jhagenst/fix-5110 I think the fix is good, but I have only seen a small fraction of the LiveDebugger code, hence I have the feeling I don't have sufficient insight. Thanks for a comment on wether the fix seems to do the right thing. |
Comment by couzteau posted PR adobe/brackets#5268 |
Comment by njx FBNC to |
Comment by peterflynn Waiting until the "index.html-finding" code lands before regressing this |
Comment by pthiess
|
Comment by peterflynn
This is less nasty than getting stuck on the loading screen forever, so changing priority to Low... but reopening. Leaving Sprint unassigned for now. |
Comment by peterflynn Btw, it's possible this was working better when |
Comment by couzteau I can repro now. In order to repro It's required that the HTML file launched in LivePreview is not named index.html |
Comment by peterflynn Marking needs review to reconsider 1.0 in/out question later, once we know more about our 1.0 plans for the Live Preview architecture. Also note: #4615 might be a dupe of this now that its description has been updated. |
Comment by redmunds FBNC to |
Comment by redmunds Forgot to re-assign to |
Comment by redmunds
|
Comment by redmunds
|
Issue by peterflynn
Friday Sep 06, 2013 at 23:51 GMT
Originally opened as adobe/brackets#5110
I could swear we fixed a bug just like this recently, but this occurs for me on master now...
Result:
Chrome stays on the gray "interstitial" page forever, and Brackets eventually shows a connection error dialog.
Expected:
Should still connect, since I was on a valid HTML file when I originally clicked it.
And if I wait on the HTML file until the connection succeeds, switching to the JS file at that point doesn't cause it to disconnect... so we're putting the user in a sort of race condition.
This is easy to hit if you're using Live Preview but what you actually want to work on is a CSS or JS file. You can't launch it from the file you're in (because of the "you must select an HTML file first" issue), so you quickly switch to the HTML file and then back to the file you actually care about.
Also, it's easier to hit on Win than Mac, because every Live Preview invocation means waiting for an instance of Chrome to launch from scratch -- much longer time period in which to hit the bug.
The text was updated successfully, but these errors were encountered: