-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
pbts
output is corrupted (missing random end of file)
#863
Comments
Does this also happen when you run the CLI the intended way? |
yes it does |
Looking to code https://github.com/dcodeIO/protobuf.js/blob/master/cli/pbts.js#L113
the but when executed the |
Found the issue! I added the version to our package.json, but the automatic install of it was quite a trap! Could you consider not installing it automatically for random version, but add it to package.json so yarn.lock would catch it for next time, and not break it from day to day as happened? Thanks! =) |
Came here to report the same thing. For some reason, when protobufjs and google-gax are installed at the same time, my (Not an immediate blocker for me anymore, as switching from the google-cloud meta-package to only what I needed — which happened to not depend on google-gax — seems to have mitigated the issue.) Relevant output:
|
Does this fix it? Iirc, a similar issue was the reason for the 'maxBuffer' option to be added, so this might still be related somehow. |
Edit: Actually, upon further investigation. it doesn't seem to be consistently working at all. It works a bit more often than it did before, but still produces the bad output more often than not. Could this be related to yesterday's new release of Node.js? Edit 2: Nope, pinning to Node 8.1.3 (with and without 952c7d1) didn't have any effect. |
It takes a bit longer to run, but here's my temporary workaround for anyone else who needs it, which seems to be reliable enough as a short-term fix:
|
Exactly same issue here. { npm: '3.10.10', |
Did you tried to add [email protected] to your package.json? something is wrong running the newer version it in the |
I got the same problem, but using [email protected] can be fixed |
protobuf.js version: 6.6.5 and 6.8.0
running this lines of code on MacOs node v8:
the output from
pbts
(./adaptor/posapi-model/.generated/PosApi.d.ts
) is corrupted (cut off randomly and missing the end)The text was updated successfully, but these errors were encountered: