Closed Wolk9 closed 3 years ago
Sorry to hear about this.
What version of the extension are you using?
In the bottom right corner, did you see something similar to either of the below images?
If so, please press F1 and type liveSass.command.createIssue
. This will copy the error info to your clipboard and try to open a new browser tab. Ignore the open window prompt and instead paste it into a new comment here.
Alternatively, in your settings, add/change liveSassCompile.settings.showOutputWindowOn
to "Trace"
.
then, try the command again and paste the output here.
Thank you
What version of the extension are you using?
I use the latest version v5.0.0
`### UNEXPECTED ERROR
Machine & Versions | Item | Value |
---|---|---|
VS Code | v1.55.0 | |
Platform | darwin x64 | |
Node | 12.18.3 (85) | |
Live Sass | 5.0.0 |
LOG:
{
"NO LOG": "PLEASE SPECIFY YOUR ISSUE BELOW"
}
=======================
`
My original comment got lost (somehow??), re-adding
Sorry to hear this. I wasn't able to replicate it, in Windows, so more info is required.
What version of the extension are you running?
If you saw a Live SASS Compiler error (like the screengrabs at the bottom):
liveSass.command.createIssue
This will save some error info to the clipboard and try to open a URLIf not:
liveSassCompile.settings.showOutputWindowOn
to "Trace"
`### UNEXPECTED ERROR
Thank you, it doesn't seem to have retained the error info. Could you please try the second suggestion?
Machine & Versions | Item | Value |
---|---|---|
VS Code | v1.55.0 | |
Platform | darwin x64 | |
Node | 12.18.3 (85) | |
Live Sass | 5.0.0 |
LOG:
{
"NO LOG": "PLEASE SPECIFY YOUR ISSUE BELOW"
}
=======================
"liveSassCompile.settings.showOutputWindowOn": "Trace"
"liveSassCompile.settings.showOutputWindowOn": "Trace"
Sorry, if I wasn't clear before. That needs adding to your settings.json
file or your workspace folder settings (this file has the extension .code-workspace
).
Then try running the liveSass.command.watchMySass
command again. This will show a output window at the bottom (like the screengrab below). Copy that info here
"liveSassCompile.settings.showOutputWindowOn": "Trace"
Sorry, if I wasn't clear before. That needs adding to your
settings.json
file or your workspace folder settings (this file has the extension.code-workspace
).Then try running the
liveSass.command.watchMySass
command again. This will show a output window at the bottom (like the screengrab below). Copy that info here
No no, I just copied the JSON code here. I did change the LiveSassCompile.settings.showOutputWindowsOn to trace in the settings.
Hang on.. I will restart my VSC again. Seems that the error isn't comming up again.
Command called: "liveSass.command.watchMySass"
--------------------
Switching UI state
--------------------
Changing status bar to: Watching
--------------------
Watching...
--------------------
VS Code event: "onDidSaveTextDocument"
--------------------
SASS file saved
A SASS file has been saved, starting checks
--------------------
Checking SASS path isn't excluded
Path: /Users/treffers/Documents/WINC opleiding/Winc_Academy/Slak_Test/style.scss
--------------------
Checking all workspace folders in project
--------------------
Checking folder 1 of 2
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Searching folder
--------------------
Checking folder 2 of 2
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Searching folder
--------------------
Getting SASS files
Query pattern: **/[^_]*.s[a|c]ss
Can be overwritten: true
--------------------
Checking folder 1 of 2
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Checking folder 2 of 2
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
But this happens after I have set the ShowOutputWindowOn to Trace. After that issuing LiveSass Watch Sass, then in the bar it says 'Watching..." while it is initial saying: 'Working on that' and gives the error in the topic of this very thread.
And did an error like the below show up in the bottom corner?
And did an error like the below show up in the bottom corner?
Yes, but then with the message: Running the contributed command: 'liveSass.command.watchMySass' failed. #57
I have now restarted VSC code with the 'trace' option on. It loads with the following information output:
"live-sass-compiler" is now activate
--------------------
Constructing app model
--------------------
Constructing error logger
--------------------
Clearing any old log data
--------------------
Error logs cleared
--------------------
Changing status bar to: "Starting..."
--------------------
App model constructed
--------------------
Checking for an unread announcement
--------------------
Live SASS commands ready
Commands have been saved and are ready to be used
--------------------
Announcement has already been shown
--------------------
Changing status bar to: Not watching (or Watch SASS)
--------------------
Then I click on 'Watch Sass' in the toolbar and this appears:
Ahh okay, I wanted to start with "Unhandled error with Live Sass Compiler. Error message:"
. It's this that means the error information has been saved for me to debug.
Can you try installing the below version:
live-sass-5.0.0-rc.4.1.zip
To install it you: unzipping the folder then drag the .vsix
file into the "Extensions" tab of VS Code
Done.
Gives the same error. Keeps staying on 'Working on it...'
So I can see why the error wasn't reportng as I expected.
Please try the below:
live-sass-5.0.0-rc.4.2.zip
This will not resolve the issue, but it should show the error message I wanted ("Unhandled error with Live Sass Compiler. Error message:"
)
If it does, can you (as you did before):
liveSass.command.createIssue
Done.
Have to disappoint you. Still the failed error and 'Working on it...'
Sorry I left off the new zip file
Did you install live-sass-5.0.0-rc.4.2.zip?
Yes I did install rc.4.2
Sorry for the delay, been frazzling my mind as to why the error wasn't being caught. Turned out I'd applied the error catcher to only one function and not the other 🤦♂️
Please can you try again for the below:
live-sass-5.0.0-rc.4.3.zip
Hopefully this time I will get usable error info 🤞
No probs. I was having lunch break. I wil give it a try now. Hang on.
rc4.3 installed and run.
Have to disappoint you again. Still the failed error.
This is the output:
"live-sass-compiler" is now activate
--------------------
Constructing app model
--------------------
Constructing error logger
--------------------
Clearing any old log data
--------------------
Error logs cleared
--------------------
Changing status bar to: "Starting..."
--------------------
App model constructed
--------------------
Checking for an unread announcement
--------------------
Live SASS commands ready
Commands have been saved and are ready to be used
--------------------
Announcement has already been shown
--------------------
Changing status bar to: Not watching (or Watch SASS)
--------------------
Command called: "liveSass.command.watchMySass"
--------------------
Starting to compile all files
--------------------
Changing status bar to: "Working on it..."
--------------------
Getting SASS files
Query pattern: **/[^_]*.s[a|c]ss
Can be overwritten: true
--------------------
Checking folder 1 of 2
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Checking folder 2 of 2
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Getting SASS files
Query pattern: **/[^_]*.s[a|c]ss
Can be overwritten: true
--------------------
Checking folder 1 of 2
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
Checking folder 2 of 2
Folder: [object Object]
--------------------
No base folder override found. Keeping workspace folder
--------------------
and
Machine & Versions | Item | Value |
---|---|---|
VS Code | v1.55.0 | |
Platform | darwin x64 | |
Node | 12.18.3 (85) | |
Live Sass | 5.0.0 |
LOG:
{
"NO LOG": "PLEASE SPECIFY YOUR ISSUE BELOW"
}
=======================
Are you sure you have installed rc4.3? I only ask because the Checking folder # of #
should read as below
--------------------
Checking folder 1 of 1
Folder: Sass Sample // <- this is the folder name (Not [object Object])
--------------------
Thanks for that extra info as well. I can see you haven't installed it. Can you take a screengrab of the "Extensions" tab?
Yours is glenn2223.live-sass (5.0.0)
and it should be glenn2223.live-sass (5.0.0-rc.4.3)
Ah... you rang a bell.... I checked and indeed it wasn't installed. Possible I clicked on "update to 5.0.0" and downgraded with that.
Uninstalled the complete extention, then installed rc4.3. Now the screen shows:
Machine & Versions | Item | Value |
---|---|---|
VS Code | v1.55.0 | |
Platform | darwin x64 | |
Node | 12.18.3 (85) | |
Live Sass | 5.0.0-rc.4.3 |
LOG: 2021-04-06 12:09:42.200Z
{
"createdAt": "2021-04-06T12:09:42.200Z",
"event": {
"files": "Error lies in getSassFiles()",
"error": {
"stack": "Error: ENOENT: no such file or directory, scandir '/Volumes/config'",
"message": "ENOENT: no such file or directory, scandir '/Volumes/config'",
"errno": -2,
"code": "ENOENT",
"syscall": "scandir",
"path": "/Volumes/config"
}
}
}
=======================
Seeing this log myself I have a clue:
The 'config' workspace is residing on my RP4i with Home Assistant running on it. But once this Samba server is somehow disconnected, the mappings to those directories are not available anymore. And it appears that this extension wants them to be real, dispite the fact that they have no tie with the Sass/scss files I would like to live-compile. Maybe this should be addressed in a next RFC.
It would be nice to be able to exclude 'probed' directories.
Can you take a screengrab of the file structure or make a copy here if you can't? Something like:
- Folder
- Volumes
- config
- somefile.config
- Sass
- style.scss
Just so I can try and tackle this. Thanks
So the config folder (highlighted in blue) path is /Volumes/config
. It also doesn't have any SASS files and is it the one that can disconnect?
So the config folder (highlighted in blue) path is
/Volumes/config
. It also doesn't have any SASS files and is it the one that can disconnect?
Correct .
So fdir
allows you to suppress errors, which it claims to do by default (obviously not 😁)
Can you test this one, which should suppress the error: live-sass-5.0.0-rc.4.4.zip
If this works then I can get v5 released tonight.
FYI: Problems with publishing to VS Code's marketplace means that I really don't want to (well, can't) publish any more RC's (Ref #54)
Flawless!!
You're the best!
Glad I could contribute to this release.
Good, I'm glad it works. v5 here we come 🎉
Thanks for your help in debugging this.
I will close this issue now.
After Updating VSC to version 1.55.0 the Live compiler stays at 'Working on it...' and gives the error:
"Running the contributed command: 'liveSass.command.watchMySass' failed."
Version: 1.55.0 Commit: c185983a683d14c396952dd432459097bc7f757f Date: 2021-03-30T16:01:05.981Z Electron: 11.3.0 Chrome: 87.0.4280.141 Node.js: 12.18.3 V8: 8.7.220.31-electron.0 OS: Darwin x64 20.3.0