Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
milliondreams opened this issue Aug 31, 2013 · 13 comments
Open
Labels
Milestone

Comments

@milliondreams
Copy link
Member

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
Copy link
Contributor

pschulz commented Aug 31, 2013

@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
Copy link
Member Author

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

@pschulz
Copy link
Contributor

pschulz commented Sep 3, 2013

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
Copy link
Member Author

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
Copy link
Contributor

pschulz commented Sep 21, 2013

Do you have any news from the sbt list?

@pschulz
Copy link
Contributor

pschulz commented Sep 28, 2013

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
jline/jline2#103

@milliondreams
Copy link
Member Author

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
Copy link

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
Copy link

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
Copy link
Member Author

@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
Copy link

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

@milliondreams
Copy link
Member Author

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

@sweepy84
Copy link

sweepy84 commented Nov 5, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants