brackets-cont / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
Other
1.38k stars 182 forks source link

LivePreview not opening in Chrome because there is a "space" in my User Account name on my PC. #268

Closed SunilSuresh5260 closed 1 year ago

SunilSuresh5260 commented 1 year ago

Prerequisites

For more information on how to write a good bug report read here For more information on how to contribute read here

Description

I am unable to open Live Preview after updating to Brackets 2.2

If I enable the "Experimental Live Preview" feature and then try opening Live Preview, it says "Open an HTML file or make sure there is an index.html file in your project in order to launch live preview." I think this requirement is RIDICULOUS. Suppose I'm just editing a single file (say, "contact us.html")? Why can't I do a live preview of just that file?

Steps to Reproduce

  1. Open any html file in Brackets
  2. Try to open LivePreview of that file

Expected behavior: Obviously, I should be able to see a Live Preview of the file that was open in Brackets.

Actual behavior:

  1. With Experimental Live Preview enabled, I get an error message saying that there should be an index.html file in my project (as I've mentioned above).
  2. Without Experimental Live Preview enabled, I get the following error messages: a) I get an error message in Brackets -- "Failed to Create Directory: Google Chrome cannot read and write to its data directory: C\Users\Sunil" -- Chrome obviously cannot read/write to this folder because my user folder is "Sunil Suresh", not "Sunil". b) In my browser, a new tab opens with "http://suresh/AppData/Roaming/lp" which obviously doesn't load since there is no folder called "suresh" on my PC c) And of course, the LivePreview does not load. Please see the attached files.

So, I think there is a bug in the program in that it is not considering the "space" in my Users folder name.

Versions

Windows 10 Home 21H2 (build 19044.2728) Brackets v.2.2.0-17942 Chrome 64-bit, v.111.0.5563.65 2a 2b 2c

abose commented 1 year ago

@SunilSuresh5260 Thanks for reporting the issue, Release with the fix will be available in a few days.

abose commented 1 year ago

Release with the fix is now available: https://github.com/brackets-cont/brackets/releases/tag/v2.2.1

SunilSuresh5260 commented 1 year ago

Thanks for the quick update. I've downloaded the updated exe. But when I run it, the setup says it cannot continue because another version of the product is already installed.

Is there some command line option I can use to tell it to upgrade/update the existing installation? I don't want to uninstall the existing installation because I think that will remove my existing configuration settings and add-ons.

abose commented 1 year ago

Uninstalling will not remove any settings or configuration from your machine. Its safe to do so. Future versions based on phvode will be upgradable.

Umutodabas commented 1 year ago

still same problems persist