google-code-export / wro4j

Automatically exported from code.google.com/p/wro4j
1 stars 1 forks source link

Sass::SyntaxError: Invalid CSS after "$": expected identifier, was "legacy-support-..." #738

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We started using the wro4j-xxxx.jar  which is almost equivalent to 
wro4j-runner-1.6.3-jar-with-dependencies.jar from 
https://code.google.com/p/wro4j/

This package is used to compile scss and concatenate/minify js/css files. 

 The error is below:

Sass::SyntaxError: Invalid CSS after "$": expected identifier, was 
"legacy-support-..."
        expected at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:1129
        expected at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:1066
            tok! at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:1061
        variable at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:494
     block_child at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:536
  block_contents at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:526
      stylesheet at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:70
           parse at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:27
        _to_tree at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/engine.rb:342
         _render at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/engine.rb:315
          render at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/engine.rb:262
          (root) at <script>:4
org.jruby.embed.EvalFailedException: (SyntaxError) Invalid CSS after "$": 
expected identifier, was "legacy-support-..."
        at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:136)
        at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:90)
        at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:153)
        at ro.isdc.wro.extensions.processor.support.sass.RubySassEngine.process(RubySassEngine.java:69)
        at ro.isdc.wro.extensions.processor.css.RubySassCssProcessor.process(RubySassCssProcessor.java:50)
        at ro.isdc.wro.extensions.processor.css.RubySassCssProcessor.process(RubySassCssProcessor.java:85)
        at com.jcrew.jsp.taglibs.perf.tag.CssOptimizerTag.addFileContentsToBuffer(CssOptimizerTag.java:77)
        at com.jcrew.jsp.taglibs.perf.tag.AbstractOptimizerTag.concatenateRawFiles(AbstractOptimizerTag.java:120)
        at com.jcrew.jsp.taglibs.perf.tag.AbstractOptimizerTag.doTag(AbstractOptimizerTag.java:92)
        at com.bluemartini._signin.__signin._jspService(__signin.java:1768)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at com.jcrew.servlet.JCrewJSPFilter.doFilter(JCrewJSPFilter.java:224)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at com.jcrew.bm.bizact.JCrewFilter.doFilter(JCrewFilter.java:35)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at com.bluemartini.html.DefaultRequestHandler.executeJSPFilter(DefaultRequestHandler.java:93)
        at com.bluemartini.html.StandardRequestHandler.executeJSP(StandardRequestHandler.java:694)
        at com.bluemartini.html.HTMLFilter.doFilter(HTMLFilter.java:346)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(Unknown Source)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) Invalid CSS after 
"$": expected identifier, was "legacy-support-..."
Sass::SyntaxError: Invalid CSS after "$": expected identifier, was 
"legacy-support-..."
        expected at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:1129
        expected at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:1066
            tok! at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:1061
        variable at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:494
     block_child at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:536
  block_contents at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:526
      stylesheet at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:70
          parse at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/scss/parser.rb:27
        _to_tree at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/engine.rb:342
         _render at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/engine.rb:315
          render at file:/local/home/bmadmin/wro4j-jcrew.jar!/gems/sass-3.2.1/lib/sass/engine.rb:262
          (root) at <script>:4
org.jruby.embed.EvalFailedException: (SyntaxError) Invalid CSS after "$": 
expected identifier, was "legacy-support-..."

What version of the product are you using? On what operating system?

wro4j-runner-1.6.3-jar-with-dependencies.jar from 
https://code.google.com/p/wro4j/

The application continues to work in general – it is a web application and 
pages that are not using the functionality in question are working OK.  

Any pointers??

Thanks
Mel

Original issue reported on code.google.com by melvinvi...@gmail.com on 31 May 2013 at 10:40

GoogleCodeExporter commented 9 years ago
The exception says that there is a problem with the compilation of a sass 
resource. Are you sure it is a valid one? What is the expected behavior? Can 
you show an example of the resource which causes the problem? Could you show 
your configurations?

Original comment by alex.obj...@gmail.com on 31 May 2013 at 10:44

GoogleCodeExporter commented 9 years ago
Thanks for the quick response. I need to check with my developer on this. Can 
you let me which configuration files you need to see?

Mel

Original comment by melvinvi...@gmail.com on 31 May 2013 at 10:51

GoogleCodeExporter commented 9 years ago
I need to know the following:
1) what resource is being compiled
2) what processors (pre & post) are used
3) how the model looks like
4) what is the expected result
5) what is actual result.

Original comment by alex.obj...@gmail.com on 31 May 2013 at 10:55

GoogleCodeExporter commented 9 years ago
This is closed with invalid resolution since no more details were provided. 
Feel free to reopen it if you encounter the same problem with latest version of 
you can provide more details.

Original comment by alex.obj...@gmail.com on 18 Aug 2013 at 10:51