flathub / io.brackets.Brackets

https://flathub.org/apps/details/io.brackets.Brackets
1 stars 3 forks source link

Preview not working #1

Open esbennn opened 6 years ago

esbennn commented 6 years ago

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 commented 6 years ago

Will do, once I'm back from vacation in two weeks :)

Venligst Esben

On Mon, Jul 2, 2018, 11:10 Pavlo Rudyi notifications@github.com wrote:

@esbennn https://github.com/esbennn please open DevTools and paste the logs from console.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/flathub/io.brackets.Brackets/issues/1#issuecomment-401725689, or mute the thread https://github.com/notifications/unsubscribe-auth/ADacoNXHbpiPvJVP57KcP215vM0tae-8ks5uCeOSgaJpZM4U5aL_ .

paulcarroty commented 5 years ago

Update: https://github.com/adobe/brackets/issues/5250#issuecomment-24770063

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

python-India commented 5 years ago

yep! seeking for solution.

CaptainOfFlyingDutchman commented 5 years ago

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