Skip to content
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

"Live preview was cancelled for an unknown reason ({0})" #12932

Open
core-ai-bot opened this issue Aug 31, 2021 · 28 comments
Open

"Live preview was cancelled for an unknown reason ({0})" #12932

core-ai-bot opened this issue Aug 31, 2021 · 28 comments

Comments

@core-ai-bot
Copy link
Member

Issue by DmurrayPEI
Thursday Nov 06, 2014 at 22:10 GMT
Originally opened as adobe/brackets#9846


Hey, I just downloaded brackets the other days, as I'm learning to code. I really enjoy brackets so far, however, my live preview won't work, and neither will any extensions.

I was in the IRC channel talking to@redmunds, and@bchintx and we went through some trouble shooting, turning off firewall, updating Chrome, closing background apps, etc..

When trying to install an extension I receive this error "Installation failed. Unknown Internal Error"

I tried going into the dev tools as suggested by@redmunds, however this is what it shows.

"Detached from the target. Remote debuggin has been terminated with reason: websocket_closed Please re-attache to the new target.

@bchintx also suggested to run Brackets as admin, however that didn't solve any issues.

@redmunds was stumped.

I am running Brackets 1.0, Chrome 38, Windows 7 Ultimate SP1 64bit,

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Thursday Nov 06, 2014 at 23:28 GMT


@DmurrayPEI Have you tried to remove Brackets cache? It is located in C:\Users[username]\AppData\Roaming\Brackets\cef_data. And also remove live-dev-profile folder and see if it fixes the issue.

@core-ai-bot
Copy link
Member Author

Comment by DmurrayPEI
Friday Nov 07, 2014 at 02:12 GMT


@RaymondLim Yes I have, I forgot to mention that I had done that

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Friday Nov 07, 2014 at 03:09 GMT


@DmurrayPEI Did you go through all the steps of the Live Preview section of the Troubleshooting guide? There are quite a few. Make sure you go until you hit the Brackets is Running Slow section.

@core-ai-bot
Copy link
Member Author

Comment by DmurrayPEI
Friday Nov 07, 2014 at 03:16 GMT


@redmunds, yes I have.

@core-ai-bot
Copy link
Member Author

Comment by DmurrayPEI
Friday Nov 07, 2014 at 03:19 GMT


I have done all this before I went ontl the IRC channel

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Friday Nov 07, 2014 at 18:04 GMT


@DmurrayPEI Do you have multiple instances of Brackets running? If so, try with a single instance.

@core-ai-bot
Copy link
Member Author

Comment by DmurrayPEI
Friday Nov 07, 2014 at 18:13 GMT


@redmunds No, it has been like this since the moment I first installed as well 4 days ago.

@core-ai-bot
Copy link
Member Author

Comment by dangoor
Monday Nov 17, 2014 at 20:12 GMT


It sounds like Brackets isn't able to talk to the built-in Node server. We're going to improve logging in that area. That said, it seems like there must be something that prevents the two from talking, though I see the note about the firewall having been disabled. I don't know a lot about Windows networking to know where specifically to look.

@DmurrayPEI Do you have an anti-virus software that might block incoming connections?

@core-ai-bot
Copy link
Member Author

Comment by MarcelGerber
Saturday Nov 22, 2014 at 11:48 GMT


It could also be a proxy, as pointed out in adobe/brackets#9723 (comment).
@DmurrayPEI If you use a proxy, can you try adding localhost to the non-proxy addresses in the Control Panel, as pointed out in the comment linked above?

@core-ai-bot
Copy link
Member Author

Comment by lackofagoodname
Wednesday Dec 24, 2014 at 00:28 GMT


I'm having a similar issue and getting the Live Preview cancelled message, but only in Chrome. I tested the multi-browser functionality and Live Preview works in Safari, but only for the Getting Started folder. I tried opening a folder with my project and Live Preview does not work correctly.

I tried reinstalling Brackets and Chrome, made sure Proxies are disabled and added localhost to my Bypass list, and to my knowledge I don't have any antivirus on my Mac, at least that I have added.

Any help would be greatly appreciated.

@core-ai-bot
Copy link
Member Author

Comment by ingorichter
Friday Dec 26, 2014 at 19:57 GMT


@lackofagoodname Do you have any output in the dev tools console in Chrome?

@core-ai-bot
Copy link
Member Author

