ProtoBuf.jl icon indicating copy to clipboard operation
ProtoBuf.jl copied to clipboard

imported definitions fail due to missing dot in import statement

Open ghost opened this issue 3 months ago • 0 comments

An import statement in a .proto file, such as

import "sub.proto";

results in a statement such as

include("sub_pb.jl")
import sub_pb

in the generated julia code. This fails because it expects a leading dot to import locally defined modules, i.e. it should read:

include("sub_pb.jl")
import .sub_pb

If I manually add the dot (in all required places), everything works fine. A bit surprised nobody else ran into this... or am I missing something?

ghost avatar Sep 05 '25 12:09 ghost