-
Notifications
You must be signed in to change notification settings - Fork 57
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
Error in generated Haskell file from latest compile-proto-file
binary
#119
Comments
compile-proto-file
compile-proto-file
binary
@nwaywood: What version of The only issue I found was a missing |
I am on this commit 3f6dd6f |
@nwaywood: Hmmm, that's weird because I believe that I'm using that same revision, too. Could you attach the generated |
Here is the
from the |
@Gabriel439 I'm also getting a very similar error, I'm currently using the latest patch on master
|
I got the same error, tried to downgrade swagger to 2.3.1.1 and got different error
|
@Gabriel439 I see some code in proto3-suite related to this bug (ToSchema instance of ByteString), but seems it's not working in my case. What do you think, how I can workaround it? |
I actually know which types are causing these errors, here is example |
Not sure it is right solution or not, but I worked it around with this orphan instance |
I just updated to the latest version of the This is the only issue I am now having with the latest binary, the original issue is no longer happening :) |
Fix is up here: #140 |
@Gabriel439 I just tried #140 and I am still getting the error described here |
In case some more detail may be useful for you... This is the snippet of code that I need to add to one of the generated And as @tim2CF mentioned, I am assuming that the reason why I'm only having issues with that generated file and none of my other ones is because that source proto file contains a |
@nwaywood: I think I will need more detailed reproduction instructions, because I'm no longer able to reproduce the problem for the |
@Gabriel439 yes I don't think the issue will happen with the If you don't mind using my project, https://github.com/hyperledger-labs/fabric-chaincode-haskell, then reproduction is very easy.
The stack build will fail on an error similar to the one @tim2CF described here. In the case of my project, it is failing due to this |
I just finished doing the Arithmetic tutorial here https://github.com/awakesecurity/gRPC-haskell/blob/master/examples/tutorial/TUTORIAL.md
When I run it using the
Arithmetic.hs
file that was provided in the repo everything works perfectly.However when I try and run it using a freshly generated
Arithmetic.hs
file fromcompile-proto-file
, it fails to compile with the following error:If I manually edit the generated
Arithmetic.hs
file and change lines 161 and 216 fromHsJSONPB.SwaggerObject},
to
Hs.Just HsJSONPB.SwaggerObject},
It works again.
The text was updated successfully, but these errors were encountered: