https://pulumi.com logo
i

icy-controller-6092

06/12/2023, 3:12 AM
Hi all, could there be an issue with the latest release of Pulumi where it makes plugins running in child process believe they should print color output? I am seeing this error since v3.70 where it looks like
@grpc/grpc-js
is correctly printing the port, but unfortunately it's being wrapped in ANSI color codes...
Copy code
pulumi:providers:pulumi-nodejs default  error: pulumi-nodejs (resource) plugin [/opt/homebrew/bin/pulumi-resource-pulumi-nodejs] wrote a non-numeric port to stdout ('0'): strconv.Atoi: parsing "\x1b[33m65010\x1b[39m": invalid syntax
o

orange-policeman-59119

06/13/2023, 9:51 PM
Has someone gotten back to you on this or did you file a GitHub issue? This is pretty surprising
i

icy-controller-6092

06/14/2023, 1:34 AM
Hi friel 🙂 I raised this issue on github: https://github.com/pulumi/pulumi/issues/13150 I have a sneaking feeling this may be due to node v20.3 which I've also noticed has caused problems with other libraries as well, e.g. esbuild.
For now I'm just manually editing
node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js
and wrapping port in a String, e.g.
console.log(String(port));
o

orange-policeman-59119

06/14/2023, 1:48 AM
Thanks for filing the issue!