Community
Participate
Working Groups
If the connection fails for some reason (e.g. the user goes off line) the indexer will continue to try to run the scanner discovery. This results in continuous errors being logged to the error iog. Indexing should be terminated at this point. org.eclipse.core.runtime.CoreException: Error running Sync Builtin Specs Detector at org.eclipse.ptp.internal.rdt.sync.cdt.core.SyncGCCBuiltinSpecsDetector.runProgramForLanguage(SyncGCCBuiltinSpecsDetector.java:179) at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForLanguage(AbstractBuiltinSpecsDetector.java:623) at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForEachLanguage(AbstractBuiltinSpecsDetector.java:496) at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector$1.runInWorkspace(AbstractBuiltinSpecsDetector.java:430) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: org.eclipse.core.runtime.CoreException: Error opening connection. at org.eclipse.ptp.internal.rdt.sync.cdt.core.remotemake.SyncCommandLauncher.execute(SyncCommandLauncher.java:225) at org.eclipse.cdt.internal.core.BuildRunnerHelper.build(BuildRunnerHelper.java:238) at org.eclipse.ptp.internal.rdt.sync.cdt.core.SyncGCCBuiltinSpecsDetector.runProgramForLanguage(SyncGCCBuiltinSpecsDetector.java:170) ... 5 more Caused by: org.eclipse.ptp.remote.core.exception.RemoteConnectionException: Session.connect: java.net.UnknownHostException: trestles.sdsc.edu at org.eclipse.ptp.internal.remote.remotetools.core.RemoteToolsConnection.open(RemoteToolsConnection.java:412) at org.eclipse.ptp.internal.rdt.sync.cdt.core.remotemake.SyncCommandLauncher.execute(SyncCommandLauncher.java:222) ... 7 more
Do the runs eventually stop? If so, I think I know what may be happening. There is a flag that is set after the first run that prevents additional runs. However, additional runs already queued will still proceed.
I added a lock to prevent multiple threads from running scanner discovery at the same time. Please test and see if this helps. You may still have multiple runs, but there will hopefully be fewer of them.
Closing.