Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Preview not working #1

Open
esbennn opened this issue Jun 27, 2018 · 7 comments
Open

Preview not working #1

esbennn opened this issue Jun 27, 2018 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@esbennn
Copy link

esbennn commented Jun 27, 2018

Preview does not function with the flatpak version of Brackets.
Release 1.13 build 1.13.0-17696 (release 49d29a8bc)

Pressing the Preview button results in a popup saying:
An error occurred when launching the browser. (error Unknown) For more information, see Troubleshooting Live Preview connection errors.

If File>Enable Experimental Live Preview is enabled, pressing the preview button does nothing - the lightning icon gets half "filled", and nothing happens.

Does it need special permissions to run chrome?

@esbennn
Copy link
Author

esbennn commented Jul 2, 2018 via email

@paulcarroty paulcarroty added the help wanted Extra attention is needed label Jul 3, 2018
@paulcarroty
Copy link
Contributor

paulcarroty commented Jul 10, 2018

Update: adobe/brackets#5250 (comment)

I also tested working package from unitedrpms - here Brackets run chromium with debug 9222 port:

/usr/lib64/chromium-browser/chromium-browser --enable-plugins --enable-extensions --enable-user-scripts --enable-printing --enable-sync --auto-ssl-client-auth --no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-file pps --allow-file-access-from-files --temp-profile --user-data-dir=/home/paul/.config/Brackets/live-dev-profile --disk-cache-size=250000000 --remote-debugging-port=9222

@paulcarroty
Copy link
Contributor

paulcarroty commented Jul 12, 2018

Live preview will not work 'cause /usr and /usr/bin directories are blacklisted by default.

Maybe static build of any chromium-based browsers will help here.

@esbennn
Copy link
Author

esbennn commented Jul 17, 2018

If experimental preview is not enabled, i get the following error:
Inspector.js:262 GET http://127.0.0.1:9222/json net::ERR_CONNECTION_REFUSED

If it is enabled, i get something like the following

Uncaught RangeError: Invalid language tag: c
NodeSocketTransport - send,,{"method":"Runtime.evaluate","params":{"expression":"_LD.hideHighlight()"},"id":1}
[node-error 11:35:55 AM] (node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Exited with code 4
NodeSocketTransport - send,,{"method":"Runtime.evaluate","params":{"expression":"_LD.highlightRule(\"[data-brackets-id='11']\")"},"id":2}

@CodigoCristo
Copy link

There are still no solutions, continue with the same error.

@python-India
Copy link

yep! seeking for solution.

@CaptainOfFlyingDutchman

Well, it's February 2019. Still it's open. :-|

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants