Closed m1105 closed 9 years ago
編譯SASS後 /* Error: Indenting at the beginning of the document is illegal. on line 1 of /Users/m1105/Documents/test/sass/test.sass
1: $primary_color : #fff
Backtrace: /Users/m1105/Documents/test/sass/test.sass:1 /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:448:in tabulate' org/jruby/RubyArray.java:1613:ineach' org/jruby/RubyEnumerable.java:977:in each_with_index' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:431:intabulate' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:396:in _to_tree' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:268:inrender' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:17:in render' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:29:inwith_import_scope' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:16:in render' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:492:inupdate_stylesheet' org/jruby/RubyMethod.java:136:in call' file:/Users/m1105/Desktop/Fire.app/Contents/Java/fire-app.jar!/hook/compass_patch.rb:131:inupdate_stylesheet' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:215:in update_stylesheets' org/jruby/RubyArray.java:1613:ineach' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:209:in update_stylesheets' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:470:inon_file_changed' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:329:in watch' org/jruby/RubyProc.java:271:incall' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/listener.rb:236:in on_change' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/listener.rb:271:ininitialize_adapter' org/jruby/RubyProc.java:271:in call' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/adapter.rb:244:inreport_changes' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/adapter.rb:313:in poll_changed_directories' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/adapter.rb:289:instart_poller' */ 不知道原因為何!
tabulate' org/jruby/RubyArray.java:1613:in
each_with_index' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:431:in
_to_tree' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:268:in
render' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:29:in
render' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:492:in
call' file:/Users/m1105/Desktop/Fire.app/Contents/Java/fire-app.jar!/hook/compass_patch.rb:131:in
update_stylesheets' org/jruby/RubyArray.java:1613:in
update_stylesheets' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:470:in
watch' org/jruby/RubyProc.java:271:in
on_change' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/listener.rb:271:in
call' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/adapter.rb:244:in
poll_changed_directories' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/adapter.rb:289:in
@m1105 你沒有提供 test.sass 的話...... 我們怎麼樣都猜不出來喔。
看起來是你檔案前面有什麼不明的字元。
我後來換了一台電腦就行了,應該是我MAC的系統有問題。
編譯SASS後 /* Error: Indenting at the beginning of the document is illegal. on line 1 of /Users/m1105/Documents/test/sass/test.sass
1: $primary_color : #fff
Backtrace: /Users/m1105/Documents/test/sass/test.sass:1 /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:448:in
tabulate' org/jruby/RubyArray.java:1613:in
each' org/jruby/RubyEnumerable.java:977:ineach_with_index' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:431:in
tabulate' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:396:in_to_tree' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/engine.rb:268:in
render' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:17:inrender' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:29:in
with_import_scope' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:16:inrender' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:492:in
update_stylesheet' org/jruby/RubyMethod.java:136:incall' file:/Users/m1105/Desktop/Fire.app/Contents/Java/fire-app.jar!/hook/compass_patch.rb:131:in
update_stylesheet' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:215:inupdate_stylesheets' org/jruby/RubyArray.java:1613:in
each' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:209:inupdate_stylesheets' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:470:in
on_file_changed' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/compass_1.0/sass-3.4.1/lib/sass/plugin/compiler.rb:329:inwatch' org/jruby/RubyProc.java:271:in
call' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/listener.rb:236:inon_change' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/listener.rb:271:in
initialize_adapter' org/jruby/RubyProc.java:271:incall' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/adapter.rb:244:in
report_changes' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/adapter.rb:313:inpoll_changed_directories' /Users/m1105/Desktop/Fire.app/Contents/Resources/lib/ruby/jruby/listen-1.1.6/lib/listen/adapter.rb:289:in
start_poller' */ 不知道原因為何!