mercredi 19 novembre 2014

SASS Compile issue with Cmd 5.0.1.231, 5.0.2.270, and 5.0.3.324

I was modeling some Sass code after the Executive Dashboard example to better understand how Sass works and noticed that most of my CSS elements were working, but several were not.

Sencha app build gave me no errors/warnings or any indication that my Sass was broken.


Then, I decided to try using sencha compass watch to see if it gave me errors, and sure enough it gave me Undefined mixin errors, even though the files are correctly put in the sass/src/view/xxx folders.


So then I decided to try to compile the actual executive dashboard example straight from the 5.0.1 release, using 3 different versions of Cmd and sure enough I got the same error.


See below for the output/errors I'm getting on the executive dashboard example. (My code gets these exact same errors, but for the mixins/variables I'm using instead).



Code:



[INF] executing compass using system installed ruby runtime
>>> Change detected at 16:21:18 to: var/view/main/Main.scss
create stylesheets/var/view/main/Main.css
create stylesheets/etc/all.css
error sass/src/view/profitloss/ProfitLoss.scss (Line 16: Undefined variable: "$exec-tile-background".)
create stylesheets/src/view/profitloss/ProfitLoss.css
error sass/src/view/kpi/Kpi.scss (Line 26: Undefined mixin 'extjs-button-small-ui'.)
create stylesheets/src/view/kpi/Kpi.css
error sass/src/view/companynews/News.scss (Line 18: Undefined variable: "$exec-font-size-large-title".)
create stylesheets/src/view/companynews/News.css
error sass/src/view/quarterly/Quarterly.scss (Line 2: Undefined variable: "$exec-light-background".)
create stylesheets/src/view/quarterly/Quarterly.css
error sass/src/view/main/Main.scss (Line 34: Undefined mixin 'extjs-tab-panel-ui'.)
create stylesheets/src/view/main/Main.css

1) Is this a bug, and if it's not, what am I missing? Why did it not include the sass/var/main/Main.scss file? Where are the mixins it's looking for stored, is there a way to force point to them?

2) Is it possible to have sencha app build show these Sass compile errors, as I would have never of found them if I didn't specifically try running compass watch to focus on them specifically. It would have been nice to see those during the app build to realize the problem. It took me a while to find the compass watch command to even figure this out. More logging/verbosity as an option to sencha cmd would be great.






SASS Compile issue with Cmd 5.0.1.231, 5.0.2.270, and 5.0.3.324

Aucun commentaire:

Enregistrer un commentaire