Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_Underscored files are being compiled in v5 rc1 #50

Closed
enoversum opened this issue Apr 2, 2021 · 10 comments
Closed

_Underscored files are being compiled in v5 rc1 #50

enoversum opened this issue Apr 2, 2021 · 10 comments

Comments

@enoversum
Copy link

enoversum commented Apr 2, 2021

Up until version 4, SCSS files starting with an underscore hadn't been compiled by themselves. v5 rc1 now compiles the corresponding files (in my case .min.css and .css) for the partial ones when I save one of them.

Project structure (example)
_basics.scss
style.scss (importing the _basics.scss in the beginning: @import 'basics';)

Previous behaviour
Saving _basics.scss only triggers a save of style.scss and a compilation of the CSS files for it if it is open (if I am not mistaken), no _basics.css or _basics.min.css are created.

Current behaviour
Saving _basics.scss triggers a compilation of CSS Files for it, e.g. _basics.css or _basics.min.css, and triggers errors because the single imported files with underscores only work in tandem with each other when imported into the styles.scss.

Edit: This is the file structure:

-- css\
    -- _basics.scss
    -- style.scss
    -- style.css // Obviously the output file
    -- style.min.css // Compressed output file

These are my settings:

"liveSassCompile.settings.formats": [
	{
	"format": "expanded",
	"extensionName": ".css",
	"savePath": null
	},
	{
	"format": "compressed",
	"extensionName": ".min.css",
	"savePath": null
	}
],
"liveSassCompile.settings.autoprefix": false,
"liveSassCompile.settings.watchOnLaunch": true,
"liveSassCompile.settings.excludeList": [
	".vscode/**",
	"wp-admin/**",
	"wp-includes/**",
	"wp-content/plugins/**",
	"wp-content/languages/**",
	"wp-content/uploads/**",
	"wp-content/upgrade/**"
],
"liveSassCompile.settings.includeItems": [
	"wp-content/themes/**/css/*.scss",
	"**/wp-content/themes/**/css/*.scss",
],
@glenn2223
Copy link
Owner

glenn2223 commented Apr 2, 2021

Sorry I'm not able to replicate this. The setting to exclude partial files is hardcoded into the program, so how this is happening is completely baffling me.

Edit: what happens in the sample project (Test.zip). I saved both _basics.scss and style.scss and the only compiled files were for style.

Here's rc1.1 (which I will release as rc2 - if all is well - after some doc changes)
live-sass-5.0.0-rc.1.1.zip

And here's the sample package I was testing with
Test.zip


To install rc1.1:

  1. Unpack the zip
  2. Drag the .vsix file into the extensios tab of VS Code

Can you follow the below steps and comment the info for me:

  1. Delete the generated CSS files generated for _basics.scss and styles.scss
  2. Set the "liveSassCompile.settings.showOutputWindowOn": "Trace"
  3. Save the file
  4. Copy all the text from the output window
  5. Clear the output using the icon shown in figure 1
  6. Press F1 and enter liveSass.command.debugFileList
  7. Again, copy the output text from the output window

Figure1
(figure 1 - Screengrab highlighting the "Clear log" icon/button)

@enoversum
Copy link
Author

@glenn2223 I'll try this tomorrow when I have a longer moment for this. What I did observe with rc1 is the following, maybe that helps already:

In fact I have the following file structure:

_basics.scss
_flexgrid.scss
_fonts.scss
_print.scss
_sass.scss
_variables.scss
style.scss

All files are being imported in the style.scss, all but the _print.scss as the very beginning after two comment rows, the print one at the end of the file:

// v5.11.2020

// Only imports can save your day

@import 'variables';
@import 'sass';
@import 'resets';
@import 'flexgrid';
@import 'fonts';
@import 'basics';
[…]

/* Print stylesheet */
@import 'print';

