Skip to content

Commit

Permalink
remove fixed bnd workspace problem markers
Browse files Browse the repository at this point in the history
This fixes an annoyance, that Bndtools Workspace Problem Markers in /cnf/build.bnd where not removed from Eclipse's Problem-View, although you have fixed a problem.
The reason was that model.getErrors() and model.getWarnings() used by org.bndtools.builder.MarkerSupport.setMarkers(Processor, String) where never cleared, so the errors and warnings where always re-added.

Signed-off-by: Christoph Rueger <[email protected]>
  • Loading branch information
chrisrueger committed Dec 2, 2024
1 parent 1fb6873 commit 12017f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bndtools.builder/src/org/bndtools/builder/CnfWatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public IStatus runInWorkspace(IProgressMonitor arg0) throws CoreException {
MarkerSupport ms = new MarkerSupport(cnfProject);
ms.deleteMarkers("*");
ms.setMarkers(workspace, BndtoolsConstants.MARKER_BND_WORKSPACE_PROBLEM);
// clear errors/warnings, to avoid re-adding
workspace.clear();
} catch (Exception e) {
return new Status(IStatus.ERROR, BndtoolsBuilder.PLUGIN_ID,
"error during workspace refresh",
Expand Down

0 comments on commit 12017f9

Please sign in to comment.