2012-01-29 69 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: /用戶/ EladG /網站/ Pt4u

煎茶庫網址: /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看起來是這樣的:就像你在使用cd使用File.join

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

想:

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

你會再在config.rb使用加載煎茶命令行。 「從sass_path開始,上傳一個目錄到Pt4u,上一個目錄到Sites,進入sencha-touch-1.1.0,進入資源,進入主題」

+0

謝謝,我會試試.. 。 – Elad 2012-01-31 05:50:24