adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Can't use Live Preview and Inspect at the same time; "web page not available" error on device #3978

Open dalcala opened 11 years ago

dalcala commented 11 years ago

Description: Can't use Live Preview and Inspect at the same time. When Live Preview is turned on and Chrome gets focus, the device has an error: "An error occurred. Web page not available."

Repro using Mac 10.7 & Win 7 using Brackets Sprint 25.

Repro steps:

  1. Install Adobe Edge Inspect on Win or Mac. See http://forums.adobe.com/docs/DOC-2535.
  2. Install Adobe Edge Inspect extension for Chrome.
  3. Open an html file in Brackets.
  4. Turn on Live Preview.
  5. Launch Inspect on your device and connect to the computer.

Actual results: On the device that's running Inspect (e.g. iPhone), an error shows: "An error occurred. Web page not available." The URL in Chrome is 127.0.0.1:50415/index.html

Expected results: Able to see the web page that's being shown in Live Preview (127.0.0.1:50415/index.html).

Workaround: Don't use Live Preview and Inspect at the same time.

iwehrman commented 11 years ago

CC'ing myself, @iwehrman, and @duaneobrien.

njx commented 11 years ago

@iwehrman / @duaneobrien - is Inspect supposed to work with local files (that aren't being served in some other way) by serving them itself? If so, then it seems like we would need a way for Inspect to map our localhost URL back to the original file, so Inspect can serve the same files from its own server.

njx commented 11 years ago

Reviewed. Marking medium priority on the assumption that this is important for EC. To @gruehle - we need to understand what the desired solution is.

iwehrman commented 11 years ago

Inspect is not supposed to work with local files, as far as I know.