Comment by FunkeDope
Monday Dec 29, 2014 at 21:52 GMT


I'm also having this issue with Chrome (40.0.2214.45 beta-m (64-bit)) on Windows 7. I've been using Brackets issue free since the last update, and now this is happening quite frequently. If I restart Brackets it seems to work for a bit, but then dies. I noticed it breaks the most frequently when working with scss files.

@core-ai-bot
Copy link
Member Author

Comment by StephenESC
Thursday Jan 01, 2015 at 03:07 GMT


For what it’s worth, I too was having similar issues with the Live Preview working ever since installing Brackets 1.1, where Chrome would launch but then lose the connection. I kept getting the message “Live Preview cancelled for unknown reason {(0)}”.

After a bit of trial and error, it turned out to be Adobe’s CSS Shapes Editor for Brackets extension that was causing the issues. I removed that and everything works fine again.

@core-ai-bot
Copy link
Member Author

Comment by lackofagoodname
Friday Jan 02, 2015 at 19:40 GMT


@ingorichter I checked my extensions after StephenESC's comment and tried removing the Shapes Editor as well, and that seems to have fixed the issue.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Friday Jan 02, 2015 at 19:53 GMT


@DmurrayPEI Do you have the CSS Shapes Editor extension installed?

@core-ai-bot
Copy link
Member Author

Comment by charlwillia6
Thursday Jan 22, 2015 at 20:03 GMT


@StephenESC - Perfect, thanks. Glad that was all it was.

@core-ai-bot
Copy link
Member Author

Comment by chuckdries
Monday Jan 26, 2015 at 22:29 GMT


Is that seriously it? How can we get in touch with the shapes editor dev?

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Monday Jan 26, 2015 at 22:58 GMT


@chuckdries There is an issue filed in the adobe-webplatform/brackets-css-shapes-editor repo if you care to comment on it.

@core-ai-bot
Copy link
Member Author

Comment by fischgeek
Thursday May 07, 2015 at 18:37 GMT


Same here. Uninstalled css shapes and live preview is working now.

@core-ai-bot
Copy link
Member Author

Comment by VProfirov
Friday May 08, 2015 at 22:20 GMT


@StephenESC - much appreciated man, thank you very much. Your comment saved me some significant amount of time. Good job.Keep it up! 👍

@core-ai-bot
Copy link
Member Author

Comment by fr32c
Monday Jul 27, 2015 at 04:25 GMT


Sorry about the CSS Shape Editor technology, but could we make it disabled at launch, since it still causes issues and hasn't moved for 11 month ?

And could someone update the page: https://github.com/adobe/brackets/wiki/Troubleshooting#-live-preview-isnt-working to reflect this troubleshooting ?

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Monday Aug 10, 2015 at 16:38 GMT


@fr32c I added a note to the wiki page in this section: https://github.com/adobe/brackets/wiki/Troubleshooting#-other-live-preview-issues

@core-ai-bot
Copy link
Member Author

Comment by daden
Monday Sep 14, 2015 at 11:30 GMT


I'm getting the error but only have one extension installed -- Brackets SASS. It has worked fine on a relatively small set of SASS files but when I use a larger set, I get the error. The base SASS file compiles find the first time but when I make a change in either the base file or an imported file, I get the error.

@core-ai-bot
Copy link
Member Author

Comment by abose
Monday Sep 14, 2015 at 11:41 GMT


Can you go to debug> show developer tools> console tab and copy the error messages here?
How many files are in the brackets project?

@core-ai-bot
Copy link
Member Author

Comment by daden
Monday Sep 14, 2015 at 16:32 GMT


Following is the full set of messages. Here's the sequence I did:

  1. Started Brackets.
  2. Did Debug->Show Developer Tools
  3. Changed the HTML and live update worked.
  4. Put a comment into the console 'about to change the CSS"
  5. Changed a 'width' attribute in the CSS.

When I did #5, it displayed the error message in the subject of this email.

In terms of number of files, there's one index.scss that imports about 23
other files. The imported files might do some imports as well, though not
sure about that -- I brought the files over from a live application to work
in a sandbox area and haven't gone through all the files, just trying to
replicate the app environment to do some playing.

Hope that helps and thank you!

d

