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

on-fly compilation problem with @import #1

Open
gre opened this issue Mar 1, 2010 · 2 comments
Open

on-fly compilation problem with @import #1

gre opened this issue Mar 1, 2010 · 2 comments

Comments

@gre
Copy link

gre commented Mar 1, 2010

Hi, I have a on-fly compilation problem when using @import and two sass file :

This is a test case :
main.sass :
@import layout.sass

_layout.sass :

in a play template :

{stylesheet src:'main.sass', media:'screen' /}

The problem :
When modify the _layout.sass content, the main.sass file is not re-compiled, to force the on-fly recompilation, I have to do a touch main.sass

Best regards,
Renaudeau Gaetan

@sylvainmathieu
Copy link

Hi, same problem for me. Any idea Guillaume ?

@digiPlant
Copy link

I found what the problem is. If you import other stylesheets without their extensions the dependency manager tries to look for a file that does not exist.

Quick solution is to add .scss or .sass to your imports.

we will have to look for both files in the code...
Engine.java line 145 : depSass = new File(depSass.getParentFile() + "/_" + depSass.getName());

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