devcontainers / devcontainers/cli

`devcontainer` tool mingles stdout and stderr

Open
#259 0 comments 0 reactions 1 assignee Claimed by @chrmarti View on GitHub
bug
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

I'm attempting to use `devcontainer` but it is difficult because even in JSON mode, the tool prints Node warnings to stdout:

```
$ devcontainer --log-format=json read-configuration | jq
parse error: Invalid numeric literal at line 1, column 6
```

Looking at the stdout, it's clear that non-JSON content is in the output:
```
$ devcontainer --log-format=json read-configuration | grep -v '^{'
(node:847) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code Helper --trace-deprecation ...` to show where the warning was created)
```

this makes using `devcontainer` from a program more difficult than necessary.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.