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

Live preview error when editing code #5687

Closed
mkbaldwin opened this issue Oct 25, 2013 · 52 comments
Closed

Live preview error when editing code #5687

mkbaldwin opened this issue Oct 25, 2013 · 52 comments
Assignees
Milestone

Comments

@mkbaldwin
Copy link

While editing an HTML file I am repeatedly getting the "Live Preview Error: Unable to load Live Development page" as I try to work on code. I am running Brackets Sprint 32, and Chrome 30.0.1599.101 on Windows 7 Pro.

The live preview will work sometimes, but sometimes the connection to Chrome seems to break and I start getting that error.

@ghost ghost assigned ingorichter Oct 25, 2013
@njx
Copy link
Contributor

njx commented Oct 25, 2013

To @ingorichter to see if we can reproduce. @mkbaldwin - can you say a little more about when you get this error? Is it right after hitting the live preview button, or does it happen in the middle of the live preview session after you've already successfully seen the page in the browser?

@mkbaldwin
Copy link
Author

Sure, I have an HTML file that I am editing (it's only about 500 lines so nothing massive). I can start a live preview session and things seem to work fine initially. I can edit my code and see the changes update. Then after a few minutes of editing I will get the previously mentioned error.

I haven't been able to figure out any specific thing I might be doing that causes it to happen more frequently. Obviously it isn't happening for everyone otherwise I'm sure you would have a lot more complaints of it.

Let me know if you need more details or assistance reproducing it.

@marcelgerber
Copy link
Contributor

I get this error message sometimes, too. But for me it appears just 5 or 10 seconds after starting live preview.

I can't figure out a rule for that, too, but when I close the old Chrome window and open a new one, it works fine (everytime).
I even can't provide more info since I'm on another PC now.

UPDATE: opened #7097 to track this issue

@kdickinson
Copy link

I'm also having this issue. It never loads.

@njx
Copy link
Contributor

njx commented Nov 16, 2013

Nominating for sprint 35 to try to track down what's going on.

@jasonsanjose
Copy link
Member

@mkbaldwin Have you tried Sprint 34?

@arielfmdp
Copy link

I have the same issue since various versions ago, it never worked anymore, I don't remember exactly when started the issue, but with very early versions worked fine.

@ingorichter
Copy link
Contributor

@arielfmdp do you have Windows 7 Pro? Do you still see this with Brackets Sprint 34?

@arielfmdp
Copy link

Hi @ingorichter, I have windows 7 and the last Brackets sprint, but you know what ? I found the problem ! I just found THE problem!
It was the extension named "debugger", the one that opens a console down on brackets. I disabled that extension moving it to the disabled folder, and that's all !! Brackets' live preview started to work again !! I'm very happy !!
That issue was torturing me for so long....and I just wanted to try something and the first extension I disabled, fixed the issue. I cannot believe it. Well, I hope this helps some other people, I know there are many others with this problem.

@ingorichter
Copy link
Contributor

@mkbaldwin @SAplayer I created a very reliable way of reproducing the error (at least on my machine). The question for me is, if my error has the same root cause than yours.
I always get this error, when the html file is not part of the project and I start live preview with this file. This will lead to this error. But if the same file is part of a project, then this error won't show up. One other factor in my case is probably the size of the file (1.2MB). Do you encounter this issue with files inside or outside of a project?

@jasonsanjose
Copy link
Member

@ingorichter there's a related bug about live preview on a file outside the current project #5975. There's no error message though, so maybe it's not the same?

@ingorichter
Copy link
Contributor

@jasonsanjose yes, that sounds different from what #5975 says. Then this might be another issue that I found. I'd like to hear back from @mkbaldwin and @SAplayer what their setup looks like (in project file) and what the contents of the file looked like.

@marcelgerber
Copy link
Contributor

@ingorichter I didn't add them to the project, they were already in the folder.
I don't know any more how these files looked like as it has been a while since I encountered this issue the last time. Maybe it doesn't even exist anymore.
But as soon as I get it again, I will give you more information.

@mkbaldwin
Copy link
Author

@jasonsanjose I still have this error in sprint 34.

@ingorichter These are files that are all under 20k in size and they are ones that are in the folder that I have open within Brackets.

@peterflynn
Copy link
Member

Team decided to move this out to Sprint 36 in order to unblock Sprint 35

@njx
Copy link
Contributor

njx commented Jan 13, 2014

I sometimes get this as well, although usually in conjunction with starting/stopping live development fairly quickly or reloading Brackets. I'm not sure if I've seen it at other times.

@pthiess
Copy link
Contributor

pthiess commented Jan 13, 2014

@peterflynn Not enough time this sprint, moving out to next sprint.

@dangoor
Copy link
Contributor

dangoor commented Jan 16, 2014

I assume this is not for Sprint 36 any more?

@ingorichter
Copy link
Contributor

@mkbaldwin is it possible for you to share the files that you are referring to? That could help to reproduce the issue. Thanks.

@mmcgraw73
Copy link

not a solution but a quick fix:
I've encountered this error w/ Sprint35 - i've got around it by closing and restarting brackets-

@user24
Copy link

user24 commented Feb 10, 2014

I get this too sometimes. The console says:

LiveDevelopment._onInterstitalPageLoad(): No server active

UPDATE: This is being tracked by #7098

@debarunpal
Copy link

@ingorichter : I am also facing the same error with live preview. It kicked off as soon as I inserted my Google Analytics JS. Before that everything was running smooth, but the insertion made me pay dearly. Now the live development preview error is coupled with a remote debugger error for chrome where the browser fails to load and reload. Suggestions/Fix Plz...

UPDATE: this is being tracked by #7099

@redmunds
Copy link
Contributor

@ingorichter Pull request #6889 fixes the LiveDevelopment._onInterstitalPageLoad(): No server active error.

@njx
Copy link
Contributor

njx commented Feb 18, 2014

Also reported by syodash on Twitter.

@njx
Copy link
Contributor

njx commented Feb 19, 2014

This showed up a lot with the MissionBit students. The symptom I think I saw was:

  1. Click the Live Preview button
  2. Interstitial ("Waiting...") page opens in Chrome
  3. Almost immediately, the Live Preview button twipsy shows up in Brackets saying that Live Preview couldn't connect (didn't see the exact error); the interstitial page is still up in Chrome
  4. Eventually, after a delay, the "Live Preview unable to connect" timeout modal dialog appears.

