Repository navigation
[FIX] Guard FeatureLinkerWNet in ToolHandler with WITH_WNETALIGN - #9784
Merged
timosachsenberg merged 2 commits intoJul 23, 2026
Merged
Conversation
ToolHandler::getTOPPToolList() now conditionally registers FeatureLinkerWNet only when WITH_WNETALIGN is enabled at build time. This mirrors the existing WITH_GUI pattern for ExecutePipeline and ImageCreator. - Add #cmakedefine WITH_WNETALIGN to config.h.in - Guard FeatureLinkerWNet entry in ToolHandler.cpp with #ifdef WITH_WNETALIGN - Add regression test in ToolHandler_test.cpp for both configurations Closes #9783 Co-authored-by: timosachsenberg <[email protected]>
Copilot
AI
changed the title
[WIP] Fix ToolHandler to not list FeatureLinkerWNet when WITH_WNETALIGN is disabled
[FIX] Guard FeatureLinkerWNet in ToolHandler with WITH_WNETALIGN
Jul 23, 2026
timosachsenberg
approved these changes
Jul 23, 2026
timosachsenberg
marked this pull request as ready for review
July 23, 2026 07:33
5 tasks done
timosachsenberg
pushed a commit
that referenced
this pull request
Jul 23, 2026
The comment claimed the returned map lists "every official TOPP tool shipped with this OpenMS release", but #9784 made FeatureLinkerWNet's registration conditional on WITH_WNETALIGN (mirroring the pre-existing WITH_GUI guard for ExecutePipeline/ImageCreator), so the map depends on build-time options. Reworded to reflect that. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017jjyuN9XkxRP73MJMo2jQK
Merged
5 tasks done
timosachsenberg
added a commit
that referenced
this pull request
Jul 24, 2026
…ndler doxygen comment (#9789) * docs(CHANGELOG): add entries for #9784, #9787 Backfill missing CHANGELOG entries: the ToolHandler FeatureLinkerWNet/ WITH_WNETALIGN guard fix (#9784, closes #9783) and the removal of the broken check-tool-handler/check-authors-file pull_request_target workflows (#9787, closes #9785). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017jjyuN9XkxRP73MJMo2jQK * docs: fix stale ToolHandler::getTOPPToolList() doxygen comment The comment claimed the returned map lists "every official TOPP tool shipped with this OpenMS release", but #9784 made FeatureLinkerWNet's registration conditional on WITH_WNETALIGN (mirroring the pre-existing WITH_GUI guard for ExecutePipeline/ImageCreator), so the map depends on build-time options. Reworded to reflect that. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017jjyuN9XkxRP73MJMo2jQK * docs: fix getTOPPToolList() .ttd merge description (CodeRabbit) The comment claimed external .ttd entries are "not merged here", but getTOPPToolList() does merge internal .ttd-discovered tools in via getInternalTools_() after the hard-coded registry, throwing on a name collision. Caught by CodeRabbit review on PR #9789. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017jjyuN9XkxRP73MJMo2jQK * docs: drop "official" from getTOPPToolList() @brief (CodeRabbit) The @brief said it lists every "official" tool, contradicting the very next sentence (and the class-level doc) which distinguishes official hard-coded tools from internal .ttd-discovered ones that this method also merges in. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017jjyuN9XkxRP73MJMo2jQK --------- Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ToolHandler::getTOPPToolList()unconditionally registersFeatureLinkerWNeteven when built with-DWITH_WNETALIGN=OFF, causing the runtime registry to advertise a tool that doesn't exist on disk. TOPPAS then shows it in the tool tree and fails when invoked.Mirrors the existing
WITH_GUIpattern forExecutePipeline/ImageCreator:config.h.in— Add#cmakedefine WITH_WNETALIGN 1so the option propagates to all library consumersToolHandler.cpp— Guard theFeatureLinkerWNetentry with#ifdef WITH_WNETALIGNToolHandler_test.cpp— Regression test covering both configurations