Scalate tool 1.5.3 hanging
On Ubuntu 10.04, running scalate commands directly from the command line seems to never finish. It's not burning CPU or anything, though.
But when I run 'run index.jade' from the scalate REPL, it spits out the rendered template.
Also, may or may not be related, but 'exit' (or ^D) sometimes hangs as well.
$ cat index.jade
!!!
html
head
title Price series browser
link(rel='stylesheet' type='text/css' href='main.css')
body
#canvas
script(src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js')
script(src='http://mbostock.github.com/d3/d3.js?2.6.0')
script(src='http://documentcloud.github.com/underscore/underscore-min.js')
script(src='http://epeli.github.com/underscore.string/dist/underscore.string.min.js')
script(src='main.js')
$ scalate run index.jade
(nothing happens; same thing with scalate 'run index.jade')
^C
But when I run 'run index.jade' from the scalate REPL, it spits out the rendered template.
Also, may or may not be related, but 'exit' (or ^D) sometimes hangs as well.
Leave a comment
on 2012-04-11 19:51 *
By dan.oxlade
I noticed a (perhaps) similar hang with scalate, which lead me here.
I tracked it down to the PresentationCompilerThread started by ScalaCompiler.compiler in TemplateEngine.
I don't know why these hangs don't seem to affect the test suite but the way I've fixed them is by invoking askShutdown on scala.tools.nsc.interactive.Global (the type of ScalaCompiler.compiler) in a lifecycle method. In my case Servlet.destroy
I tracked it down to the PresentationCompilerThread started by ScalaCompiler.compiler in TemplateEngine.
I don't know why these hangs don't seem to affect the test suite but the way I've fixed them is by invoking askShutdown on scala.tools.nsc.interactive.Global (the type of ScalaCompiler.compiler) in a lifecycle method. In my case Servlet.destroy