-
-
Notifications
You must be signed in to change notification settings - Fork 286
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 support? #13
Comments
After some digging around I can see that it doesn't work on non *nix systems, due to use of mkfifo to create pipes and shell scripts to redirect output from stdin to a java process. Hopefully later I can spend some time to make scalapb a standalone generator, which could then be used with any protoc.exe that supports plugins. |
Here are the instructions on how to use ScalaPB outside SBT. I have tested this on Mac OS X, could you try to port the instructions to Windows and update this bug?
|
It works with some modifications.
I've put a built scalapb on my dropbox: https://www.dropbox.com/s/7wl5lv4j3ehnb7j/scalapb-0.4.9.exe?dl=0 |
Take note that compiler options need to specified as this: --scala_out=java_conversions,flat_packages:c:\foo\out |
I also have windows as my main development environment. Mine was stuck at:
I have GnuWin32 binaries on my PATH. So I think this is the reason I got further. I haven't tried out what happens on IntelliJ IDEA. Tried it again on Cygwin and the issue is definitely about the posixfilepermissions. On windows you don't need to set the file permission to be executable, so if you can limit this to only UNIX (or use chmod directly) I think we will be able to run this. |
is it possible in SBT to temporarily prevent scalapb from compiling the proto data if the OS is Windows? |
…reate a protoc plugin and a communication channel to the JVM. Towards #13.
ScalaPB 0.4.9 should work on Windows. There's one caveat: you'll need Python 2.x installed on your system for the proto compilation step. If Python.exe is not in your PATH there are instructions here http://trueaccord.github.io/ScalaPB/sbt-settings.html on how to configure ScalaPB to find it. |
Hi there!
ScalaPB looks awesome, but does it work on wIndows? If not - what should be modified for it to work on windows?
Also - is there a way to use it in a standalone fashion, not as a part of SBT?
The text was updated successfully, but these errors were encountered: