EditorColorPreview icon indicating copy to clipboard operation
EditorColorPreview copied to clipboard

Unable to get it working in VS Pro 2022 - 17.2.6

Open wstaelens opened this issue 3 years ago • 11 comments

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).

wstaelens avatar Jul 15 '22 09:07 wstaelens

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:

  • Visual Studio Pro 17.3.0 Preview 3.0
  • Visual Studio Pro 17.2.6
  • Bootstrap v5.0.2
  • Bootstrap v4.4.1

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

y2k4life avatar Jul 15 '22 17:07 y2k4life

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

image

madskristensen avatar Jul 15 '22 17:07 madskristensen

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

y2k4life avatar Jul 15 '22 17:07 y2k4life

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 avatar Aug 02 '22 09:08 wstaelens

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...

wstaelens avatar Aug 02 '22 12:08 wstaelens

@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

madskristensen avatar Aug 02 '22 17:08 madskristensen

@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

wstaelens avatar Aug 02 '22 17:08 wstaelens

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.

y2k4life avatar Aug 02 '22 17:08 y2k4life

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 .

wstaelens avatar Aug 08 '22 08:08 wstaelens

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.

ruslan-mogilevskiy avatar Jan 10 '23 19:01 ruslan-mogilevskiy

Windows 11 VS 2022 17.7.5

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

image

rarahim75 avatar Nov 03 '23 03:11 rarahim75