-
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
Module decleration is only for one _pb file #227
Comments
Hey @schnetzlerjoe can you share the code you use to generate the julia definitions? E.g. what I did was to collect all proto files at once like this:
NOTE: I needed #228 to parse some RPC definitions with trailing semicolons. |
Alright looks like your looping method actually ends up pointing to the correct modules! However, I am now obtaining a Those missing proto files you are referring to are ./proto/gogoproto/gogo.proto: https://github.com/gogo/protobuf/blob/master/gogoproto/gogo.proto and ./proto/google/api/annotations.proto: https://github.com/googleapis/googleapis/blob/master/google/api/annotations.proto ./proto/google/api/http.proto: https://github.com/googleapis/googleapis/blob/master/google/api/http.proto ./proto/google/api/httpbody.proto: https://github.com/googleapis/googleapis/blob/master/google/api/httpbody.proto ./proto/google/protobuf/any.proto: https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/any.proto ./proto/google/protobuf/timestamp.proto: https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto Once you pull them into there respective locations. Try compiling. It will work now but when I call include("../output/defundlabs/defundlabs.jl")
function MsgSubmitInterqueryResult()
io = IOBuffer();
e = ProtoEncoder(io);
encoded = encode(e, defundlabs.InterqueryResult("", "", "", [], cosmos.height(0,0), 10, true, true))
println(encoded)
end I get a |
@Drvi Can confirm above it is a naming class with the module keyword within Julia. Any suggestions to fix that? |
@schnetzlerjoe Yes, when I put all the dependencies into place and compile the code I can see that we don't validate module names and we hit a problem when we try to import code that touches the generated version of this file https://github.com/cosmos/cosmos-sdk/blob/main/proto/cosmos/params/module/v1/module.proto#L3 I'll look into it, thanks for reporting the issue! |
I have directories with nested directories and such and am compiling dozens of .proto files at a time. When I do this I noticed that in the module definition for each directory (the non prefixed _pb.jl files), it is only including one of the _pb files although the module has 4+.
You can test this by looping through all the directories and compiling the .proto files here https://github.com/cosmos/cosmos-sdk/tree/main/proto and check the declaration files.
cosmos.jl
for example.The text was updated successfully, but these errors were encountered: