Skip to content

Restlings panicked due to "Permission denied" after I launched it #2229

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

Open
soul2zimate opened this issue Apr 1, 2025 · 1 comment
Open

Comments

@soul2zimate
Copy link

soul2zimate commented Apr 1, 2025

Restlings panicked due to "Permission denied" after I launched it as below (I added RUST_BACKTRACE=full environment variable to display a backtrace):

thread 'main' panicked at src/tools/clippy/src/main.rs:139:10:
could not run cargo: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
stack backtrace:
   0:        0x11026b0c0 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h4b01b56329a0a8fc
   1:        0x10da730e4 - core::fmt::write::h5ac783d2f16cae69
   2:        0x11025efa4 - std::io::Write::write_fmt::h740ae8bf4425e1f4
   3:        0x11026af80 - std::sys::backtrace::BacktraceLock::print::h822ac0a1da741b33
   4:        0x11026d4a4 - std::panicking::default_hook::{{closure}}::h182e34e1427a763f
   5:        0x11026d2a0 - std::panicking::default_hook::hf3c673ab0d652139
   6:        0x11026de8c - std::panicking::rust_panic_with_hook::ha68643d4311595e9
   7:        0x11026da38 - std::panicking::begin_panic_handler::{{closure}}::h0edcf2e5c8ce9186
   8:        0x11026b55c - std::sys::backtrace::__rust_end_short_backtrace::h25049b070cf1a527
   9:        0x11026d6fc - _rust_begin_unwind
  10:        0x11293bce4 - core::panicking::panic_fmt::ha0b5c5252c2f1706
  11:        0x11293c0cc - core::result::unwrap_failed::h49b97238f5f454fc
  12:        0x104360970 - cargo_clippy[198b87c2d23e2101]::main
  13:        0x10435ebc8 - std[c851462af2470259]::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  14:        0x10435ebe0 - std[c851462af2470259]::rt::lang_start::<()>::{closure#0}
  15:        0x1102506a0 - std::rt::lang_start_internal::hd55fd6ef897020fb
  16:        0x104360fe8 - _main

Output
       Welcome to...                      
                 _   _ _                  
  _ __ _   _ ___| |_| (_)_ __   __ _ ___  
 | '__| | | / __| __| | | '_ \ / _` / __| 
 | |  | |_| \__ \ |_| | | | | | (_| \__ \ 
 |_|   \__,_|___/\__|_|_|_| |_|\__, |___/ 
                               |___/      

This exercise compiles successfully. The remaining exercises contain a compiler
or logic error. The central concept behind Rustlings is to fix these errors and
solve the exercises. Good luck!

The file of this exercise is `exercises/00_intro/intro1.rs`. Have a look!
The current exercise path will be always shown under the progress bar.
You can click on the path to open the exercise file in your editor.


Progress: [>---------------------------------------------------------------------------------------------------]   0/94
Current exercise: exercises/00_intro/intro1.rs

h:hint / l:list / c:check all / x:reset / q:quit ? 

My rust and system information:

➜  rustlings git:(main) ✗ rustc --version
rustc 1.85.1 (4eb161250 2025-03-15)

➜  rustlings git:(main) ✗ sw_vers
ProductName:		macOS
ProductVersion:		15.3.2
BuildVersion:		24D81
@Obasoro
Copy link

Obasoro commented Apr 2, 2025

Also experiencing same. rustling init throw up this error.

This command will create the directory `rustlings/`which will contain the exercises.
Press ENTER to continue

Error: Initialization failed

Caused by:
    0: Failed to create the `rustlings/` directory
    1: Permission denied (os error 13)```

xxxxxx@DESKTOP:~/rust-learning$ rustling```

```

     ```  Welcome to...
                 _   _ _
  _ __ _   _ ___| |_| (_)_ __   __ _ ___
 | '__| | | / __| __| | | '_ \ / _` / __|
 | |  | |_| \__ \ |_| | | | | | (_| \__ \
 |_|   \__,_|___/\__|_|_|_| |_|\__, |___/
                               |___/
```
```
The exercises/ directory couldn't be found in the current directory.
If you are just starting with Rustlings, run the command `rustlings init` to initialize it

```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants