b3er / idea-archive-browser

IntelliJ IDEA plugin that allows you to browse archives like folders is IDEA.
Apache License 2.0
40 stars 8 forks source link

Does not release file handle on *.zip files #45

Open dschulten opened 2 months ago

dschulten commented 2 months ago

I am building a target/distribution.zip as part of the build. When I open the target folder (without opening the zip using idea-archive-browser) and the idea-archive-browser 0.32 is enabled, it prevents cleaning the project (deleting target) because the zip file is locked. If that happens, there is no way to release the lock other than restarting Intellij, when released with LockHunter, the whole Intelllij freezes.

Workaround: move the zip inside a target/distribution/ folder and do not open it.

dschulten commented 2 months ago

The "Fix" by MirsonMboa seems to be proposed by a bot, has been uploaded by some "ivan" and looks quite suspicious. Do not download or execute.

gr0l commented 3 weeks ago

Facing the same issue. I am using a Maven build. When I open the JAR file in Intellij, afterwards I am unable successfull run `mvn clean``. It always fails with the error, that the file cannot be deleted. When I try to restart Intellij I have to close all Intellij windows and I have to kill the remaining Intellij process by using the Task Manager.

crimsonvspurple commented 2 weeks ago

I really like this plugin but the file handle lock is a big issue.