It gets worse if you try to connect again between steps 3 and 4 - you end up getting the timeout dialog multiple times. #6889 should help with that aspect of it, but it's not clear why they were getting the immediate failure in step 2.

@dangoor
Copy link
Contributor

dangoor commented Feb 20, 2014

It seems that I can reproduce the problem that @njx lists consistently. I also noticed this morning while running tests that the Live Development integration tests are failing for me. #6889 fixes it for me.

@njx
Copy link
Contributor

njx commented Feb 25, 2014

See also #6638.

@dangoor
Copy link
Contributor

dangoor commented Mar 3, 2014

@painperdu you may be seeing #6830

@diegovdev
Copy link

I have Windows 7, I have 2 versions of Chrome, the public Chrome 33.0.1750.117 and Chrome Canary 35.0.1867.2.
By the way Brackets always opens Canary, is that the intended behavior?

@redmunds
Copy link
Contributor

redmunds commented Mar 3, 2014

@sapeish No, Brackets should open stable Chrome. Could you open a separate bug about Brackets opening Canary? Please include the full paths to the executables for all versions all Chrome you have installed.

@marcelgerber
Copy link
Contributor

The problem about Brackets opening Canary is already filed multiple times.
This comment includes the reason as well: #6830 (comment)

@redmunds
Copy link
Contributor

redmunds commented Mar 3, 2014

Issue #6830 is being used to track the Chrome API change from version 33 to 34. The new issue (logged as #7062) is to track issue about Brackets incorrectly determining which version of Chrome to launch.

@redmunds
Copy link
Contributor

redmunds commented Mar 6, 2014

@mkbaldwin

Let me know if you need more details or assistance reproducing it.

Are you still seeing the problem of Live Preview stop updating after editing your page? Have you tried any later builds? If so, have you narrowed down the issue any?

I opened a page in Live Preview and tried all kinds of edits, but I have not been able to reproduce the problem. Can you tell me more about the types of editing that you are doing to reproduce the problem? Editing text only? Adding/removing HTML tags? By hand, with code hints, or any other edit command? Editing styles, JS, or something else?

Are you using any extensions? Be sure to try with all extensions disabled.

@redmunds
Copy link
Contributor

redmunds commented Mar 7, 2014

@mkbaldwin I discovered a case where Live HTML was not highlighting and opened #7126. Could that be what you are seeing?

@redmunds
Copy link
Contributor

Many of the issues described in (and linked from) this issue were fixed. As for the original issue, I'm hoping user was running into case described in #7126 , but I'm not sure. Removing Sprint 37 Milestone and keeping open.

@redmunds redmunds removed this from the Sprint 37 milestone Mar 11, 2014
@user24
Copy link

user24 commented Mar 11, 2014

Sorry, I've not been doing much frontend dev the last few weeks so I
haven't had a chance to replicate.

On Tue, Mar 11, 2014 at 12:01 AM, Randy Edmunds [email protected]:

I'm hoping user was running into case described in #7126#7126, but we're not sure. Removing Sprint 37 Milestone and keeping open.

Reply to this email directly or view it on GitHubhttps://github.com//issues/5687#issuecomment-37249655
.

Howard Yeend BA MSc | solidRed.co.uk | @user24

@redmunds
Copy link
Contributor

@user24 We fixed some bugs in Sprint 37 (which will be out in a few days) so give that build a try.

@user24
Copy link

user24 commented Mar 18, 2014

I had a problem, but it might have been my fault. I loaded the live preview URL in firefox at the same time. Could that be causing this?

Dev tools says:

data-brackets-id=348 not found VM206:699
(anonymous function) VM206:699
RemoteFunctions.DOMEditHandler.apply VM206:683
applyDOMEdits VM206:760
InjectedScript.callFunctionOn

and now brackets doesn't have the lightning icon lit up and Chrome has stopped reflecting changes either instantly or on save.

Am on Sprint 37.

I can't promise that I hadn't also loaded the URL in firefox when I saw the previously reported errors too (sorry).

@redmunds
Copy link
Contributor

@user24 Brackets adds some instrumentation to the page, so what happens in other browsers is not predictable. Don't do that :)

@diegovdev
Copy link

The live preview seems to be working now on Sprint 37 for me (still opens Chrome Canary though)

@mkbaldwin
Copy link
Author

@redmunds I had not noticed any issues with the highlighting in the live HTML, only the Live Preview Error.

I haven't been doing as much lately that had me working in Brackets, but I have been using Sprint 37 some today and have not encountered any problems with live preview. Not completely certain if it is fixed or just hasn't happened yet. Though normally it happened frequently when I was working.

@redmunds
Copy link
Contributor

@mkbaldwin Thanks for the update. I will close this. Let us know if you see any more problems

@redmunds redmunds added this to the Sprint 37 milestone Mar 23, 2014
@mkbaldwin
Copy link
Author

@redmunds Thanks for looking into this, and keep up the great work! :)

@vsaenger
Copy link

@mkbaldwin If you open your file from file > Open Folder (ctril + alt + O) it won't display the Live Preview Error.

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