如何解决" Sass :: SyntaxError:无效的CSS" Liferay 6.2中的错误?

时间:2017-10-30 15:56:45

标签: liferay liferay-6 liferay-theme

我正在使用Eclipse Kepler-4.3和Liferay 6.2 CE GA5。

我尝试部署主题,但是我收到了这个错误:

 [echo] Loading jar:file:/D:/FormationJEE/Liferay/LiferayGA5/tomcat/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
 [echo] Loading jar:file:/D:/FormationJEE/Liferay/LiferayGA5/tomcat/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
 [echo] Sass::SyntaxError: Invalid CSS after "...ow-x: hidden\0/": expected expression (e.g. 1px, bold), was ";"
 [echo]                 expected at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1147
 [echo]                expected! at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/lexer.rb:199
 [echo]              assert_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:471
 [echo]         times_div_or_mod at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:233
 [echo]            plus_or_minus at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
 [echo]               relational at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
 [echo]                eq_or_neq at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
 [echo]                 and_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
 [echo]                  or_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
 [echo]                    space at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:298
 [echo]                     expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:246
 [echo]                     send at org/jruby/RubyKernel.java:2093
 [echo]              assert_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:470
 [echo]                    parse at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:49
 [echo]                     send at org/jruby/RubyKernel.java:2093
 [echo]              sass_script at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1021
 [echo]                   value! at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:881
 [echo]              declaration at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:858
 [echo]   declaration_or_ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:581
 [echo]                     call at org/jruby/RubyProc.java:270
 [echo]                     call at org/jruby/RubyProc.java:220
 [echo]                  rethrow at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1122
 [echo]   declaration_or_ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:591
 [echo]              block_child at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:553
 [echo]           block_contents at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:542
 [echo]                    block at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:534
 [echo]                  ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:528
 [echo]              block_child at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:552
 [echo]           block_contents at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:545
 [echo]               stylesheet at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:82
 [echo]                    parse at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:27
 [echo]                 _to_tree at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:342
 [echo]                  _render at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:315
 [echo]                   render at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:262
 [echo]                   (root) at <script>:48
 [echo] Unable to parse /css/app.css
 [echo] Exception in thread "main" org.jruby.embed.EvalFailedException: (SyntaxError) Invalid CSS after
     

&#34; ... ow-x:hidden \ 0 /&#34 ;:期望的表达式(例如1px,粗体),是&#34 ;;&#34;        [echo] at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)        [echo] at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)        [echo] at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)        [echo] at com.liferay.portal.scripting.ruby.RubyExecutor.doEval(RubyExecutor.java:189)        [echo] at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:229)        [echo] at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:129)        [echo] at com.liferay.portal.tools.SassToCssBuilder._parseSassFile(SassToCssBuilder.java:355)        [echo] at com.liferay.portal.tools.SassToCssBuilder._cacheSass(SassToCssBuilder.java:186)        [echo] at com.liferay.portal.tools.SassToCssBuilder._parseSassDirectory(SassToCssBuilder.java:317)        [echo] at com.liferay.portal.tools.SassToCssBuilder。(SassToCssBuilder.java:172)        [echo] at com.liferay.portal.tools.SassToCssBuilder.main(SassToCssBuilder.java:125)        [echo]引起:org.jruby.exceptions.RaiseException:(SyntaxError)&#34; ... ow-x之后的无效CSS:隐藏\ 0 /&#34;:预期   表达式(例如1px,粗体)是&#34 ;;&#34;

     

建立失败   d:\ FormationJEE \ Liferay的\ LiferayGA5 \ SDK \ Liferay的-插件-SDK-6.2 \集结common.xml:3162:   执行此行时发生以下错误:::   执行此行时发生以下错误:   d:\ FormationJEE \ Liferay的\ LiferayGA5 \ SDK \ Liferay的-插件-SDK-6.2 \集结common.xml:1421:   执行此行时发生以下错误:::   执行此行时发生以下错误:   d:\ FormationJEE \ Liferay的\ LiferayGA5 \ SDK \ Liferay的-插件-SDK-6.2 \集结common.xml:2866:   执行此行时发生以下错误:   d:\ FormationJEE \ Liferay的\ LiferayGA5 \ SDK \ Liferay的-插件-SDK-6.2 \集结common.xml:190:   Sass到CSS Builder生成的异常。

1 个答案:

答案 0 :(得分:1)

可能是你在CSS中有语法错误

  

Sass :: SyntaxError:&#34; ... ow-x之后的无效CSS:隐藏\ 0 /&#34;:预期   表达式(例如1px,粗体)是&#34 ;;&#34;