-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
bunx bun
in "access denied" folder crashes but should give better error
#10472
Comments
Both paths in Lines 844 to 863 in e3689e7
should print some better text than "error loading current directory" then in crash_handler.zig's handleRootError, the error can be ignored, similar to how |
Hello, @paperdave I am sossost, a new contributor. Can I solve this problem?? |
This comment was marked as off-topic.
This comment was marked as off-topic.
note, i dont think we can/should fix the second case. that seems to be a bug in the zig standard library. |
@paperdave I modified code based on your advice. Did I write this correctly? |
Looks like this doesn't crash anymore! C:\Documents and Settings>bunx bun
error loading current directory
error: An internal error occurred (CouldntReadCurrentDirectory) |
How can we reproduce the crash?
cd "C:\Documents and Settings"
bunx bun
It makes sense that it errors, but @paperdave said there should be a better message then just crash.
Also in a way as I'm using
bunx
it may not need to have access to the folder?Relevant log output
No response
Stack Trace (bun.report)
Bun v1.1.5 (#10383) on windows x86_64 [BunxCommand]
error: CouldntReadCurrentDirectory
run_command.zig:862
:configureEnvForRun
Allocator.zig:98
:rawFree
cli.zig:1752
:start
Features:
The text was updated successfully, but these errors were encountered: