I'm trying to use the Less module so I can leverage Twitter's Bootstrap in my project. I know I don't need Less, but I figured I'd try it anyway. When I use versions 0.2 or 0.3, I get the following error:
Bugger, the LESS processing failed:, java.lang.NullPointerException at com.asual.lesscss.LessEngine.parseLessException(LessEngine.java:163) at com.asual.lesscss.LessEngine.compile(LessEngine.java:104) at play.modules.less.PlayLessEngine.compile(PlayLessEngine.java:94) at play.modules.less.PlayLessEngine.get(PlayLessEngine.java:43) at play.modules.less.Plugin.handleOk(Plugin.java:64) at play.modules.less.Plugin.handleResponse(Plugin.java:49) at play.modules.less.Plugin.serveStatic(Plugin.java:31) at play.plugins.PluginCollection.serveStatic(PluginCollection.java:584) at play.server.PlayHandler.serveStatic(PlayHandler.java:765) at play.server.PlayHandler$NettyInvocation.init(PlayHandler.java:179) at play.Invoker$Invocation.run(Invoker.java:263) at play.server.PlayHandler$NettyInvocation.run(PlayHandler.java:200) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access $301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Sc heduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j ava:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 908) at java.lang.Thread.run(Thread.java:680)
I also have the CoffeeScript module installed in my Play 1.2.3 project. Don't know if that makes a difference or not.
This happens with the GreenScript plugin as well. If I use a
simpler .less file, it works. So I'm guessing there's something
different b/w Twitter's Less authoring and the compilers that Play
modules use.
Is there source code available for the less module? I'd like to see if
I can add more information to compilation errors, like line numbers
and such.
On Oct 9, 1:32 pm, Matt Raible <mrai...@gmail.com> wrote:
> I'm trying to use theLessmodule so I can leverage Twitter's Bootstrap in my project. I know I don't needLess, but I figured I'd try it anyway. When I use versions 0.2 or 0.3, I get the following error:
> Bugger, theLESSprocessing failed:,
> java.lang.NullPointerException
> at com.asual.lesscss.LessEngine.parseLessException(LessEngine.java:163)
> at com.asual.lesscss.LessEngine.compile(LessEngine.java:104)
> at play.modules.less.PlayLessEngine.compile(PlayLessEngine.java:94)
> at play.modules.less.PlayLessEngine.get(PlayLessEngine.java:43)
> at play.modules.less.Plugin.handleOk(Plugin.java:64)
> at play.modules.less.Plugin.handleResponse(Plugin.java:49)
> at play.modules.less.Plugin.serveStatic(Plugin.java:31)
> at play.plugins.PluginCollection.serveStatic(PluginCollection.java:584)
> at play.server.PlayHandler.serveStatic(PlayHandler.java:765)
> at play.server.PlayHandler$NettyInvocation.init(PlayHandler.java:179)
> at play.Invoker$Invocation.run(Invoker.java:263)
> at play.server.PlayHandler$NettyInvocation.run(PlayHandler.java:200)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access $301(ScheduledThreadPoolExecutor.java:98)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Sc heduledThreadPoolExecutor.java:206)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j ava:886)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 908)
> at java.lang.Thread.run(Thread.java:680)
> I also have the CoffeeScript module installed in my Play 1.2.3 project. Don't know if that makes a difference or not.
On Wed, Oct 12, 2011 at 1:27 AM, Matt Raible <mrai...@gmail.com> wrote: > This happens with the GreenScript plugin as well. If I use a > simpler .less file, it works. So I'm guessing there's something > different b/w Twitter's Less authoring and the compilers that Play > modules use.
> Is there source code available for the less module? I'd like to see if > I can add more information to compilation errors, like line numbers > and such.
> On Oct 9, 1:32 pm, Matt Raible <mrai...@gmail.com> wrote: > > I'm trying to use theLessmodule so I can leverage Twitter's Bootstrap in > my project. I know I don't needLess, but I figured I'd try it anyway. When I > use versions 0.2 or 0.3, I get the following error:
> > Bugger, theLESSprocessing failed:, > > java.lang.NullPointerException > > at > com.asual.lesscss.LessEngine.parseLessException(LessEngine.java:163) > > at com.asual.lesscss.LessEngine.compile(LessEngine.java:104) > > at > play.modules.less.PlayLessEngine.compile(PlayLessEngine.java:94) > > at play.modules.less.PlayLessEngine.get(PlayLessEngine.java:43) > > at play.modules.less.Plugin.handleOk(Plugin.java:64) > > at play.modules.less.Plugin.handleResponse(Plugin.java:49) > > at play.modules.less.Plugin.serveStatic(Plugin.java:31) > > at > play.plugins.PluginCollection.serveStatic(PluginCollection.java:584) > > at play.server.PlayHandler.serveStatic(PlayHandler.java:765) > > at > play.server.PlayHandler$NettyInvocation.init(PlayHandler.java:179) > > at play.Invoker$Invocation.run(Invoker.java:263) > > at > play.server.PlayHandler$NettyInvocation.run(PlayHandler.java:200) > > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access $301(ScheduledThreadPoolExecutor.java:98) > > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Sc heduledThreadPoolExecutor.java:206) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j ava:886) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 908) > > at java.lang.Thread.run(Thread.java:680)
> > I also have the CoffeeScript module installed in my Play 1.2.3 project. > Don't know if that makes a difference or not.
> > Thanks,
> > Matt
> -- > You received this message because you are subscribed to the Google Groups > "play-framework" group. > To post to this group, send email to play-framework@googlegroups.com. > To unsubscribe from this group, send email to > play-framework+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/play-framework?hl=en.
> I also have the CoffeeScript module installed in my Play 1.2.3 project. > Don't know if that makes a difference or not.
Yes, the Rhino engine in the Less module is incompatible with the Rhino engine in the coffeescript module. You can install less module 0.3-compat to resolve this. See the docs for more info :)
>> I also have the CoffeeScript module installed in my Play 1.2.3 project. >> Don't know if that makes a difference or not.
> Yes, the Rhino engine in the Less module is incompatible with the Rhino > engine in the coffeescript module. You can install less module 0.3-compat > to resolve this. See the docs for more info :)
> Regards,
> Erik
> -- > You received this message because you are subscribed to the Google Groups "play-framework" group. > To post to this group, send email to play-framework@googlegroups.com. > To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
When testing out less processing in play I have seen it blow up if I start the play app and hit http://localhost:localport/some/file.less without visiting any other url.