vscode-live-sass-compiler icon indicating copy to clipboard operation
vscode-live-sass-compiler copied to clipboard

Compiler hangs if mapped network drive added to workspace and exclude list doesn't help

Open nyan-cat opened this issue 4 years ago • 1 comments

I have a couple of folders in my VS Code workspace which are located on remote server mapped as network drive (built-in Windows feature). On such setup compiler just hangs on "Watching..." after I press "Watch Sass" button. Moreover - my Sass files are located on my local computer - I don't really need to compile something on remote server. If I remove network folders then it works fine. Obviously, network folders cause it to hang somehow. May be it traverses those folders, and since they are network, it takes forever and a day to complete their inspection.

I was hoping that exclude list (liveSassCompile.settings.excludeList option) will help me since I don't really need to compile something on remote server, just my local files. My server is mapped as W: disk so I added the following option:

"liveSassCompile.settings.excludeList": [ "W:/**" ]

But it didn't help. It still hangs on compile. And it still works if I remove network paths from the workspace. Looks like exclude path feature works AFTER full path inspection, not before. Any chance to fix that?

nyan-cat avatar Jan 26 '22 00:01 nyan-cat

This extension is no longer maintained, you should try my fork (which is also available on the VS marketplace). Ref: #486

I don't think you'll have this problem with my fork. I've done a lot of code updating/maintenance and also switched to fdir for file checks (which is blazingly fast)

glenn2223 avatar Jan 26 '22 22:01 glenn2223