-
Notifications
You must be signed in to change notification settings - Fork 33
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
Saving included files doesn't compile main.scss + it compiles itself #68
Comments
Same problem here. :( |
Same for me, very frustrating. It doesn't recognise any change of imported .scss files. |
Same problem here. EDIT: I just tried to enable the compile of the imported files and saw that the app.scss file also gets compiled, but in the wrong directory. So changing the directory to "../css/" helps, but your "scss" directory gets trashed with an additional "css" folder. |
I'm having a similar issue, when saving my file with import rule it's not working correctly and see the same message as the first post.
So actually all my files inside Actually my .brackets.json file include this:
and my tree looks like this:
EDIT: Included files are not watched and compiled inside app.scss if I made a change. |
@artipixel I think your
However, in addition to the |
Fixed in #78, version 1.0.3-80. @artipixel Here's an alternative
|
The last update just made it worse for me. I tried the config you provided here: #68 (comment) but I can't get it to work. (I changed the folder names but everything else is the same) My folders look like the following:
My app.scss only consists of "imports" but changing a file in the subfolder "imports" doesn't cause app.scss to recompile. |
@Belkar that sample was just for @artipixel. Looking at your example, you'll want a
|
Thanks for the fast reply but i can't get it to work. Saving app.scss works but changing something in imports/*.scss doesn't cause it to recompile
EDIT: Somehow it works now. (I have done absolutly nothing in between) THANKS!! :) |
Also thanks, |
I continue to have this issue: saving a partial/imported SCSS file doesn't trigger a recompile of the main SCSS file and update of the live preview. Here's my .brackets.json:
|
Reopened. @panablue can you try this dev build https://github.com/jasonsanjose/brackets-sass/releases/tag/2.0.1-105 and see if it fixes your issue with partials not recompiling the main input? Also, are you on mac or win? |
It appears to be working - and updating the live preview without saving is extra awesome. Thank you for taking the time on this. (I'm on Windows 7.) Maybe not even worth addressing, but I noticed a small anomaly that occurs when making edits between 2 open partial files: Changes to either file updates the live preview as expected, but saving partial A updates the live preview to show the last-saved version of partial B. (However saving partial B then re-updates the live preview with the changes since the last save.) |
@panablue thanks for the feedback.
Can you file this as a separate bug? Pretty sure that's fixable. Thanks again. |
Fixed in #100. Closing |
I get the same problem on Mac as @panablue had on Windows. No live preview and no compiling as soon as I import partials into the app.scss file. Commenting out the imports of partials instantly shows live preview and compiling with file mapping works fine, so it's the imports that breaks it for me. I'm on Yosemite and use brackets-sass v 2.0.1-109. My setup below... root scss/app.scss@import "variables" .brackets.json{ |
Saving a partial/imported SCSS file doesn't trigger a recompile of the main SCSS file for me neither. :( Compile works only if I update the main scss file. |
Try adding this commented-out line to the top of all of your _partial files:
This tells SASS to compile your main SCSS file when saving a partial. Obviously, change |
Hi,
When I'm trying to save some included sass files, it compiles itself, although I specifically disabled this option. additionally, it doesn't compile the main file - main.scss. I need to save 2 files very time I make a change, and I get weird errors as well, like this one -
Alltogh there is nothing wrong with that file.
When I'm trying to un-include this file it gives me the same error with the next file.
Also, It's still generating maps - and I specifically disabled it too.
The reason - it calls the full path instead the relative, I'm developing it on my computer and it's not very good to have a path like
F:/project/project_name
...This is my
.json
file:and my folder tree:
This is my main.scss file:
The really weird thing is that it saves the file at
../css
folder, so the.json
file configuration does work.Help, please? :(
The text was updated successfully, but these errors were encountered: