You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Sub.elm
type alias Baz2 =
{ fieldA : Int -- 1
}
-- Main.elm
type alias Baz =
{ fieldA : Maybe Foo_Baz2 -- 1
}
Compiler error for reference:
I cannot find a `Foo_Baz2` type:
16| { fieldA : Maybe Foo_Baz2 -- 1
It seems as though the package name is incorrectly being added to the name of the type.
As a workaround, if I comment out the package name from both proto files it seems to generate correct code.
I don't know if this falls into the unsupported 'Packages' listing in the main README.md, since it didn't list details as to why it wasn't supported.
Interestingly, this is very similar to a bug I just reported in the other Elm protoc project: eriktim/protoc-gen-elm#7
The text was updated successfully, but these errors were encountered:
When compiling a single proto file that imports another, the referenced types don't seem to be correct:
sub.proto
:main.proto
:Compiled with:
protoc --elm_out=. main.proto sub.proto
Produces incorrect code:
Compiler error for reference:
It seems as though the package name is incorrectly being added to the name of the type.
As a workaround, if I comment out the package name from both proto files it seems to generate correct code.
I don't know if this falls into the unsupported 'Packages' listing in the main README.md, since it didn't list details as to why it wasn't supported.
Interestingly, this is very similar to a bug I just reported in the other Elm protoc project: eriktim/protoc-gen-elm#7
The text was updated successfully, but these errors were encountered: