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

exec function stdout length #15

Open
isJaakko opened this issue Jun 16, 2020 · 2 comments
Open

exec function stdout length #15

isJaakko opened this issue Jun 16, 2020 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@isJaakko
Copy link

I called exec in my Sketch Plugin, but the return value cannot be returned completely, it can only return 4060 characters. Can you help me?

@isJaakko
Copy link
Author

I called exec in my Sketch Plugin, but the return value cannot be returned completely, it can only return 4060 characters. Can you help me?

Simply put, the return value is truncated.

@mathieudutour mathieudutour added bug Something isn't working help wanted Extra attention is needed labels Jun 16, 2020
@codynova
Copy link

codynova commented Jan 10, 2021

Could this be related? nodejs/node#19218 I've been having strange issues with stdout truncation in very particular circumstances. Seems that it's an issue with flushing/buffering.

Do you still have the issue when using spawnSync instead of spawn or exec? You may also be able to work around the issue by piping the output into a file, then reading from that file with fs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants