Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot delete file after requiring it on Windows in 18.104.22.168.rc1 #3055
Looks like this broke between pre1 and pre2:
It doesn't matter if the
Found by running Sequel's specs.
I didn't test on a *nix, but it's unlikely to be a problem there as *nix allows deletion of files that are in use.
No problem on Windows 8 with MRI:
I don't know the implemenation details of require, but I wouldn't think it would retain a handle to the file once it was loaded.
Strange. Lexer changed between those two but it should not retain a reference to anything which would retain a HANDLE. Perhaps some IO fixes are hanging onto a handle in an IO table somewhere? We do use IO.gets for a small amount of parsing now so it could ??? who knows...just brainstorming but thanks for heads up.