madskristensen / EditorColorPreview

Apache License 2.0
21 stars 5 forks source link

Unable to get it working in VS Pro 2022 - 17.2.6 #7

Open wstaelens opened 2 years ago

wstaelens commented 2 years ago

Get Visual Studio 2022 Pro x64 - V17.2.6

  1. Go to Extensions > Manage Extensions > Online > and install Color Preview.
  2. Restart VS
  3. Open your solution
  4. Open bootstrap.css file
  5. VS freeze/hangs.

Have to force VS to close and restart it, disable the Color Preview extension, restart VS again and just use VS without the Color Preview extension..

Can't get it to work.

(Also tried to run VS as administrator without any success).

y2k4life commented 2 years ago

I'm not able to reproduce the error. Does this only happen when loading a boostrap.css file? Does this happen when opening all css files or just this one?

image

I tried various combinations:

Some suggestions

  1. Turn on activity logging and check if there are any errors. Search for Turn on Logging
  2. Before step 4 run another VS Studio instance and attach/debug the first instance. Then load the CSS file from the first instance to see if there are any exceptions thrown. Attach to running processes with the Visual Studio debugger
madskristensen commented 2 years ago

Do you have this preview feature checked in Tools -> Options, by chance?

image

y2k4life commented 2 years ago

I believe that is 17.3.0 preview feature, the issue is with 17.6.2 which I was not able to find LSP editors in options (Environment -> Preview Features).

Regardless, I turned this on to see what would happen and I'm able to load the files, it was slower and the results where kind of weird. But I don't believe this has to do with Color Preview. Color Preview still works!

For example, look how it turned the r in red and range in orange.

image

wstaelens commented 2 years ago

quick feedback: I'm at vs17.2.6 vs2022 pro x64

I don't seem to have that preview feature. I'm able to open a small css file but VS hangs on my bootstrap.css

(still have to get more time to enable logging)

wstaelens commented 2 years ago

ActivityLog.zip pw: vsfreeze

in the attached debugger nothing happens. My VS just freezes when opening the bootstrap.css file (didn't even see the preview of the css file this time).

hope this helps...

madskristensen commented 2 years ago

@wstaelens the file in the zip container is password protected. If you can just paste the last couple of rows in here, that would be helpful

wstaelens commented 2 years ago

@wstaelens the file in the zip container is password protected. If you can just paste the last couple of rows in here, that would be helpful

See "pw: " label (= password:) in previous post

y2k4life commented 2 years ago

I reviewed the file and found no errors with loading the extension. Are you able to load any other CSS files? Can you create a new file just to test colors? Trying to determine if this is just with the bootstrap.css file or all files.

wstaelens commented 2 years ago

I reviewed the file and found no errors with loading the extension. Are you able to load any other CSS files? Can you create a new file just to test colors? Trying to determine if this is just with the bootstrap.css file or all files.

for now it looks like it is the bootstrap file, small files or creating a new one works bootstrap issue.zip .

ruslan-mogilevskiy commented 1 year ago

The issue is easily reproducible on a minified CSS (mine was about 80Kb) as well as with other libraries (bootstrap, etc) but with their minified versions. VS (17.4.4) just hangs with no response. Disabling this extension easily opens any CSS.

rarahim75 commented 1 year ago

Windows 11 VS 2022 17.7.5

It does not seem to work for me. It's a small js file.

image