-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Mac: Live View Not Working #4228
Comments
Could you be running into the issue described in #4055? If you installed Chrome after Brackets, then try removing and re-installing Brackets. |
I tried removing and re-installing Brackets but the problem remains. |
Have you gone through the Troubleshooting Doc? |
Yes, however the only advice for Mac Users having trouble with LIve View is to restart your computer. |
Where are you seeing that error message? What is the name and file extensions of the file you are trying to preview? Live Preview only works on HTML files. |
If I try on a CSS file, I get a normal error telling me to use HTML files. However, with HTML files there is no error message. The lightning bolt only goes to half and provides no functionality. |
Does Live Preview fail for all HTML pages, or only certain ones? For example, does it work for a simple, static "Hello, World" HTML page? |
Good question. Yes, it fails for all html pages. |
The key to the problem may be related to one strange phenomena. Occasionally, after several minutes of pressing live view my Chrome browser will try to load this: However, the page never loads and has the tab title "Waiting..." |
Reviewed. Medium priority to @redmunds. Please re-assign to jason if you dont' have time to resolve before your sabbatical. |
Additionally, Live Re-load on Google Chrome won't work with the following warning: "Could not connect to LiveReload server. Please make sure that LiveReload 2.3 (or later) or another compatible server is running." |
Maybe the LiveReload plugin is conflicting with Brackets Live Preview. The purpose of Live Preview is to provide the same functionality, so I don't know why you would also need LiveReload. Does Live Preview work if you disable/uninstall Live Reload? |
I downloaded Live Re-load at a later date. I had to switch to Sublime Text 2 due to this issue with Brackets. |
@shmckay - do you have anti-virus software installed? If so, which one? |
I only use ClamXav (though very rarely). I ran it this morning, no viruses found. |
The virus checker could be interfering with launching the node server or Chrome. I installed ClamXav, but didn't run into any problems. What about firewall software? Live Preview starts up a node server that listens on a randomly-generated port number. If you have a firewall installed, that could be blocking the connection. Sorry to keep throwing out questions like this! It would be great to get to the bottom of this problem, and I really appreciate your cooperation. |
I don't have any firewall software installed. I also appreciate your help, thank you. |
I also have problems with the Live Preview; My Chrome browser tries to load that page over and over, but always closes itself. |
I also have this problem. Works fine on Windows, but on Mac I click Live Preview and it does nothing, not even the page loading over and over like these guys are having. This is on a freshly installed Sprint 26 DMG, no other Brackets files on the computer. If I click Live Preview this shows up in the console:
If I tell it to log the Node state to the console, it says it's on port 50071, and navigating there shows Everything else I've been able to test so far works fine. |
Typing Chrome version is UPDATE: this is being tracked with #7101 |
Typing http://127.0.0.1 returns: "Oops! Google Chrome could not connect to 127.0.0.1" Chrome version is Version 27.0.1453.116. |
Okay, this is just a little freaky, but I just tried Live View again and it worked perfectly! |
It looks like the removal of "Web Sharing" in Mountain Lion is affecting Brackets' use of localhost for Live Preview. We'll investigate for a solution. In the mean time, you may want to try enabling "Web Sharing" and see it fixes the issue. You can check this http://reviews.cnet.com/8301-13727_7-57481978-263/how-to-enable-web-sharing-in-os-x-mountain-lion/ to enable it. |
After I enabled "Web Sharing" the issue was fixed. Live view works in Brackets. Strangely, "Live Reload" in Chrome still doesn't work, but that's not a Brackets related issue. |
Enabling Web Sharing didn't fix it for me, same issues as my above post. |
@skeet70
Let us know whether you can go through all the steps and what you see after using the node port. Thanks. |
I tried that in my above comment. The server is starting by default on ports in the |
Yeah just tried it, this was the debug output:
Still doesn't work for me. |
@skeet70 Thanks, this is helpful. It looks like it's a problem opening a WebSocket connection to the Chrome remote debugging port. Are you running any other apps that are using port 9222? |
There aren't any other apps running using port 9222. I get a server denies connections error when I go to |
OK, I think we're getting somewhere! If you quit Chrome and start Live Preview, does Chrome launch? If yes, after several seconds do you see a "Connecting to Browser" error in Brackets with a "Relaunch Chrome" button? Can you try disabling all Chrome extension and see if that makes any difference? |
Yeah! Quitting Chrome and using Live Preview doesn't launch a Chrome window, disabling all extensions didn't change any behavior either. |
What do you get if you enter this in a terminal window:
What happens if you try to launch Chrome by it's bundle identifier:
|
Using |
I posted an instrumented build here. This build logs several messages to the console when starting live development. Can you download the zip file, unpack it, and try running live preview with this build. After starting live preview, open Console.app and search for Brackets. You should see lines like this: What output do you see? |
Regardless of whether Chrome is already running or not, when live preview is started it only logs this to the console:
|
That message is coming from SIMBL. It should be harmless, but I wonder if SIMBL is interfering with Chrome launching somehow. Can you try removing it? Are you running another utilities that could be affecting app launching (virus scanners, etc.)? |
Sorry, that SIMBL warning is only there when Brackets starts, nothing is actually logged when Live Preview is clicked. I don't have any utilities that would affect app launching. How would I remove SIMBL, to make sure that's not the problem? |
According to this thread, you get the uninstaller when you download SIMBL. |
Hmmmm. I never actually downloaded SIMBL, so if it's there, it's from some other application or something. It looks like it may be TotalTerminal which I use constantly every day, so I'd like to not remove SIMBL if not necessary. Are there any other steps I could take to help debug this? I'm re-downloading the instrumented build you posted before to check it again just in case I missed something. |
@gruehle - not sure we need to open this to this sprint, but it might be good to verify that SIMBL/TotalTerminal is what's causing the problem, so we can at least release-note it. |
Just tried out Sprint 30,
Still not working for me. |
Sounds like this may be the same problem as #4688. |
Not working for me either. Have you guys found any solutions for this problem yet? |
The conversations here have gone stale. Closing. |
I have the same issue. When I click on "Live Preview", it only shows half-lit and Chrome never runs. What I've found to always work in this case, is click Debug > Show Developer Tools - this opens a new Chrome instance. Then, clicking Live Preview works properly. If you already tried to run Live Preview and it's stuck in it's half-lit mode, the above will not work, unless you Debug > Reload With Extensions and then follow the steps above again (show developer tools, open live preview). |
This is a long, detailed thread so it likely not the same exact issue. Please open a new issue. In addition to this info, also provide the version of Brackets, your OS/version, which version of Chrome do you have installed. Also, explain what you mean by "half-lit mode" -- I don't know what that means. Thanks. |
@redmunds sure. Opening a new issue now. |
Live View never worked.
Updated Chrome, sprite 26 of Brackets, updated Mac OS 10.7.5
Computer repeatedly spontaneously tries to run "file:///Applications/Brackets%20Sprint%2026.app/Contents/www/LiveDevelopment/launch.html" but nothing opens. The file will not open.
The text was updated successfully, but these errors were encountered: