Soy syntax error causing a Severe Error in Plovr.

26 views
Skip to first unread message

Andre Tannus

unread,
Jan 6, 2016, 2:39:29 PM1/6/16
to pl...@googlegroups.com
I'm sure this is rare but if a soy file contains

<div class="{css some-class other-class}">
</div>


instead of

<div class="{css some-class} {css other-class}">

</div>


Plovr, used in serve mode (see config.json) throws the following error:

SEVERE: Error during GET request to /compile?id=yadda
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:635)
        at java.util.ArrayList.get(ArrayList.java:411)
        at org.plovr.SoyFile.generateCode(SoyFile.java:65)
        at org.plovr.AbstractJsInput.cacheExpensiveValuesIfNecessary(AbstractJsInput.java:126)
        at org.plovr.AbstractJsInput.getProvides(AbstractJsInput.java:97)
        at org.plovr.Manifest.getProvideToSource(Manifest.java:251)
        at org.plovr.Manifest.getInputsInCompilationOrder(Manifest.java:233)
        at org.plovr.ModuleConfig.partitionInputsIntoModules(ModuleConfig.java:221)
        at org.plovr.InputFileHandler.getJsToLoadManifest(InputFileHandler.java:86)
        at org.plovr.CompileRequestHandler.doGet(CompileRequestHandler.java:56)
        at org.plovr.AbstractGetHandler.handle(AbstractGetHandler.java:86)
        at org.plovr.CompilationServer$1.handle(CompilationServer.java:129)
        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
        at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
        at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
        at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

which is very uninformative.

Should this be more informative?

--
André Tannús | Epungo | +55 11 2389-4360
We are a layer
Reply all
Reply to author
Forward
0 new messages