1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Don't error when stack service in unavailable (#61)

The only time the stack service is unavailable is:
1. Stack service hasn't been started yet
2. Stack service has been shutdown
3. Stack service never gets created

All of these cases are configuration error, except (2). In (2) the
stack service isn't available to do source lookup, so instead
of an error, simply return no file (aka null)

Fixes #53
This commit is contained in:
Jonah Graham 2022-09-09 14:50:00 -04:00 committed by GitHub
parent 4a8cf1c6e9
commit c84e47a711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,9 +190,7 @@ public class DsfSourceLookupParticipant extends AbstractSourceLookupParticipant
IStack stackService = fServicesTracker.getService(IStack.class);
if (stackService == null) {
rm.setStatus(new Status(IStatus.ERROR, DsfPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_HANDLE,
"Stack data not available", null)); //$NON-NLS-1$
rm.done();
rm.done((String) null);
return;
}