#278

Scalate tool 1.5.3 hanging

    • Created on: Thu, Dec 08 2011 (6 months ago)
    • Reported by: Yang Zhang
    • Assigned to: -
    • Milestone: -
    • Estimate: None/Small/Medium/Large None
    • Status: New
    • Priority: High (2)
    • Component: scalate-tool
    • Permission type: Public
    On Ubuntu 10.04, running scalate commands directly from the command line seems to never finish. It's not burning CPU or anything, though.

    $ 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.
  • Followers
     
    Ico-users Yang Zhang 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on Apr 11, 2012 @ 05:51pm UTC * 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
    Time Expenditure
    Loading