rojo
rojo copied to clipboard
Cannot remove directories while Rojo is running
- Create a new file called
run.batwith 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
- Run the
run.batfile. - On the first pause, observe that the
rdcommand errors with "Access is denied." - Press any key to continue.
- On the next pause, observe that the
rdcommand was successful.
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!