Skip to content

ToolHandler lists FeatureLinkerWNet when WITH_WNETALIGN is disabled #9783

Description

@timosachsenberg

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 FeatureLinkerWNet and 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);
#endif

Add a ToolHandler_test regression covering both build configurations so the registry and TOPP_executables cannot drift again.

Activity

  1. coderabbitai commented on Jul 23, 2026

    @coderabbitai
    Contributor
    🔗 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 plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 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:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. added a commit that references this issue on Jul 23, 2026
    bab4474
  3. added a commit that references this issue on Jul 23, 2026
    cb84612
  4. added a commit that references this issue on Jul 24, 2026
    d3b74e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions