tuplejump / play-yeoman

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

Cannot run play app on Windows if this plugin is active #16

Closed pschulz closed 11 years ago

pschulz commented 11 years ago

E:\PlayLearn>play run [...] [error] java.io.IOException: Cannot run program "grunt" (in directory "E:\PlayLearn\ui"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden

E:\PlayLearn>whereis grunt Found at C:\DOKUME~1\pschulz\Anwendungsdaten\npm\grunt Found at C:\DOKUME~1\pschulz\Anwendungsdaten\npm\grunt.cmd

E:\PlayLearn>grunt -version grunt-cli v0.1.9

I'm still on Windows XP. The project depends on play 2.1.2 at the moment. As you can see above, grunt is available, also in the systems path environment. Any clue how to get it started?

milliondreams commented 11 years ago

Will take a look at it when I can get hands on a Windows system, or will ask someone who has access to it.

pschulz commented 11 years ago

Or tell me how I can support you. I'm unfortunately new to scala programming, sbt and playframework.

milliondreams commented 11 years ago

As far as I understand, "Cannot run program "grunt" (in directory "E:\PlayLearn\ui"): CreateProcess error=2"

means that it is not able to find 'grunt' for some reason. I will need to debug.

pschulz commented 11 years ago

Exactly. I assume it (jvm, java / scala runtime library or whatever) is not aware of the PATHEXT environment variable, that contains a list of file name extensions that identify executable for the command line interpreter. By default it is set to at least PATHEXT=.COM;.EXE;.BAT;.CMD ...that is the reason why you can execute helloworld.exe just by calling helloworld from the windows commandline (instead of its full name), it is cool, isn't it?

pschulz commented 11 years ago

Okay, got it working with #20. But as described in the pull request the interactions with the you command do not work.

milliondreams commented 11 years ago

Let us close this issue an open a new one to track the progress on interaction with yo/bower/npm commands launched in play console.