-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conversion to JSON fails on Windows #16
Comments
It looks like I don't have a windows system nearby right now... There are two options: 1) figure out what's going wrong exactly and fix it -- I will need your help with this but I think it is worth a try; 2) build piqi under cygwin by following unix build instructions -- hopefully, cygwin build works better (I am assuming you are using cygwin, correct me if I am wrong). If you decide to go with option 1, there are a couple of things to try:
Alternatively, modify this line to capture server's stderr to a file and also |
Thanks Anton. I spent a bit of time seeing how far I could get with option 1. I read through the test_piqi_server script and tried to replicate the functionality on a native Windows console. Thus far, I've been able to see the following:
I'm not an OCaml expert - is this information useful in debugging the issue? |
This is very helpful. Thank you! Let me find a windows machine and I'll figure out the rest. There are a couple of weird things and it would be easier to investigate further having a custom build. |
Sounds good, thanks a lot! :) Let me know if there's any other debugging On Sat, Jan 10, 2015 at 5:00 AM, Anton Lavrik [email protected]
|
Should be fixed now in piqi-0.6.11 -- there were a couple of Windows compatibility problems. Can you verify it is working? piqi-erlang is pointed to the newest piqi-binary |
I can verify that switching to 0.6.11 fixes the problem for me. Thanks! :) On Sun, Jan 25, 2015 at 12:55 AM, Anton Lavrik [email protected]
|
After alavrik/piqi#47 was fixed (thanks!), it is now possible to successfully start the Erlang piqi application on Windows (via
piqi:start().
). However, trying to convert a piqi message to JSON fails. (In the examples below,server_response_piqi
is a piqi module that has been generated withpiqic-erlang
).When running
server_response_piqi:gen_server_response(MyMessage, json)
repeatedly, theepipe
error seems to be most common, but I also occasionally see a different error when running the same command:Similar errors occur when trying to convert to XML rather than JSON. The same commands above work as expected on linux.
The text was updated successfully, but these errors were encountered: