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.

WordPress savePath not compiling to correct folder

See original GitHub issue

I’m using Live Sass Compiler in WordPress, but I can’t seem to figure out the correct settings.

I’ve tried to edit the liveSassCompile.settings.formats in User > settings.json. Here is the relevant section:

  "liveSassCompile.settings.formats": [
    {
      "format": "expanded",
      "extensionName": ".css",
      "savePath": "/wp-content/themes/humescores/",
      "savePathReplacementPairs": null
    }
  ],
  "liveSassCompile.settings.generateMap": false,

I need all the .scss files in the current theme’s β€œsass” folder to compile into the style.css file in the theme root. Here is what my project folder structure looks like:

website_prj/
└── wp-content/
    └── themes/
        β”œβ”€β”€ humescores/
        β”‚   β”œβ”€β”€ sass/
        β”‚   β”‚   β”œβ”€β”€ style.scss
        β”‚   β”‚   β”œβ”€β”€ _other.scss
        β”‚   β”‚   └── partials/
        β”‚   └── style.css
        β”œβ”€β”€ twentyseventeen/
        └── twentytwentyone/

Instead, I have .css files ending up all over in different folders and somehow the humescores style.css file is compiling from the twentytwentyone theme folder.

I have tried changing savePath to various versions of ~, ~/, /~, /**, **/, /, ../ – but, none of these methods worked.

How can I get all SCSS files in only the current theme folder to compile in the β€œsass” folder, with the destination being the theme root (the humescores folder, for instance)?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
glenn2223commented, Aug 9, 2022

Glad you got it working!


Closing as resolved

0reactions
codewizard13commented, Aug 9, 2022

Thanks for all your help @glenn2223! I set the trace and here is the output:

VS Code event: "onDidSaveTextDocument"
--------------------
Found the workspace folder
Workspace Name: humescores
--------------------
SASS file saved
A SASS file has been saved, starting checks
--------------------
Checking SASS path isn't excluded
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
--------------------
No base folder override found. Keeping workspace folder
--------------------
Searching folder
Search results
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\style.scss
  compare: true
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\_abstracts.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\abstracts\_abstracts.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\_abstracts.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\layouts\_content-sidebar.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\layouts\_content-sidebar.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\layouts\_content-sidebar.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\layouts\_no-sidebar.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\layouts\_no-sidebar.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\layouts\_no-sidebar.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\layouts\_sidebar-content.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\layouts\_sidebar-content.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\layouts\_sidebar-content.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\_base.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\_base.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\_base.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\_components.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\components\_components.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\_components.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\generic\_box-sizing.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\generic\_box-sizing.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\generic\_box-sizing.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\generic\_normalize.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\generic\_normalize.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\generic\_normalize.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\mixins\_mixins.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\abstracts\mixins\_mixins.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\mixins\_mixins.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\utilities\_accessibility.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\utilities\_accessibility.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\utilities\_accessibility.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\utilities\_alignments.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\utilities\_alignments.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\utilities\_alignments.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_body.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\elements\_body.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_body.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_buttons.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\elements\_buttons.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_buttons.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_fields.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\elements\_fields.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_fields.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_hr.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\elements\_hr.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_hr.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_links.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\elements\_links.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_links.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_lists.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\elements\_lists.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_lists.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_media.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\elements\_media.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_media.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_tables.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\elements\_tables.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\elements\_tables.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\variables\_colors.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\abstracts\variables\_colors.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\variables\_colors.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\variables\_columns.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\abstracts\variables\_columns.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\variables\_columns.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\variables\_structure.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\abstracts\variables\_structure.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\variables\_structure.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\variables\_typography.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\abstracts\variables\_typography.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\abstracts\variables\_typography.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\typography\_copy.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\typography\_copy.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\typography\_copy.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\typography\_headings.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\typography\_headings.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\typography\_headings.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\typography\_typography.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\base\typography\_typography.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\base\typography\_typography.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\comments\_comments.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\components\comments\_comments.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\comments\_comments.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\media\_captions.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\components\media\_captions.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\media\_captions.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\media\_galleries.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\components\media\_galleries.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\media\_galleries.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\media\_media.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\components\media\_media.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\media\_media.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\navigation\_navigation.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\components\navigation\_navigation.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\navigation\_navigation.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\content\_posts-and-pages.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\components\content\_posts-and-pages.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\content\_posts-and-pages.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\jetpack\_infinite-scroll.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\plugins\jetpack\_infinite-scroll.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\jetpack\_infinite-scroll.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\widgets\_widgets.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\components\widgets\_widgets.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\components\widgets\_widgets.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_checkout.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\plugins\woocommerce\_checkout.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_checkout.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_components.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\plugins\woocommerce\_components.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_components.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_products.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\plugins\woocommerce\_products.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_products.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_single-product.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\plugins\woocommerce\_single-product.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_single-product.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_tables.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\plugins\woocommerce\_tables.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_tables.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_widgets.scss
  isMatch: true
   - Base path: w:\CSITE__Humescores\wp-content\themes\humescores
   - Rela path: sass\plugins\woocommerce\_widgets.scss
  compare: false
   - Orig file path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\plugins\woocommerce\_widgets.scss
   - Orig sass path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
