markw65 / prettier-extension-monkeyc

A VSCode extension for Garmin MonkeyC
MIT License
11 stars 1 forks source link

can't export project, alarm: ERROR: Internal: Error: ENOTEMPTY: directory not empty, rmdir #16

Closed nnkn closed 3 months ago

nnkn commented 3 months ago
Starting optimization step...
ERROR: Internal: Error: ENOTEMPTY: directory not empty, rmdir 'd:\sync_DATA\GarminProjects\ManOfSteel\bin\optimized\group015-release\source\source-416'
Error: ENOTEMPTY: directory not empty, rmdir 'd:\sync_DATA\GarminProjects\ManOfSteel\bin\optimized\group015-release\source\source-416'

hi , it always alarm this, when I manually deleted the folder and try again , and it happs again. I tried to export via Monkey C: Export Project, it works well. I also tried to restart the computer, switch the computer(with the same project), it failed again and again. what can I also do? and what else I can offer to get rid of this?

thanks very much !

markw65 commented 3 months ago

I've never seen anything like that... based on the name, I'm guessing that d:\sync_DATA is mapped to some kind of cloud storage? Microsoft OneDrive, or DropBox or iCloud, for example?

I'm hoping that's causing the problem, and if you can tell me exactly how things are setup, I might be able to repro and work around it...

nnkn commented 3 months ago

I've never seen anything like that... based on the name, I'm guessing that d:\sync_DATA is mapped to some kind of cloud storage? Microsoft OneDrive, or DropBox or iCloud, for example?

I'm hoping that's causing the problem, and if you can tell me exactly how things are setup, I might be able to repro and work around it...

yes, I used syncthing to sync files between computers. I also tried stopping the syncthing and then do the same job. still the same result. I've tried to stop any programs I can stop. and it didn't work. I tried to delete the files in bin/, sometimes I deleted success, sometimes success after I close the vscode. when I do the job with empty bin/ , problem still.... I think there is something locked the file , but I can't figure out what it is.

nnkn commented 3 months ago

Maybe I should reinstall the Windows and do it again? but it's a great job....

nnkn commented 3 months ago

I don't know why, I just exit the huorong anti virus software (https://www.huorong.cn/), and then restart the vscode , I can successfully export the project.... I don't know why! I don't know why!! I don't know why!!! because I have never! ever!! exited this software before , and export well, before yesterday~!!!!!! image

sorry for interruption, maybe it did something I don't know ...