rojo icon indicating copy to clipboard operation
rojo copied to clipboard

Cannot remove directories while Rojo is running

Open Anaminus opened this issue 3 years ago • 1 comments

  1. Create a new file called run.bat with the following content:
@echo off
mkdir test
cd test
rojo init
mkdir src\client\test\foo
start rojo serve
timeout 1
rd src\client\test /s /q
timeout 1
echo Attempting to remove directory
rd src\client\test /s /q
pause

taskkill /F /IM rojo.exe
timeout 1
echo Attempting to remove directory again
rd src\client\test /s /q
if not exist src\client\test echo directory was removed
pause

cd ..
rd test /s /q
  1. Run the run.bat file.
  2. On the first pause, observe that the rd command errors with "Access is denied."
  3. Press any key to continue.
  4. On the next pause, observe that the rd command was successful.

Anaminus avatar Jun 26 '22 16:06 Anaminus

I am guessing that this happens because of Rojo's file watcher.

I wonder what we can do about this. ~~notify is generally unmaintained, but I don't think another library has popped up in its place.~~

Notify has some new 5.0 prereleases that might resolve this issue!

LPGhatguy avatar Jun 30 '22 00:06 LPGhatguy