tuplejump / play-yeoman

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

[Windows] Cannot interact with yeoman commands run on play console #21

Open milliondreams opened 11 years ago

milliondreams commented 11 years ago

After #20 we now support yeoman commands on windows too.

We still have an issue when a yeoman command requires additional input from user.

pschulz commented 11 years ago

@milliondreams can you reproduce the issue on Linux or Mac as well or does it work there? FYI tested with

yo -version 1.0.0-rc.1.4

milliondreams commented 11 years ago

It works on linux... not sure about Mac though

pschulz commented 11 years ago

Okay, could you please give some more information to the play, sbt and yo versions involved? Tested at my side with:

play --version sbt launcher version 0.12.2

play [...] play! 2.1.2 (using Java 1.7.0_25 and Scala 2.10.0),

yo --version 1.0.0-rc.1.4

milliondreams commented 11 years ago

I use, Play - 2.1.1 (2.2 from the source build) Yo - 1.0.4

sbt is 0.12.2 for Play 2.1.1 and 0.13 for 2.2.

I use sbt rather than the play command, can that be an issue. Will checkout later today....

pschulz commented 10 years ago

Do you have any news from the sbt list?

pschulz commented 10 years ago

I found some hints on the net to this issue. It could be an error in jline, which is also used by sbt and scala itself. https://issues.scala-lang.org/browse/SI-7703 https://issues.scala-lang.org/browse/SI-7061 https://github.com/jline/jline2/issues/103

milliondreams commented 10 years ago

Patrick, are you working on this? Probably you could post to jline and sbt user groups and get a response. I am sorry, am not much help on this. I don't use a Windows system. Will try to rope in other help too!

potgieterdl commented 10 years ago

Same issue with play 2.2.1, sbt 0.13.

Fresh install of everything on windows 7. Cant interact with console at all. Cant even get out of it. need to kill window.

pietrotull commented 10 years ago

I get the same. Win 8, Play 2.2.2, scala 2.10.3, java 1.7. Same thing happens on both cmd & powershell. No way to interact with the console. Seems quite old, any news on this?

milliondreams commented 10 years ago

@pietrotull @potgieterdl

There have been some updates on this in JLine. In the Scala REPL issue here - https://issues.scala-lang.org/browse/SI-7703

It should now work with if you use -Djline.WindowsTerminal.directConsole as the JVM param in the script to start SBT.

Can you confirm this? and will be great if you could send a pull request adding a note to the documentation on how to get this working for windows.

pietrotull commented 10 years ago

Thanks for the tip. I'll give it a go when I get back to office next week.

milliondreams commented 10 years ago

@pietrotull @potgieterdl Please give the latest release 0.7.0 a try. Do use -Djline.WindowsTerminal.directConsole while starting sbt.

sweepy84 commented 9 years ago

Also not working for me unfortunately, even with -Djline.WindowsTerminal.directConsole. Any ideas? It is simply unusable.