question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin output is unparseable

See original GitHub issue

Hello,

I’m hitting a problem with my plugin when the generated code gets larger than a certain amount. I’m getting the following error:

Plugin output is unparseable: \020\001z\266\302\036\n\020service.twirp.tsz\240\302\036
{content_removed}

you can reproduce this simply by trying and returning a large string in the content of a file

"hello".repeat(100000)

I suspect it is something to do with the max buffer size, but so far I haven’t found anything to increase that. Any idea?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
timostammcommented, Jul 26, 2021

Thank you for investigating this 🙏

I’d say the workaround belongs into plugin-base, even if it needs some dirty casts. PR is most welcome!

1reaction
timostammcommented, Jul 26, 2021

Do you know how to reproduce?

This works for me:

mkdir issue134

cd issue134

cat <<EOF > x.proto
syntax = "proto3";

service authentication {
  rpc A1(Am) returns (Am);
  rpc A2(Am) returns (Am);
  rpc A3(Am) returns (Am);
  rpc A4(Am) returns (Am);
  rpc A5(Am) returns (Am);
  rpc A6(Am) returns (Am);
  rpc A7(Am) returns (Am);
  rpc A8(Am) returns (Am);
  rpc A9(Am) returns (Am);
  rpc A10(Am) returns (Am);
  rpc A11(Am) returns (Am);
  rpc A12(Am) returns (Am);
  rpc A13(Am) returns (Am);
  rpc A14(Am) returns (Am);
  rpc A15(Am) returns (Am);
  rpc A16(Am) returns (Am);
  rpc A17(Am) returns (Am);
  rpc A18(Am) returns (Am);
  rpc A19(Am) returns (Am);
  rpc A20(Am) returns (Am);
}

message Am {}
EOF

npm init -y

npm i @protobuf-ts/plugin@next

npx protoc -I . x.proto --ts_out .
Read more comments on GitHub >

github_iconTop Results From Across the Web

protoc-gen-go: plugin output is unparseable #1054 - GitHub
I'm experiencing the same "Plugin output is unparseable" on mac, however, with "protoc-gen-dart". I think a solution to this issue would be ...
Read more >
Flutter/dart Protobuf - Plugin output is unparseable
I get similar issue with golang on windows, protoc not work properly with error "Plugin output is unparseable" and ...
Read more >
protoc plugin generator using Java - Google Groups
--my_out: protoc-gen-my: Plugin output is unparseable. Redirecting the output of 'protoc-gen-my' script to a file and then
Read more >
php_out:protoc-gen-php:plugin output is unparseable.
Background. The business needs to communicate with Protobuffer. client:php. Server:c++.
Read more >
protoc-gen-php: Plugin output is unparseable. - brookin - 博客园
背景业务需要用protobuffer 进行通讯。client: phpserver: c++在github 上找到Protobuf-PHP(https://github.com/drslump/Pro.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found