question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"liveSassCompile.settings.formats" showing warning for "savePath"

See original GitHub issue

Original post

“liveSassCompile.settings.formats” shows a warning for “savePath” if the value of “savePath” is set to anything other than null. Showing same warning for “liveSassCompile.settings.excludeList” array values as well.

Shows the following warning in VS CODE warnings:

Must start with any of:
`/` or `\` (for workspace root)
`~/` or `~\` for relative to the file being processed. Must not end with a path separator (`/` or `\`)
Set the save location of exported CSS.

Set the relative path from Workspace Root.

'/' stands for your workspace root.

Example: /subfolder1/subfolder2. (NOTE: if folder does not exist, folder will be created as well)."

Screenshot (41)

Here are my json settings:

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

While the Sass still compiles to CSS with the above settings Vscode still shows a warning in “savePath” as well as “liveSassCompile.settings.excludeList” array values.


Tasks for 5.2 release

  • Find cause
  • Apply fix

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
glenn2223commented, Nov 26, 2021

So the issue was two-fold, Microsoft released an update that stopped trying to use incorrect regex - reference

I checked my regex and, apparently, it’s invalid somehow - even though it is valid in regex101. I needed to double double escape all of my \ characters to \\\\ instead of just \\

I will apply a fix and publish an update soon

1reaction
glenn2223commented, Dec 18, 2021

Hmmm, strange. What OS do you have? Mine is Windows

Windows 10.

Very strange

Are you updating your package.json as dibakash did? Or just your settings.json file?

If it’s the latter then please revert your setting and use the version that I have zipped below

live-sass-5.1.2-alpha.1.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to setup output path to compiled css files using `vscode ...
code and go to settings then search Sass and see below Live Sass Compiler click here and see right side Live Sass Compile...
Read more >
Settings & Commands | Live Sass Compiler | VSCode Extension
liveSassCompile.settings.formats. ℹ This setting can vary between workspace folders - read more. An array of formats. Allows you save to multiple locations ...
Read more >
vscode-live-sass-compiler/settings.md at master - GitHub
[NEW] liveSassCompile.settings.formats : To setup Format (style), Extension Name & Save location for exported css [Multiple Format ...
Read more >
Live Sass Compiler - Codecademy Forums
I have installed the live sass compiler by ritwick dey but I guess the problem is in the settings.json file. Please see the...
Read more >
Headstarting with Sass - DEV Community ‍ ‍
In this section you define the format of the code - whether it is expanded or minified - what the name of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found