Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
a recent build.
Ext JS Premium Member
sencha generate theme creating config.rb with wrong css_path?
I wanted to play with a custom theme so I followed the instructions here...
...to create a new theme in my generated application.
When I do the 'compass compile' command it works but the resulting app.css is incorrectly located.
Its ended up in "myapp/resources/sass/css/app.css" rather than "myapp/resources/css/mynewtheme/app.css".
Looking at the config.rb in the theme I created I can see the problem...
I'm testing this by loading the generated theme.html file in to my browser.
# Get the directory that this configuration file exists in
dir = File.dirname(__FILE__)
$ext_path = File.join(dir, '..', '..', '..', 'ext')
# Load the extjs framework automatically.
load File.join($ext_path, 'resources', 'themes')
# Compass configurations
sass_path = dir
css_path = File.join(dir, "..", "css") # << This is what was generated and puts the output in the wrong location
# This works >> css_path = File.join(dir, "..", "..", "css", "mynewtheme")
# Require any additional compass plugins here.
images_dir = File.join(dir, "..", "images")
output_style = :compressed
environment = :production
In my app.scss I made the following simple changes...
Without the change to the config.rb file I just keep picking up the stock extjs theme.
With the adjusted css_path my modifications show up.
I was expecting the generate theme + compass compile + test to work out of the box, i.e. not require tweaking or file moving.
Does this looks like a 'sencha generate theme' bug on the css_path in the config.rb file?
Yes this is a bug. We are tracking this here http://www.sencha.com/forum/showthre...ence-to-images
Unless you feel this is a different issue...
Sencha Premium Member
Seems like a different issue
This report seems to be slightly different from the bug being tracked, but maybe related?
I have just generated a new theme (with Cmd build 181) and can confirm that the generated config.rb file does not have the correct value for 'css_path'.
Ext JS Premium Member
Yup...looking good in 190. Thanks....big improvement over earlier builds.