--------------------
File found, not excluded
--------------------
Changing status bar to: "Working on it..."
--------------------
Change detected - 8/9/2022, 7:10:26 AM
style.scss
--------------------
File is not a partial
The file is not a partial so we will compile only this one
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
--------------------
Starting format 1 of 1
Settings: {"format":"expanded","extensionName":".css","savePath":"/ehw-test/.."}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
--------------------
No workspace provided
Using originating path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
--------------------
Using `savePath` setting
This format has a `savePath`, using this (takes precedence if others are present)
savePath: /ehw-test/..
--------------------
Path is relative to workspace folder
No tilde so the path is relative to the workspace folder being used
Original path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
Path to continue with: w:\CSITE__Humescores\wp-content\themes\humescores
--------------------
Checking directory exists
Directory: w:\CSITE__Humescores\wp-content\themes\humescores
Directory exists, no action required
--------------------
Starting compilation
Starting compilation of file
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
--------------------
Autoprefixer isn't false, applying to file
Path: w:\CSITE__Humescores\wp-content\themes\humescores\sass\style.scss
--------------------
Preparing autoprefixer
--------------------
Starting autoprefixer
--------------------
Completed autoprefixer
--------------------
Saving file
Saving a file to the system
Target: w:\CSITE__Humescores\wp-content\themes\humescores\style.css.map
--------------------
Saving file
Saving a file to the system
Target: w:\CSITE__Humescores\wp-content\themes\humescores\style.css
--------------------
Generated:
w:\CSITE__Humescores\wp-content\themes\humescores\style.css.map
w:\CSITE__Humescores\wp-content\themes\humescores\style.css
--------------------
Changing status bar to: Success
Registered timeout to switch state back
--------------------
Registered timeout to revert UI to correct watching status
--------------------
Switching UI state
--------------------
Changing status bar to: Watching
--------------------
Watching...
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------

After I last posted I kept tinkering to try to get the settings right. It seems like I got closer and closer, but no cigar yet. But, through my experimenting I was able to refine my requirements in my own mind. So, please allow me to describe the results I am seeking.

  1. Set base directory: If β€œ/” means relative to root folder, then that is closer than β€œ~” relative to the file for what I am trying to accomplish. I would like to explicitly set the β€œhumescores” folder (the theme) as the project base/root folder.
  2. Let all .scss files in the humescores/scss/ directory be compiled, regardless of which subfolder they may live in to humescores/scss/style.scss.
  3. Let the final CSS file be compiled and output as humescores/style.css

Well now, it seems to be working. I guess I’ll leave this comment for others to learn from. This is the contents of my .vscode/settings.json file:

{
  "liveSassCompile.settings.formats": [
    {
      "format": "expanded",
      "extensionName": ".css",
      "savePath": "/.",
    }
  ],

  "liveSassCompile.settings.showOutputWindowOn": "Trace",
}

And here is an abbreviated version of my folder structure. Note the nested levels and that .vscode/ folder is a direct child of the WordPress theme folder β€œhumescores”:

wp-content/
└── humescores/
    β”œβ”€β”€ .vscode/
    β”‚   └── settings.json
    β”œβ”€β”€ sass/
    β”‚   β”œβ”€β”€ base/
    β”‚   β”‚   β”œβ”€β”€ typography/
    β”‚   β”‚   β”‚   β”œβ”€β”€ _headings.scss
    β”‚   β”‚   β”‚   └── _typography.scss
    β”‚   β”‚   └── _base.scss
    β”‚   └── style.scss
    └── style.css

Here are some quick observations that may help others:

  • When I right-click and launch VSCode from the WordPress folder it doesn’t work. The above configuration only seems to work when I right-click the theme folder (β€œhumescores”). #GOTCHA
Read more comments on GitHub >

github_iconTop Results From Across the Web

liveSassCompile.settings.savePath when set to null generate ...
I am trying to use liveSassCompile extension on Visual studio code, with wordpress which contains css in various place, when I set the...
Read more >
New version 1.2.5 not compiling properly - WordPress.org
The problem seems to be that the plugin doesn't create its necessary β€œcache” directory. If you create that directory it seems to work...
Read more >
Fixing the Save Sessions Path for WordPress eCommerce ...
This is caused by the Sessions save path (session.save_path in the php.ini) not being set to the correct directory.
Read more >
Items not included still compiling on save Β· Issue #211 - GitHub
It creates a 'dev folder' and a 'compressed css folder'. I use the Dev folder just to confirm my file compiled correctly.
Read more >
How to Change Your WordPress File and Directory Structure
In cPanel, go to Files > File Manager after logging in and locate your site's files. In the root, click the Folder button...
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