Download the React DevTools for a better development experience:
http://fb.me/react-devtools
/utils/DeprecationWarning.js:90 PreferencesManager.convertPreferences() has
been deprecated. Please upgrade to the current Preferences system (
https://github.com/adobe/brackets/wiki/Preferences-System#conversion-from-the-pre-36-preferences-system
).
at Object.convertPreferences (/preferences/PreferencesManager.js:325:28)
at Object.eval (/utils/Resizer.js:548:24)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on
Brackets modules and model objects. Call on()/off() directly on the object
without a $() wrapper.
at new jQuery.fn.init (/brackets.js:474:36)
at n
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at Object.eval (/SASSAgent.js:161:5)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on
Brackets modules and model objects. Call on()/off() directly on the object
without a $() wrapper.
at new jQuery.fn.init (/brackets.js:474:36)
at n
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at Object.eval (/main.js:323:5)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on
Brackets modules and model objects. Call on()/off() directly on the object
without a $() wrapper.
at new jQuery.fn.init (/brackets.js:474:36)
at n
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at _statusChangeHandler (/SASSAgent.js:141:49)
at Object.trigger (/utils/EventDispatcher.js:222:40)
at _setStatus (/LiveDevelopment/LiveDevelopment.js:332:17)
at Object.init (/LiveDevelopment/LiveDevelopment.js:1495:9)
at eval (/LiveDevelopment/main.js:310:25)
at _callHandler (/utils/AppInit.js:93:13)
at Object._dispatchReady (/utils/AppInit.js:113:13)
/LiveDevelopment/MultiBrowserImpl/transports/NodeSocketTransport.js:87
NodeSocketTransport - start
/LiveDevelopment/Inspector/Inspector.js:264 GET http://127.0.0.1:9222/json
net::ERR_CONNECTION_REFUSED
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on
Brackets modules and model objects. Call on()/off() directly on the object
without a $() wrapper.
at new jQuery.fn.init (/brackets.js:474:36)
at n
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at eval (/SASSAgent.js:98:17)
at Function.St (/thirdparty/lodash.js:23:147)
at Object.eval (/SASSAgent.js:96:15)
at j
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911)
at Object.k.fireWith as resolveWith
at Object.e.(anonymous function)
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:28704)
at j
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:26911)
/LiveDevelopment/Agents/ConsoleAgent.js:55 ConsoleAgent: Failed to load
resource: the server responded with a status of 404 (Not Found) (url:
http://127.0.0.1:52110/favicon.ico)
'about to change the CSS'
"about to change the CSS"
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on
Brackets modules and model objects. Call on()/off() directly on the object
without a $() wrapper.
at new jQuery.fn.init (/brackets.js:474:36)
at n
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at _setStatus (/SASSAgent.js:46:16)
at _docChangeHandler (/SASSAgent.js:51:9)
at changeCallback (/SASSAgent.js:93:17)
at Document.trigger (/utils/EventDispatcher.js:222:40)
at Document._notifyDocumentChange (/document/Document.js:287:14)
at Document._handleEditorChange (/document/Document.js:427:14)
at Editor.trigger (/utils/EventDispatcher.js:222:40)
/LiveDevelopment/Inspector/Inspector.js:121 You must connect to the
WebSocket before sending messages.
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on
Brackets modules and model objects. Call on()/off() directly on the object
without a $() wrapper.
at new jQuery.fn.init (/brackets.js:474:36)
at n
(file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at eval (/SASSAgent.js:136:13)
at Function.St (/thirdparty/lodash.js:23:147)
at _styleSheetRemoved (/SASSAgent.js:134:11)
at eval (/SASSAgent.js:147:17)
at Function.St (/thirdparty/lodash.js:23:147)
at _statusChangeHandler (/SASSAgent.js:146:15)
at Object.trigger (/utils/EventDispatcher.js:222:40)
/LiveDevelopment/Inspector/Inspector.js:121 You must connect to the
WebSocket before sending messages.

@core-ai-bot
Copy link
Member Author

Comment by abose
Tuesday Sep 15, 2015 at 09:05 GMT


Seems like brackets cant connect to Chrome remote debug port.

@core-ai-bot
Copy link
Member Author

Comment by avimalhotra
Saturday Jan 02, 2016 at 16:03 GMT


I've just removed shape editor and its working perfectly now.

@core-ai-bot
Copy link
Member Author

Comment by Hlusta
Thursday Jul 14, 2016 at 21:41 GMT


Removing shape editor did the job for me too! Thx!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant