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

No stack trace for fs.open/lstat/etc. "no such file or dir" error #3972

Open
vjpr opened this issue Aug 4, 2023 · 0 comments
Open

No stack trace for fs.open/lstat/etc. "no such file or dir" error #3972

vjpr opened this issue Aug 4, 2023 · 0 comments
Labels
bug Something isn't working node.js Compatibility with Node.js APIs

Comments

@vjpr
Copy link
Contributor

vjpr commented Aug 4, 2023

What version of Bun is running?

0.7.3

What platform is your computer?

macos

What steps can reproduce the bug?

import fs from 'node:fs/promises'

const p = "fake"

export async function main() {
  const stat = await fs.lstat(p)
  return stat.isDirectory()
}


main().then()
$ bun . 
bun .
ENOENT: No such file or directory
 syscall: "lstat"
   errno: -2


^ NOTE too trailing empty lines...maybe relevant.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

Node seems to not show a stack trace either...

nodejs/node#30944

@vjpr vjpr added the bug Something isn't working label Aug 4, 2023
@vjpr vjpr changed the title No stack trace for fs.lstat failure No stack trace for fs.open/lstat/etc. failure Aug 4, 2023
@vjpr vjpr changed the title No stack trace for fs.open/lstat/etc. failure No stack trace for fs.open/lstat/etc. "no such file or dir" error Aug 4, 2023
@robobun robobun added the node.js Compatibility with Node.js APIs label Aug 4, 2023
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
Projects
None yet
Development

No branches or pull requests

2 participants