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

Brackets does not open the browser to perform Live Preview on installations via Snap packages. #13823

Open erickmajor opened 6 years ago

erickmajor commented 6 years ago

Prerequisites

Description

When using Brackets using Snap Packet Installation, Live Preview does not work correctly.

Steps to Reproduce

  1. Install Brackets via Snap package (in my case I installed on Ubuntu 17.10);
  2. Open an HTML file in the Brackets application;
  3. Press the Line Preview button (highlighted by the lightning bolt icon in the upper right of the application);
  4. The icon modifies its color to show that it is enabled, but does not open the browser to perform the Live Preview.

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

Versions

JungGaBin commented 6 years ago

Hi @erickmajor I saw this problem, so try it. While I was looking for a solution, I knew one fact. According to another user's github comment, while Brackets is not available as a Snap Package, the Linux Friendly fork Brackets-Electron is available as a similar Universal AppImage.

More information about Brackets-Electron and installing the AppImage is available at Brackets Linux Installation Guide.

erickmajor commented 6 years ago

Hi @JungGaBin, thanks for the reply!

I'm using this version while the Brackets Snap is not yet stable. Ubuntu allows both to coexist without influencing each other. The Brackets Eletron had another bug that made it unusable in Ubuntu 17.10, but now it has a correction allowing its use.

Is there any provision for fixing this bug in Brackets Snap?

Thank you in advance.

JungGaBin commented 6 years ago

Hi @erickmajor. Sorry to answer late.

I searched a lot for the regulations, but there was not much information about that. So I actually tried, but I could not find it. If you know the answer, please let me know.

I'm sorry for not getting the perfect answer.

erickmajor commented 6 years ago

Hello @JungGaBin, thanks for the reply.

I have not looked at the Brackets source code with caution. I'm still new to Snap packages.

For the little that I know, I believe it may be the lack of connection to the environment, just like the application Gradio does. In this way, Brackets would find the Google Chrome browser installed on the system (Live Preview option) or the browser used by the system (experimental Live Preview option) and would enable this functionality.

I recommend that you contact Häcker Felix to resolve this issue. Meanwhile, I follow the development of this solution and add some observation if I get some success in developing the fix.

JungGaBin commented 6 years ago

Thank you @erickmajor 👍 I will try as you say.

erickmajor commented 6 years ago

Hello @JungGaBin!

Any news?

JungGaBin commented 6 years ago

Hello , @erickmajor I have tried, but nothing has improved.

erickmajor commented 6 years ago

Hi @JungGaBin, no problem.

I await the correction of this bug.

dariushm2 commented 6 years ago

Had the same issue, turned out I just needed to choose "Enable Experimental Live Preview" option from File menu. Now it is working again.

kaincenteno commented 4 years ago

Issue still happening as of today on Ubuntu 20.04 but enabling experimental live preview as @dariushm2 mentioned works.

Would be great if Brackets can recognize it's running as a snap and auto enable this feature.