I pray that you are all well.
I rebased my working branch onto head yesterday and ever since I've been having the following issues:
1. It seems that the "Eclipse Oxygen 4.7.3a" repository is being fully refreshed (ie, downloading many, perhaps even all, of the bundles) very often at build and/or launch time. This makes rebuilding/launch painfully slow. The "max stale age" is set to 31536000s - surely it shouldn't be updating so much? I don't recall that it was doing this so often until quite recently. I looked at the log for repositories.bnd and saw that it was changed to an OSGi repository on March 22 - it's possible that this is the trigger.
2. Bndtools will frequently crash out during rebuild with the "Problem Occurred" dialog box when you try and launch/rebuild, with an error like this:
Errors occurred during the build.
Errors running builder 'Bndtools Builder' on project 'aQute.libg'.
Build Error!
C:\workspace\bnd\aQute.libg\generated\aQute.libg.jar: The process cannot access the file because it is being used by another process.
Build Error!
C:\workspace\bnd\aQute.libg\generated\aQute.libg.jar: The process cannot access the file because it is being used by another process.
Here is a copy of the event details from the Eclipse error log for a similar issue (same error, but for biz.aQute.bndlib instead of aQute.lib):
eclipse.buildId=4.10.0.I20181206-0815
java.version=1.8.0_131
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_AU
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
bndtools.builder
Error
Fri Jun 14 13:22:05 ACST 2019
Errors running builder 'Bndtools Builder' on project 'biz.aQute.bndlib'.
org.eclipse.core.runtime.CoreException: Build Error!
at org.bndtools.builder.BndtoolsBuilder.build(BndtoolsBuilder.java:270)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:833)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:316)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:319)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:278)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:468)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:574)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2295)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:548)
at org.eclipse.core.internal.resources.Project.build(Project.java:116)
at org.eclipse.debug.core.model.LaunchConfigurationDelegate$1.run(LaunchConfigurationDelegate.java:424)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2295)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2317)
at org.eclipse.debug.core.model.LaunchConfigurationDelegate.buildProjects(LaunchConfigurationDelegate.java:431)
at org.eclipse.debug.core.model.LaunchConfigurationDelegate.buildForLaunch(LaunchConfigurationDelegate.java:127)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:832)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029)
at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1243)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.nio.file.FileSystemException: C:\workspace\bnd\biz.aQute.bndlib\generated\biz.aQute.bndlib.jar: The process cannot access the file because it is being used by another process.
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1126)
at
aQute.lib.io.IO$2.visitFile(IO.java:811)
at
aQute.lib.io.IO$2.visitFile(IO.java:803)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at aQute.lib.io.IO.deleteWithException(IO.java:803)
at aQute.lib.io.IO.deleteWithException(IO.java:784)
at aQute.bnd.build.Project.saveBuild(Project.java:1983)
at aQute.bnd.build.Project.buildLocal(Project.java:1890)
at aQute.bnd.build.Project.build(Project.java:1688)
at aQute.bnd.build.Project.build(Project.java:2316)
at org.bndtools.builder.BndtoolsBuilder.lambda$build$0(BndtoolsBuilder.java:244)
at bndtools.central.Central.bndCall(Central.java:676)
at org.bndtools.builder.BndtoolsBuilder.build(BndtoolsBuilder.java:124)
... 23 more
-----
I've had a similar error with biz.aQute.bndlib. Cleaning/rebuilding doesn't seem to make it go away. I cannot manually delete the file in Eclipse to force a rebuild - I can't even delete it through Explorer or on the command line - I get "resource busy/in use" or equivalent. The only way around it seems to be to exit Eclipse, delete manually, and then restart Eclipse. Which is made even more painful because of the first point (Bndtools re-downloads all of the Eclipse 4.7.3a repo again after restart when it does the "Load repositories").
It is possible that one or both of these issues don't manifest on Linux/Mac - I know that Windows is a bit more aggressive at protecting locked/in-use files from deletion than Linux is.
I assume that this is happening because the running Eclipse/Bndtools instance is binding to the development versions of the bnd libs - however, I don't recall it happening before. It is possible that this is simply because aQute.lib and biz.aQute.bndlib typically don't change very often and they changed in recent days. It seems to have gone away now that I have closed Eclipse, run "rm */generated/*.jar" from the project root to delete all generated jars, and then restarted Eclipse. However, the downloading issue for the Eclipse OSGi repo still remains.