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

"Insufficient data decoding field" on Windows #314

Closed
nichita-pasecinic opened this issue Sep 10, 2022 · 2 comments
Closed

"Insufficient data decoding field" on Windows #314

nichita-pasecinic opened this issue Sep 10, 2022 · 2 comments
Labels
Platform:Windows Windows-related issues.

Comments

@nichita-pasecinic
Copy link

The library should be OS agnostic, but there are issues with decoding (when generating with protoc -I priv/protos --elixir_out=plugins=grpc:./lib/ priv/protos/helloworld.proto)

Even for provided helloworld example

Error trace

** (Protobuf.DecodeError) insufficient data decoding field proto_file, expected <<10, 16, 104, 101, 108, 108, 111, 119, 111, 114, 108, 100, 46, 112, 114, 111, 116, 111, 18, 10, 104, 101, 108, 108, 111, 119, 111, 114, 108, 100, 34, 34, 10, 12, 72, 101, 108, 108, 111, 82, 101, 113, 117, 101, 115, 116, 18, 18, 10, 4, ...>> to be at least 753 bytes
    (protobuf 0.11.0) lib/protobuf/decoder.ex:164: Protobuf.Decoder.decode_delimited/4
    (protobuf 0.11.0) lib/protobuf/decoder.ex:17: Protobuf.Decoder.decode/2
    (protobuf 0.11.0) lib/protobuf/protoc/cli.ex:47: Protobuf.Protoc.CLI.main/1
    (elixir 1.14.0) lib/kernel/cli.ex:131: anonymous fn/3 in Kernel.CLI.exec_fun/2
--elixir_out: protoc-gen-elixir: Plugin failed with status code 1.

It relates to - #279, I don't know why it was closed, it is clearly a bug for Windows OS and it should work on all OSs

@wingyplus
Copy link
Contributor

wingyplus commented Sep 11, 2022

From the last discussion, the library has few bugs on windows like #280 and the maintainer conclude that we should tackle all of it.

See discussion in #279 (comment) for more details.

@whatyouhide
Copy link
Collaborator

Closing this in favor of #279 and #280.

@whatyouhide whatyouhide added the Platform:Windows Windows-related issues. label Nov 14, 2022
@whatyouhide whatyouhide closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2022
@whatyouhide whatyouhide changed the title Doesn't work on windows "Insufficient data decoding field" on Windoes Nov 14, 2022
@whatyouhide whatyouhide changed the title "Insufficient data decoding field" on Windoes "Insufficient data decoding field" on Windows Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform:Windows Windows-related issues.
Projects
None yet
Development

No branches or pull requests

3 participants