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

[win] process.stdout.write fails #8896

Closed
AlttiRi opened this issue Feb 14, 2024 · 4 comments · Fixed by #8456
Closed

[win] process.stdout.write fails #8896

AlttiRi opened this issue Feb 14, 2024 · 4 comments · Fixed by #8456
Labels
bug Something isn't working node.js Compatibility with Node.js APIs windows An issue that only occurs on Windows

Comments

@AlttiRi
Copy link

AlttiRi commented Feb 14, 2024

What version of Bun is running?

1.0.26

What platform is your computer?

Window 10

What steps can reproduce the bug?

process.stdout.write("");

What is the expected behavior?

What do you see instead?

1 | process.stdout.write("");
    ^
TypeError: Failed to create UVStreamSink: uv_pipe_open(1) src.windows_c.E.ISDIR
 code: "ERR_INVALID_ARG_TYPE"

      at node:stream:155:85
      at NativeWritablePrototypeWrite (node:stream:3706:141)
      at C:\Dev\test\x.mjs:1:1

Additional information

Using process.stdout.write with ANSI escape codes is required to create progress bars, make the console more interactive.

@AlttiRi AlttiRi added the bug Something isn't working label Feb 14, 2024
@Electroid Electroid added node.js Compatibility with Node.js APIs windows An issue that only occurs on Windows labels Feb 14, 2024
@sarturodev
Copy link

sarturodev commented Feb 14, 2024

I think this is the reason why bun repl (and other libs that depend on process.stdout.write) crashes

@paperdave
Copy link
Collaborator

8907 is not related to this.

@paperdave
Copy link
Collaborator

I think this is the reason why bun repl (and other libs that depend on process.stdout.write) crashes

I think so. We'll use the bun repl issue as a tracking issue, but this as the underlying thing blocking repl, vite, etc.

@L4Ph
Copy link

L4Ph commented Feb 20, 2024

This occurred in our repository as well.
It does not occur under the C drive, but on all other drives(like D or F or etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node.js Compatibility with Node.js APIs windows An issue that only occurs on Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants