2012-01-29 3 views
1

Я новичок в сенче ощупь и пытаюсь использовать дерзость и компас .. Я установил все и настройки все, но при попытке компиляции файла application.scss я получаю следующее сообщение:компаса компилировать Сенч ошибка

{:cache_location=>"/Users/EladG/Sites/Pt4u/resources/scss/.sass-cache", :sass=> 
{:cache_location=>"/Users/EladG/Sites/Pt4u/resources/scss/.sass-cache", :cache=>true, 
:line_comments=>false, :style=>:compressed, :load_paths=> 
[#<Sass::Importers::Filesystem:0x10a58e548 @root="/Users/EladG/Sites/Pt4u/resources/scss">, 
#<Sass::Importers::Filesystem:0x10a58e520 @root="/Library/Ruby/Gems/1.8/gems/compass-0.12.alpha.4 
/frameworks/blueprint/stylesheets">, #<Sass::Importers::Filesystem:0x10a58e430 @root="/Library 
/Ruby/Gems/1.8/gems/compass-0.12.alpha.4/frameworks/compass/stylesheets">, 
Compass::SpriteImporter]}, :sass_files=>nil} 
***error application.scss (Line 5: File to import not found or unreadable: sencha-touch/default/all.*** 
Load paths: 
    /Users/EladG/Sites/Pt4u/resources/scss 
/Library/Ruby/Gems/1.8/gems/compass-0.12.alpha.4/frameworks/blueprint/stylesheets 
/Library/Ruby/Gems/1.8/gems/compass-0.12.alpha.4/frameworks/compass/stylesheets 
Compass::SpriteImporter) 
Sass::SyntaxError on line 5 of /Users/EladG/Sites/Pt4u/resources/scss/application.scss: File to 
import not found or unreadable: sencha-touch/default/all. 
Load paths: 
/Users/EladG/Sites/Pt4u/resources/scss 
/Library/Ruby/Gems/1.8/gems/compass-0.12.alpha.4/frameworks/blueprint/stylesheets 
/Library/Ruby/Gems/1.8/gems/compass-0.12.alpha.4/frameworks/compass/stylesheets 
Compass::SpriteImporter 
Run with --trace to see the full backtrace 

рубин файл:

# Delineate the directory for our SASS/SCSS files (this directory) 
sass_path = File.dirname(__FILE__) 

# Delineate the CSS directory (under resources/css in this demo) 
css_path = File.join(sass_path, "..", "css") 

# Delinate the images directory 
images_dir = File.join(sass_path, "..", "img") 

# Load the sencha-touch framework 
load File.join(sass_path, '..', '..', '..', '..', 'resources', 'themes') 

# Specify the output style/environment 
output_style = :compressed 
environment = :production 

application.scss файл:

@import 'sencha-touch/default/all'; 
@include sencha-panel; 
@include sencha-buttons; 
@include sencha-sheet; 
@include sencha-picker; 
@include sencha-toolbar-forms; 
@include sencha-tabs; 
@include sencha-toolbar; 
@include sencha-carousel; 
@include sencha-indexbar; 
@include sencha-list; 
@include sencha-layout; 
@include sencha-form; 
@include sencha-loading-spinner; 

// 3. Define custom styles (can use SASS/Compass), example: 
// .mybox { 
//  @include border-radius(4px); 
// } 
//$frame-base-color:#333; 
@include pictos-iconmask(‘wifi’); 

URL-адрес моего проекта: /Users/EladG/Сайты/Pt4u

URL-адрес библиотеки сенча: /Users/EladG/Sites/sencha-touch-1.1.0/resources/themes/stylesheets/sencha- сенсорный/по умолчанию

Спасибо,

ответ

5

Компас не может найти sencha-touch/default/all

Sass::SyntaxError on line 5 of /Users/EladG/Sites/Pt4u/resources/scss/application.scss: File to 
import not found or unreadable: sencha-touch/default/all. 

Вам нужно настроить путь нагрузки в config.rb. Я предполагаю, что Pt4u выглядит следующим образом:

Pt4u 
--scss 
----config.rb 
----application.scss 
--css 

Вы бы затем загрузить Сенч в config.rb с помощью:

load File.join(sass_path, '..', '..', 'sencha-touch-1.1.0', 'resources', 'themes') 

Думайте использование File.join как вы используете cd на командная строка. «Начните с sass_path, перейдите в один каталог на Pt4u, перейдите на один каталог на сайты, перейдите в sencha-touch-1.1.0, перейдите в ресурсы, зайдите в темы«

+0

Спасибо, я попробую это .. , – Elad