devcontainers / devcontainers/cli

`devcontainer` tool mingles stdout and stderr

Abierto
#259 0 comentarios 0 reacciones 1 asignado Reclamado por @chrmarti Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
3k
Forks
457
Merge medio
13 h 17 min
PR fusionados (30 d)
6

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.