rust-lang / rustlings

:crab: Small exercises to get you used to reading and writing Rust code!
https://rustlings.cool
MIT License
52.69k stars 10.02k forks source link

Failed to recompiling and running all exercises after all exercises done with error "Too many open files (os error 24)" #2091

Closed hanhiver closed 2 weeks ago

hanhiver commented 2 weeks ago

After I finish all the exercises, rustling will recompiling and running all exercises to make sure that all of them are actually done. However, wait for few minutes, rustlings complain that failed to run the command cargo build ..., and the reason is: Too many open files (os error 24).

image

system: Darwin dhan-m3.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6030 arm64

mo8it commented 2 weeks ago

Oh, I will fix this today and publish a new version.

mo8it commented 2 weeks ago

Until then, you can run ulimit -n 2048 and start running Rustlings again.

mo8it commented 2 weeks ago

I just published a new version 6.3.0 which fixes this issue. Please install it using cargo install rustlings and then try again on the same exercises :D (You don't need to start over)

hanhiver commented 1 week ago

Until then, you can run ulimit -n 2048 and start running Rustlings again.

Yes, it works! Thanks a lot and wait for the final fix.

mo8it commented 1 week ago

@hanhiver As I said, the fix is published. Please run cargo install rustlings and try again without using ulimit.