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

css file not being generated

Open juliocperez opened this issue 6 years ago • 33 comments

Everything seems to be working but a css file is not generated. Created a 'vscode' folder in the project root directory with a settings.json file and the following code:

{ "liveSassCompile.settings.savePath": "/css", "liveSassCompile.settings.format": "expanded", "liveSassCompile.settings.extensionName" : ".css", "liveSassCompile.settings.excludeList": [ "/node_modules/", ".vscode/**" ], "liveSassCompile.settings.generateMap" : false }

The following is produced - so it does recognize changes in the sass file - but no css file is produced.

Thx.

Watching...

Change Detected... _customVariables.scss

Compiling Sass/Scss Files:

Watching...

juliocperez avatar Sep 08 '17 20:09 juliocperez

_customVariables.scss is a partial sass. It shouldn't have any output. Is not it?.....

ritwickdey avatar Sep 09 '17 02:09 ritwickdey

Hi, Can you send me your folder structure by zipping (don't include any sensitive content) ?

ritwickdey avatar Sep 23 '17 13:09 ritwickdey

I'm having the same issue - default settings and only one HTML file and one SCSS file in the folder.

ljllewellyn avatar Nov 03 '17 11:11 ljllewellyn

Can you send me the files & folder by zipping? @ljllewellyn

ritwickdey avatar Nov 03 '17 11:11 ritwickdey

No problem - it's just the two files in the project folder at the moment.

lsc-issue13.zip

ljllewellyn avatar Nov 03 '17 11:11 ljllewellyn

Hi, @ljllewellyn, It is working for me. image

  • Which platform you're using?

ritwickdey avatar Nov 03 '17 12:11 ritwickdey

Hmm, that's strange - I haven't edited any settings either. Running VSCode 1.17.2 on macOS Sierra 10.12.6.

Here's the output from VSCode:

  • VSCode Version: Code 1.17.2 (b813d12980308015bcd2b3a2f6efa5c810c33ba5, 2017-10-16T13:47:41.889Z)
  • OS Version: Darwin x64 16.7.0
  • Extensions:
Extension Author (truncated) Version
vscode-icontheme-nomo-dark be5 1.3.4
python don 0.7.0
cpptools ms- 0.14.0
view-in-browser qin 0.0.5
live-sass rit 1.1.0
LiveServer rit 3.0.0

ljllewellyn avatar Nov 03 '17 12:11 ljllewellyn

Can you share the snapshot of the Output log of live sass compile after clicking to Watch sass?

ritwickdey avatar Nov 03 '17 12:11 ritwickdey

Sure thing! This is all I'm getting even after resaving the file.

screen shot 2017-11-03 at 12 09 17

ljllewellyn avatar Nov 03 '17 12:11 ljllewellyn

Oops! May be platform specific bug! I'm looking for it. One more question, Is this working, if you place the sass into a sub directory?

ritwickdey avatar Nov 03 '17 12:11 ritwickdey

I'm not sure about the bug! just now, I've tried from Linux, it is working and unfortunately I don't have any macOS through macOS & Linux file management likely same.

image

Is there any special charaters or - or ! are used in the file path?

ritwickdey avatar Nov 03 '17 12:11 ritwickdey

One more thing, when you click to 'watch sass', open developer tools (help -> toggle developer tools). Is there any error log? can you share the snapshot?

ritwickdey avatar Nov 03 '17 12:11 ritwickdey

Me neither! Placing the scss file in a subfolder doesn't fix the issue, and there are no errors in the Developer Tools. I'll keep having a play around this afternoon and see if I can give you any more info.

ljllewellyn avatar Nov 03 '17 12:11 ljllewellyn

One more test! delete the all html file, only keeps sass/scss.

set a settings (.vscode/settings.json)

"liveSassCompile.settings.includeItems" : [
     "**",
     "*"
]

Is it working ?

ritwickdey avatar Nov 03 '17 14:11 ritwickdey

That seemed to work for me but now it's minifying LITERALLY every file and that's not ideal. I'm having the same issue as everyone else--the extension doesn't seem to be outputting anything at all, and oftentimes can't even detect that any changes were made to my scss files.

Help!

kyle-jorve avatar Dec 31 '17 22:12 kyle-jorve

Hi @kyle-jorve , Thanks for the report. Which System you're using ?

[And yes! The setting will be minifying everything. That time I suggested it just for debugging purpose]

ritwickdey avatar Jan 01 '18 05:01 ritwickdey

Looks like i have the same issue there. Didn't changed anything. Just moved all project content one directory down and then back. But structure is still the same. It shows that compiling is done, but actually main.css are not changed. W10 64 there I was setting up VS Code multi-root workspace and included current repository as one of the root. Deleted main.css and .map files. - They are not regenerated.

oswee avatar Jul 10 '18 07:07 oswee

I suddenly got the same issue today but it turned out to be a mixin name error (on my part) that wasn't showing up as an error. Turned output on and then it started to pick the error up when I tried to save the file. User error!

doughballs avatar Feb 04 '19 14:02 doughballs

I also have the same issue today changes in the scss file are getting reflected on page but the css is not generated for the changes . Please help .

Reactsky avatar Feb 26 '19 05:02 Reactsky

Hey u have found a solution check if this helps you : image

Reactsky avatar Feb 26 '19 05:02 Reactsky

Vs live sass compiler is not detecting changes and not compile to css. It looks like that is not see changes Zrzut ekranu 2019-05-9 o 10 57 36

martynahopek avatar May 09 '19 09:05 martynahopek

Sorry, this is properly print screen Zrzut ekranu 2019-05-9 o 11 03 39

martynahopek avatar May 09 '19 09:05 martynahopek

Hey Guys,

I am facing the same issue just open your project in VS code. go to File > Open Folder > Your project location.

In this process, my problem got fixed.

Let me know if it helps you?

prashantui avatar May 23 '19 10:05 prashantui

This fixed it for me, look like you have to have the folder environment opened rather than just the file it self, thanks!

Waldir avatar Jun 21 '19 15:06 Waldir

I have little bit similar situation. Vscode not compiling on save, but only variables and mixins. All other changes are ok.
SCSS CSS h1 { h1 { color: blue; color: blue;
} } $base-dark: red; a { a { display: inline-block; display: inline-block; background-color: yellow; background-color: yellow; } }

Piterwk1 avatar Nov 29 '19 14:11 Piterwk1

I had the same problem with live sass compiler not compiling my main.scss code. I later discovered that the error came from the naming of my main.scss code. I initially called it _main.scss. This made it not to be compiled by live sass compiler. When I changed the name to main.scss, the file was compiled immediately by live sass compiler. I hope this info helps.

femiconnect avatar Feb 18 '20 11:02 femiconnect

sass compiler stopped not working properly

faruque2019 avatar Mar 17 '20 18:03 faruque2019

Same problem, no solution. Does any body actually know how to fix this?

Hipsno avatar Apr 05 '20 19:04 Hipsno

Hey Guys,

I am facing the same issue just open your project in VS code. go to File > Open Folder > Your project location.

In this process, my problem got fixed.

Let me know if it helps you?

i faced the same issue and this "go to File > Open Folder > Your project location." helped me out!!!! thanks

Shameera17 avatar Jun 01 '20 04:06 Shameera17

The go to file > open folder > your project location didn't work for me. In the JSON setting however I changed a few things up and now its working. How it was installed how it was What I changed what fixed it

I'm a newbie so I don't know if what I did is right but its working for now.

LivingTrades83 avatar Aug 13 '20 10:08 LivingTrades83