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

Live Sass Compiler causes Extension Host crash after latest VSCode update

Open VAggrippino opened this issue 5 years ago • 22 comments

After today's VSCode update, Live Sass Compiler causes "Extension Host terminated unexpectedly" whenever I open a Sass file.

I don't know if it matters, but the Sass file I'm editing when it happens is part of a GitHub Pages Jekyll blog.

I'll attach the Extension Host log. Let me know if you need more information.

VSCode Info:

Version: 1.35.0 (system setup) Commit: 553cfb2c2205db5f15f3ee8395bbd5cf066d357d Date: 2019-06-04T01:17:12.481Z Electron: 3.1.8 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.17134

VSCode_Extension-Host_crash_ritwickdey.live-sass-1559964197747.log

VAggrippino avatar Jun 08 '19 03:06 VAggrippino

Hello, I'm confirm, very often arise error Extension host terminated unexpectedly. Code: 7 I have VSCode installed on the three machines (Linux, MacOS, Win7) - and everywhere has that error.

/Users/Artem/.vscode/extensions/ritwickdey.live-sass-3.0.0/node_modules/sasslib/sass.sync.js:61
var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[];Module["thisProgram"]="./this.program";Module["quit"]=(function(status,toThrow){throw toThrow});Module["preRun"]=[];Module["postRun"]=[];var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScrip

Error: write EPIPE
    at WriteWrap.afterWrite (net.js:833:14)

art-frela avatar Jun 12 '19 09:06 art-frela

Hi,

Try to download and use VSCODE insider - it's fine works! ;-) I'll be waiting new release VSCode ))

art-frela avatar Jun 18 '19 20:06 art-frela

or simple delete and install ext again... working fine

art-frela avatar Jun 22 '19 08:06 art-frela

I am also facing the same issue. I also uninstall live-sass extension and also uninstall vs code but after installing both it still giving same error.please tell how to solve the problem.

utkarsh4321 avatar Jun 23 '19 06:06 utkarsh4321

same problem for me, not for all projects though. I think it has to do with a specific folder structure/depth.

` C:\Users\XXX.vscode\extensions\ritwickdey.live-sass-3.0.0\node_modules\sasslib\sass.sync.js:61 var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[];Module["thisProgram"]="./this.program";Module["quit"]=(function(status,toThrow){throw toThrow});Module["preRun"]=[];Module["postRun"]=[];var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importSc

TypeError: MsgBody.forEach is not a function at Function.Show (C:\Users\XXX.vscode\extensions\ritwickdey.live-sass-3.0.0\out\src\OuputWindow.js:16:21) at Glob.getSassFiles.glob (C:\Users\XXX.vscode\extensions\ritwickdey.live-sass-3.0.0\out\src\appModel.js:127:48) at Glob.f (C:\Users\XXX.vscode\extensions\ritwickdey.live-sass-3.0.0\node_modules\once\once.js:25:25) at Glob.emit (events.js:182:13) at Glob._readdirError (C:\Users\XXX.vscode\extensions\ritwickdey.live-sass-3.0.0\node_modules\glob\glob.js:610:14) at Glob._readdirEntries.i (C:\Users\XXX.vscode\extensions\ritwickdey.live-sass-3.0.0\node_modules\glob\glob.js:553:12) at FSReqWrap.oncomplete (fs.js:141:20) `

calbo-nl avatar Jul 08 '19 09:07 calbo-nl

I have noticed that the problem happens when trying to use import for local .scss files, in my case all of them were in the same folder; when I removed import the error stopped happening.

jdneto avatar Sep 16 '19 23:09 jdneto

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

jdneto avatar Sep 17 '19 20:09 jdneto

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

This solved the problem for me too! Thanks!

MisfitDesignStudio avatar Nov 10 '19 11:11 MisfitDesignStudio

It also happens with Spell Right

mvaneijgen avatar Dec 06 '19 10:12 mvaneijgen

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

After disabling Color Highlight extension crashes are gone. Thanks

varune-xposures avatar Dec 20 '19 06:12 varune-xposures

I run into crashes so many times with different extensions. My problem is I don't want to disable other extensions to avoid crashes. Looking forward to radical improvement.

norixx avatar Jan 06 '20 08:01 norixx

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

Thank you :)

adhikari-anish avatar Jan 30 '20 03:01 adhikari-anish

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

This solved my problem! Thanks!

scarpeace avatar Feb 06 '20 16:02 scarpeace

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

This solved my problem! Thank you!

michael-dragomir avatar Apr 09 '20 19:04 michael-dragomir

thank you 😩😭☺

haroldao avatar May 09 '20 12:05 haroldao

Also had this issue, also was due to Color Highlight extension. Though for anyone wanting the best of both worlds, there is another addon: Colorize which does the same thing only doesn't cause Live Sass Compiler to crash the extension host!

Also to note that two options need enabling in Colorize to achieve the same behaviour from Color Highlight:

  • Uncheck colorize.hide_current_line_decorations otherwise it disables the colors on the current line.
  • Enter the setting.json for colorize.colorized_variables and add your CSS preprocessor else your variables won't be highlighted.

Mofunkles avatar Oct 20 '20 19:10 Mofunkles

if you have a comment import and the imported file doesnt exist, like this for example it will crash :

//@import filename or

/@import filename/

(i removed all commented imports and it worked)

KlajdiZmalaj avatar Dec 18 '20 14:12 KlajdiZmalaj

I don't have the color highlight extension and it doesn't work. Also I don't have a wrong import in my style (import) scss file.

Is there another workaround?

kinglycodes avatar Dec 19 '20 14:12 kinglycodes

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

thanks dude. solved for me!

GuilhermeFerreiraAmorim avatar Feb 08 '21 23:02 GuilhermeFerreiraAmorim

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

Really Thank you solved my problem also. <33

dorukozerr avatar Apr 20 '21 08:04 dorukozerr

Also had this issue, also was due to Color Highlight extension. Though for anyone wanting the best of both worlds, there is another addon: Colorize which does the same thing only doesn't cause Live Sass Compiler to crash the extension host!

Also to note that two options need enabling in Colorize to achieve the same behaviour from Color Highlight:

* Uncheck colorize.hide_current_line_decorations otherwise it disables the colors on the current line.

* Enter the setting.json for colorize.colorized_variables and add your CSS preprocessor else your variables won't be highlighted.

thankyou so much man , you're a life saver....

BattleKing28 avatar Oct 05 '21 13:10 BattleKing28

It was apparently an incompatibility with the plugin Color Highlight, after disabling it the problem disappeared even when using import.

thank you brother :D saved so much time.

anshumanUTD21 avatar Dec 12 '21 11:12 anshumanUTD21