-
26 Mar 2013 1:11 PM #1
[ST2.1.1][CMD 3.1.0.256] Failed building SASS with system ruby
[ST2.1.1][CMD 3.1.0.256] Failed building SASS with system ruby
REQUIRED INFORMATION
Sencha Cmd version(s) tested:- Sencha Cmd 3.1.0.256
- OS X 10.6.8
- Sencha Touch 2.1.1
- sencha app build testing
- [INF] executing compass using system installed ruby runtime
- error app.scss (Line 90: Invalid CSS after "}": expected selector or at-rule, was "%disclosure {")
This error didn't happen with the last version of Sencha Cmd 3.0. I can manually go to my resources/sass directory and successfully run "compass compile" from there. It appears that Sencha Cmd is having trouble with @extend-only selectors.
Just include a placeholder rule to your app.scss:
Code:%shared { color: blue; } .foo { @extend %shared; font-size: 12px; }The logfile is here: error.txtCode:/Users/[user]/Code/[project]/front-end/sencha app build testing > error.log
The result that was expected:- It should've compiled like usual.
- Compilation fails, of course.
- I think Sencha Cmd actually used an internal jRuby/Compass, or the default Mac OS X version of Ruby, rather than the system Ruby that is set via rbenv (should be easily available via "/usr/bin/env ruby").
Last edited by robert_k; 27 Mar 2013 at 4:58 AM. Reason: Fixed title
-
28 Mar 2013 7:56 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Thanks for the report! I have opened a bug in our bug tracker.
-
8 Apr 2013 9:47 AM #3
I've run into this problem as well, it appears that CMD 3.1 ships with a really old version of SASS (3.1.7) while 3.0 used the newer version installed on my system. I'm looking for a clean way to override the compass binary path via sencha.cfg somewhere, is there a setting?
-
8 Apr 2013 9:50 AM #4
The only way I was able to work around this was to revert to Sencha CMD 3.0.2. I wasn't able to come up with a way to keep the newest version of Sencha CMD.
-
8 Apr 2013 10:32 AM #5
I've got the newest CMD using my system gems with this ugly hack:
1) Rename /usr/local/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems to gems.bak
2) Create empty directory in its place
3) Fill with symlinks:
Code:lrwxrwxrwx 1 root root 14 Apr 8 14:26 bin -> /usr/local/bin lrwxrwxrwx 1 root root 36 Apr 8 14:25 cache -> /usr/local/lib64/ruby/gems/1.8/cache lrwxrwxrwx 1 root root 35 Apr 8 14:25 gems -> /usr/local/lib64/ruby/gems/1.8/gems lrwxrwxrwx 1 root root 45 Apr 8 14:25 specifications -> /usr/local/lib64/ruby/gems/1.8/specifications
-
8 Apr 2013 2:18 PM #6
@mitchellsimoens - can we just get a version bump for the sass gem in the next CMD build to 3.2.7?
-
25 Apr 2013 5:10 AM #7
Where are we on resolution of this issue? I'm willing to help test a beta version of Sencha CMD to try and resolve the issue.
You found a bug! We've classified it as
SDKTOOLS-395
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote