Skip to content
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

Code generation error #200

Closed
rssdev10 opened this issue Jul 1, 2022 · 2 comments
Closed

Code generation error #200

rssdev10 opened this issue Jul 1, 2022 · 2 comments

Comments

@rssdev10
Copy link

rssdev10 commented Jul 1, 2022

Getting issue with code generation for https://github.com/milvus-io/milvus-proto

using ProtoBuf
ProtoBuf.protoc(`-I=proto --julia_out=jlout proto/milvus.proto`)
ERROR: unresolved name milvus.proto.common.Status at scope 
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] qualify_in_hierarchy(name::String, scope::ProtoBuf.Gen.Scope)
    @ ProtoBuf.Gen ~/.julia/dev/ProtoBuf/src/gen.jl:158
  [3] qualify_in_hierarchy(name::String, scope::ProtoBuf.Gen.Scope) (repeats 3 times)
    @ ProtoBuf.Gen ~/.julia/dev/ProtoBuf/src/gen.jl:156
  [4] scoped_svc_type_name(scope::ProtoBuf.Gen.Scope, typ_name::String)
    @ ProtoBuf.Gen ~/.julia/dev/ProtoBuf/src/gen.jl:613
  [5] generate_svc(io::IOBuffer, errio::IOBuffer, stype::ProtoBuf.GoogleProtoBuf.ServiceDescriptorProto, scope::ProtoBuf.Gen.Scope, svcidx::Int64, exports::Vector{String})
    @ ProtoBuf.Gen ~/.julia/dev/ProtoBuf/src/gen.jl:630
  [6] generate_file(io::IOBuffer, errio::IOBuffer, protofile::ProtoBuf.GoogleProtoBuf.FileDescriptorProto)
    @ ProtoBuf.Gen ~/.julia/dev/ProtoBuf/src/gen.jl:775
  [7] codegen(srcio::Base.PipeEndpoint)
    @ ProtoBuf.Gen ~/.julia/dev/ProtoBuf/src/gen.jl:863
  [8] (::ProtoBuf.Gen.var"#21#22")()
    @ ProtoBuf.Gen ~/.julia/dev/ProtoBuf/src/gen.jl:916
  [9] with_debug
    @ ~/.julia/dev/ProtoBuf/src/gen.jl:899 [inlined]
 [10] gen()
    @ ProtoBuf.Gen ~/.julia/dev/ProtoBuf/src/gen.jl:914
 [11] top-level scope
    @ none:1
--julia_out: protoc-gen-julia: Plugin failed with status code 1.

The Status is actually present inside internally included file common.proto

Code generation for common.proto and schema.proto works without issues.

@zsz00
Copy link
Contributor

zsz00 commented Aug 8, 2022

I had the same problem, hope to repair this. @tanmaykm

@Drvi
Copy link
Member

Drvi commented Aug 18, 2022

Similar, #137, the good news is that ProtoBuf.jl 1.0 should be able to resolve the issue you are having, but there is currently no support for Services and RPCs. This will be tracked in a separate issue. Closing for now.

@Drvi Drvi closed this as completed Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants