tuplejump / play-yeoman

Play + Yeoman integration sbt and play plugins
Apache License 2.0
237 stars 58 forks source link

Strange behavior on 0.6.3 because of some parallelization #34

Closed kompot closed 10 years ago

kompot commented 10 years ago

Hi, here are two screenshots. First is 0.6.2, second is 0.6.3.

screen shot 2014-01-14 at 7 18 57

screen shot 2014-01-14 at 7 19 50

Notice the following:

  1. In 0.6.3 SBT immediately responds with OK and only then starts to run actual task.
  2. After completing that task it does not show SBT command prompt (pressing enter does the trick).

Seems like some kind of async is performed. In this case it does not do much harm but there are scenarios (full rebuild when server code should be compiled after client) when it might.

jtammen commented 10 years ago

I am getting the same behavior with 0.6.3. For me this parallelism leads to a situation where a ;clean;dist produces a distribution with a somewhat half-empty ui directory, because the Grunt build seems to be slower that the packaging of the distribution and it does not wait for its completion.

Any idea how to fix this? Is there a way to run dist without automatically running Grunt? Then I could execute the steps manually as a workaround...

milliondreams commented 10 years ago

My Bad! Was running the Process using Process.run which is non blocking. Will fix it and make a new release!

jtammen commented 10 years ago

Thanks (-:

milliondreams commented 10 years ago

This is fixed in v0.6.4 and released (http://notes.implicit.ly/post/75043568591/play-yeoman-0-6-4)