Description
Problem
Configuring OpenMS with -DWITH_WNETALIGN=OFF excludes the FeatureLinkerWNet executable from TOPP_executables:
if(WITH_WNETALIGN)
list(APPEND TOPP_executables FeatureLinkerWNet)
endif()However, ToolHandler::getTOPPToolList() registers FeatureLinkerWNet unconditionally. Consequently, the runtime registry advertises a TOPP tool that was not built and cannot be present in the installation.
Both sides were introduced together in commit 44db8ef2d36 / PR #8992.
Impact
- Consumers of
ToolHandler::getTOPPToolList()cannot treat it as the set of available tools for the configured build. - TOPPAS uses the registry to populate its tool tree, so builds without WNet support can display
FeatureLinkerWNetand then fail when the vertex tries to resolve the missing executable. - TOPPView's parameter scanner catches the missing executable and silently skips it, masking the registry/build mismatch.
- The OpenMS-Legacy-GUI portable builds intentionally use
WITH_WNETALIGN=OFF, so they exercise this configuration.
This is already configuration-dependent for GUI tools: ToolHandler removes ExecutePipeline and ImageCreator when WITH_GUI is absent.
Expected behavior
ToolHandler::getTOPPToolList() should omit FeatureLinkerWNet when OpenMS was built with WITH_WNETALIGN=OFF, and include it when WNet support is enabled.
Suggested fix
Guard the registry entry with the existing OPENMS_HAS_WNETALIGN compile definition, which is set on the OpenMS target when WITH_WNETALIGN=ON:
#ifdef OPENMS_HAS_WNETALIGN
tools_map["FeatureLinkerWNet"] =
Internal::ToolDescription("FeatureLinkerWNet", cat_linking);
#endifAdd a ToolHandler_test regression covering both build configurations so the registry and TOPP_executables cannot drift again.
Activity
coderabbitai commentedon Jul 23, 2026
🔗 Related PRs
#9621 - Small refactor of TOPPBase [merged]
#9693 - chore: remove the unused QPXConverter TOPP tool [merged]
#9695 - (osw,percolator): Add Percolator based scoring for OSW results [merged]
#9752 - Add core-only OpenMS build options [merged]
#9774 - Fix installation of TOPPBase public headers [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
[FIX] Guard FeatureLinkerWNet in ToolHandler with WITH_WNETALIGN
[FIX] Guard FeatureLinkerWNet in ToolHandler with WITH_WNETALIGN (#9784)
docs(CHANGELOG): backfill entries for #9784, #9787 + fix stale ToolHa…