3 Jul 2012 6:42 AM #11
I had exactly the same problem to this and was in the middle of doing a forum post when I just solved it.
I have a styles folders in the base of my app, where app, resources, and sdk are. Within that folder I have config.rb and default-theme.scss.
My config.rb now looks like this:
# Get the directory that this configuration file exists indir = File.dirname(__FILE__) # Load the sencha-touch framework load File.join(dir, '..', 'sdk', 'resources', 'themes') # Look for any *.scss files in same directory as this file # Place compiled *.css files in the parent directory sass_path = dir css_path = File.join(dir, "..") output_style = :expanded environment = :development
@import '../sdk/resources/themes/stylesheets/sencha-touch/default/all'; // You may remove any of the following modules that you // do not use in order to create a smaller css file. @include sencha-panel; @include sencha-buttons; @include sencha-sheet; @include sencha-picker; @include sencha-tabs; @include sencha-toolbar; @include sencha-toolbar-forms; @include sencha-indexbar; @include sencha-list; @include sencha-layout; @include sencha-carousel; @include sencha-form; @include sencha-msgbox;
Overall this whole framework involves a LOT of trial an error, and the documentation doesn't help most of the time.
25 Jul 2012 5:16 AM #12
I had this error when upgrading from touch 2.0.0 to 188.8.131.52
The error seems to be caused by the change in folder structure, where some ruby compass trivia has been separated into it's own directories. To find them compass must get to know their location explicitly, which happens in resources/themes/compass_init.rb
The 184.108.40.206 version looks like
# This file registers the sencha-touch framework with compass # It's a magic name that compass knows how to find. dir = File.dirname(__FILE__) require File.join(dir, 'lib', 'theme_images.rb') # Include compass-recipes require File.join(File.dirname(__FILE__), 'vendor', 'compass-recipes', 'config') Compass::BrowserSupport.add_support('repeating-linear-gradient', 'webkit', 'moz', 'o', 'ms') Compass::Frameworks.register 'sencha-touch', dir
require File.join(File.dirname(__FILE__), 'vendor', 'compass-recipes', 'config')
2 Aug 2012 12:38 PM #13
resolved? having same problem here
master_obiwan - did you get this resolved? i'm tearing my hair out over here. same problem 'recipes/background'. tried solutions posted here but still no good...
6 Aug 2012 2:24 PM #14
Solved the problem
hi, I was having the same problem. I updated from Sencha Touch 2.0.0 to 220.127.116.11. The problem isn't with Sencha, it is with compass. I ran gem install compass again from inside the project folder, and it updated compass, and fixes the problem.
8 Aug 2012 5:51 PM #15
ugh - mediademon, I wish I would have reviewed the code you posted in more detail. Finally figured it out on my own and came back to post - then I re-read yours.
22 Aug 2012 10:21 AM #16
@ master_obiwan i have the same problem, but i find a way to make this work
firstly - sorry for my bad english, i hope you can understand..
i have build the getting startet app with tutorial and create th GS folder ... now my app is running and work perfect, now i want to change the theming... but tutorial is not a really help, because the error you mean is showing me... i try anything and google for more than one hours, but now i find the reason why the error is show.
i my example the app create an GS folder in sencha -root- folder, now the styles folder is in GS
looks like this sencha-main-folder/GS/styles ... i control the path of the config.rb file and change is like thisCode:
# Load the sencha-touch framework load File.join(dir, '..', '..', 'resources', 'themes')
but now i call my css withCode:
<link rel="stylesheet" href="my-theme.css" type="text/css">
can anybody give me some help or have an advice how i make this works ?
best regards and i hope this was helpful for anyone
19 Sep 2012 4:07 PM #17
to fix the problem modify your config.rb
load File.join (...)
Generally, this statement builds a path that should be pointing to your themes directory. i.e. above state is same as CurrentDIR/../sdk/resource/themes
21 Sep 2012 1:58 AM #18
4 Oct 2012 4:09 AM #19
In the file:
There is a line:
# Include compass-recipes
require File.join(File.dirname(__FILE__), 'vendor', 'compass-recipes', 'config.rb')
Make sure it is written 'config.rb' and not just 'config'.
That solved my problem (after all the previous fixes failed).
13 Nov 2012 1:16 AM #20
Maybe it's too late, but i've found where the problem was nested.
the config.rb i copied was in the sdk/ressources/sass folder but when i created my own, i created it outside the sdk
with this line of code
# Load the sencha-touch framework automatically.load File.join(dir, '..', '..', 'sdk', 'resources', 'themes')
# Load the sencha-touch framework automatically. load File.join(dir, '..', 'sdk', 'resources', 'themes')
Thread Participants: 25
- mitchellsimoens (1 Post)
- Scorpie (1 Post)
- maddhippy (1 Post)
- WonderWhit (1 Post)
- Marc-QNX (1 Post)
- nagwww (2 Posts)
- gypsie (1 Post)
- troels (1 Post)
- gdhussak (1 Post)
- Monti123 (1 Post)
- mediademon (1 Post)
- 3advance (1 Post)
- fresh-x (1 Post)
- afleming (2 Posts)
- ehua329 (1 Post)
- wiseveri (1 Post)
- Gaspard22 (1 Post)
- Ryan Paddy (1 Post)
- hemantg05 (1 Post)
- bashir26 (2 Posts)
- jacobnelson (1 Post)
- firstname.lastname@example.org (1 Post)
- syardumian (1 Post)
- rsravishankar (1 Post)
- jedilance (1 Post)