When I save the style.scss file, only the style.css and the style.min.css are being generated - like it should be.
If I save any of the other mentioned underscored files, the files for _print.scss and _variables.scss are always being compiled, even if I save the _basics.scss or maybe the _fonts.scss - it always generates the compiled files for _print and _variables (with error messages, as they can't operate on their own).
There is no inter-connection between the underscored files (except for the import of all of them into the style.scss), no cross-imports. I cannot even see why exactly the two are special - one is pure SCSS (variables), the other one is pure, stupid, plain CSS. Any idea how the transition to rc1 could cause this phenomenon?

@glenn2223
Copy link
Owner

I'll try this tomorrow when I have a longer moment for this.

Thanks, and there's no rush. I just appreciate the time you're taking to help out.

When I save the style.scss file, only the style.css and the style.min.css are being generated - like it should be.
If I save any of the other mentioned underscored files, the files for _print.scss and _variables.scss are always being compiled, even if I save the _basics.scss or maybe the _fonts.scss - it always generates the compiled files for _print and _variables (with error messages, as they can't operate on their own).

I'll expand my test and see if I can replicate

Any idea how the transition to rc1 could cause this phenomenon?

v5 has had a massive overhaul. Part of that was a transition from the glob package to the fdir package (massive speed boost). It may be that fdir behaves slightly different in some way that I haven't accounted for. Or I've made a mistake somewhere in the 1,000 code changes that have been made between v4.4.1 and v5 😁

@enoversum
Copy link
Author

@glenn2223 I'd love to replicate the THANKS (and a huge one) for taking the time to really improve this plugin - I can already tell it's so much faster (and possibly not only because of the removal of Live Server dependency), and seeing how involved you are with it is really inspiring!
Just so I know - when I want to install rc1.1, do I need to uninstall the official rc1 version, or do I just disable it, or install your new version in tandem?

Really getting the gist of re-structuring a whole plugin, and let's hope we can tackle this one 😊!

@glenn2223
Copy link
Owner

I'd love to replicate the THANKS (and a huge one) for taking the time to really improve this plugin - I can already tell it's so much faster (and possibly not only because of the removal of Live Server dependency), and seeing how involved you are with it is really inspiring!

Thank you, that means a lot 😁

Just so I know - when I want to install rc1.1, do I need to uninstall the official rc1 version, or do I just disable it, or install your new version in tandem?

You should be able to just drag it into "Extensions" tab and it will overwrite the currently installed version and ask you to reload

@enoversum
Copy link
Author

@glenn2223 Phew, I hope I got it right with the output logging. I did in fact save the style.scss (only the style compiles), and afterwards saved one of the partial files. Again, the same result - _print and _variables are being compiled if I save one of the partials (saved the _basics.scss in this case, _print and _variables being compiled).

Here is the log, I hope a direct copy is good for you?

VS Code event: "onDidSaveTextDocument"
--------------------
SASS file saved
A SASS file has been saved, starting checks
--------------------
Checking SASS path isn't excluded
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Checking all workspace folders in project
--------------------
Checking folder 1 of 1
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Searching folder
--------------------
File found, not excluded
--------------------
Change detected - 4.4.2021, 00:08:58
style.scss
--------------------
File is not a partial
The file is not a partial so we will compile only this one
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.css
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.min.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.min.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.min.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.min.css
--------------------
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
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Command called: "liveSass.command.debugFileList"
--------------------
Getting SASS files
Query pattern: **/[^_]*.s[a|c]ss
Can be overwritten: true
--------------------
Query pattern overwritten
New pattern(s): "wp-content/themes/**/css/*.scss" , "**/wp-content/themes/**/css/*.scss"
--------------------
Checking folder 1 of 1
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Found 9 SASS files
--------------------
Getting SASS files
Query pattern: **/_*.s[a|c]ss
Can be overwritten: false
--------------------
Checking folder 1 of 1
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Found 7 SASS files
--------------------
Getting SASS files
Query pattern: .vscode/**,wp-admin/**,wp-includes/**,wp-content/plugins/**,wp-content/languages/**,wp-content/uploads/**,wp-content/upgrade/**
Can be overwritten: false
--------------------
Checking folder 1 of 1
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Found 0 SASS files
--------------------
Extension Info
--------------------
Current File
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Current Include/Exclude Settings
--------------------
Include: [ wp-content/themes/**/css/*.scss, **/wp-content/themes/**/css/*.scss ]
Exclude: [ .vscode/**, wp-admin/**, wp-includes/**, wp-content/plugins/**, wp-content/languages/**, wp-content/uploads/**, wp-content/upgrade/** ]
--------------------
Workspace Folders
--------------------
[0] Unpluggedival
f:\Internet\Unpluggedival
--------------------
Included SASS Files
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Included Partial SASS Files
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Excluded SASS Files
--------------------
--------------------
VS Code event: "onDidSaveTextDocument"
--------------------
SASS file saved
A SASS file has been saved, starting checks
--------------------
Checking SASS path isn't excluded
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
--------------------
Checking all workspace folders in project
--------------------
Checking folder 1 of 1
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Searching folder
--------------------
File found, not excluded
--------------------
Change detected - 4.4.2021, 00:09:39
_basics.scss
--------------------
Getting SASS files
Query pattern: **/[^_]*.s[a|c]ss
Can be overwritten: true
--------------------
Query pattern overwritten
New pattern(s): "wp-content/themes/**/css/*.scss" , "**/wp-content/themes/**/css/*.scss"
--------------------
Checking folder 1 of 1
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Found 9 SASS files
--------------------
Compiling Sass/Scss Files: 
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Starting file 1 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting file 2 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting file 3 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting file 4 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting file 5 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting file 6 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting file 7 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting file 8 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting file 9 of 9
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Starting format 1 of 2
Settings: {"format":"expanded","extensionName":".css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Starting format 2 of 2
Settings: {"format":"compressed","extensionName":".min.css","savePath":null}
--------------------
Calculating file paths
Calculating the save paths for the css and map output files
Originating path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Searching for workspace
Need to find a workspace folder that holds the file
--------------------
Workspace has folder
Searching for the workspace folder where this file is located
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Checking folder 1 of 1
Folder: [object Object]
MATCH
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Using: f:\Internet\Unpluggedival
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.css
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.min.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.min.css
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.css
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.min.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.min.css
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
--------------------
Compilation Error
Error: Undefined variable.
   ╷
19 │     font-family: $ftmain;
   │                  ^^^^^^^
   ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss 19:15  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
--------------------
Compilation Error
Error: Undefined variable.
   ╷
19 │     font-family: $ftmain;
   │                  ^^^^^^^
   ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss 19:15  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
--------------------
Compilation Error
Error: Undefined mixin.
   ╷
13 │     @include flexbox;
   │     ^^^^^^^^^^^^^^^^
   ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss 13:2  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
--------------------
Compilation Error
Error: Undefined mixin.
   ╷
13 │     @include flexbox;
   │     ^^^^^^^^^^^^^^^^
   ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss 13:2  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
--------------------
Compilation Error
Error: Undefined variable.
  ╷
6 │ $ftmain: $ftmainname, $ftmainchain;
  │          ^^^^^^^^^^^
  ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss 6:10  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
--------------------
Compilation Error
Error: Undefined variable.
  ╷
6 │ $ftmain: $ftmainname, $ftmainchain;
  │          ^^^^^^^^^^^
  ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss 6:10  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.css
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.min.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.min.css
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
--------------------
Compilation Error
Error: Undefined mixin.
  ╷
7 │     @include border-box;
  │     ^^^^^^^^^^^^^^^^^^^
  ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss 7:2  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
--------------------
Compilation Error
Error: Undefined mixin.
  ╷
7 │     @include border-box;
  │     ^^^^^^^^^^^^^^^^^^^
  ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss 7:2  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
--------------------
Compilation Error
Error: Undefined variable.
   ╷
27 │ $gutterwidth: (map-get($sizes, gutter) / 20) + rem;
   │                        ^^^^^^
   ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss 27:24  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
--------------------
Compilation Error
Error: Undefined variable.
   ╷
27 │ $gutterwidth: (map-get($sizes, gutter) / 20) + rem;
   │                        ^^^^^^
   ╵
  f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss 27:24  root stylesheet
--------------------
Changing status bar to: Error
Registered timeout to switch state back
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.css
--------------------
Starting compilation
Starting compilation of file
Path: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.min.css.map
--------------------
Saving file
Saving a file to the system
Target: f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.min.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.min.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.min.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.min.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.min.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.min.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.min.css
--------------------
Generated :
Changing status bar to: Success
Registered timeout to switch state back
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.min.css.map
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.min.css
--------------------
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
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------
Firing timeout function to switch back
--------------------
Changing status bar to: Watching
--------------------

@enoversum
Copy link
Author

enoversum commented Apr 3, 2021

@glenn2223 Just again, the compilation error result from auto-compiling the partial files, the style.scss compiles just fine.

@glenn2223
Copy link
Owner

glenn2223 commented Apr 4, 2021

Thank you for the information (exactly what I needed)

I've found the problem and fixed it, will release rc4 soon.

So, this part here:

--------------------
Included SASS Files
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_basics.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_flexgrid.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_fonts.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_print.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_resets.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_sass.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\_variables.scss

Should have just read

--------------------
Included SASS Files
--------------------
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\admin.scss
f:\Internet\Unpluggedival\wp-content\themes\unpluggedival20\css\style.scss

Turns out that I wasn't checking files aren't partials when I was searching for all SASS files.

Hence the below happened later on in the process

--------------------
Found 9 SASS files
--------------------

Sorry, when I tested I was only saving the main file and not the partial so I completely skipped over this 🤦‍♂️


Will close on rc4 release

glenn2223 added a commit that referenced this issue Apr 4, 2021
# 5.0.0-rc.4 - 2021-04-04

### Fixes
- Saving a partial (or all files by a command) no longer compiles the partials themselves ([#50](#50))
@glenn2223 glenn2223 mentioned this issue Apr 4, 2021
glenn2223 added a commit that referenced this issue Apr 4, 2021
# 5.0.0-rc.4 - 2021-04-04

### Fixes
- Saving a partial (or all files by a command) no longer compiles the partials themselves ([#50](#50))
@enoversum
Copy link
Author

@glenn2223 Wow, you got that one sorted quickly. Very much appreciated. Have some nice holidays!

@glenn2223
Copy link
Owner

Wow, you got that one sorted quickly.

Yeah, as soon as I saw those lines I knew where I'd gone wrong

Have some nice holidays!

Thank you. You too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants