-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse JDT does not clean up opened ZipFiles #2
Comments
modmuss50 provided a simple patch: FabricMC/fabric-loom#45 (comment) |
Thanks for investigating this issue! |
We're already discussing bringing it up upstream. What I fear is that it will take a significant time to fix on their behalf, which is why I was suggesting to - if possible - add a .patch to the collection for the time being. |
At the moment, the patches only create a relocated copy of the When we start patching internal JDT classes for Mercury, we need to create a complete relocated copy of JDT, and have all users of Mercury use the relocated JDT packages. JDT is big with many transitive dependencies, so this is something I would like to avoid at any cost. I believe it is easier if you use a temporary workaround on your side, e.g. one of the following:
And let's hope that it does not take that long to fix it upstream. |
Is this something that was ever brought up with the Eclipse team, if so could you link us in - this is definitely something that needs addressing. |
I'm honestly not sure. Sorry. |
This looks like the same issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=547631 |
Seems like it, yes! |
Does adding Mercury/src/main/java/org/cadixdev/mercury/Mercury.java Lines 146 to 150 in 1e2b762
avoid this problem as an (ugly) workaround? If anybody is willing to test if this fixes the problem on Windows, this would be an acceptable workaround imo. Probably doesn't hurt to encourage to garbage collector to clean up the mess JDT produced either. |
I think that's what we've done in Fabric before, and it generally worked, but I don't think it can be considered a guaranteed 100% workaround. @modmuss50? |
It seems to help out with our issues, but its not 100% fix. Using the file leak detector it still shows that a lot of files are being leaked. See this loom issue for what we found out: FabricMC/fabric-loom#45 |
See FabricMC/fabric-loom#45 for examination.
Not sure if upstream will be interested in fixing this, or if a patch should be provided by Mercury, or both - up to you.
The text was updated successfully, but these errors were encountered: