Skip to content

Add OPENMS_GUI_DLLAPI export to Annotation1DItem class - #9831

Merged
timosachsenberg merged 1 commit into
developfrom
claude/openms-pr-9822-failure-yrgj72
Jul 30, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/openms-pr-9822-failure-yrgj72

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

This change adds the OPENMS_GUI_DLLAPI macro to the Annotation1DItem class declaration to properly export the class symbols for Windows DLL builds. The necessary header file OpenMS_GUIConfig.h is included to provide the macro definition.

This is a minimal change required for proper cross-platform library visibility and Windows DLL export/import declarations.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI

Click to expand If your PR is failing you can check out

Advanced commands (admins / reviewer only)

Click to expand
  • /reformat (experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

https://claude.ai/code/session_011EATcabUjUEkm1na6SxV2Y

Summary by CodeRabbit

  • Bug Fixes
    • Improved compatibility and availability of annotation functionality across supported builds.
    • No changes to the user-facing annotation interface or behavior.

Annotation1DPeakItem_test is the first external consumer to instantiate the
header-only template Annotation1DPeakItem<Peak1D>. Instantiating it emits
direct references to the base class Annotation1DItem's out-of-line members
(constructors, destructor, getText(), drawBoundingBox_()) and its
vtable/typeinfo into the test object file. Annotation1DItem lacked the
OPENMS_GUI_DLLAPI export macro, so those symbols were not part of the
exported interface of libOpenMS_GUI and the test failed to link with
undefined references on every platform.

Add OPENMS_GUI_DLLAPI to the class (and include OpenMS_GUIConfig.h, which
provides the macro) to export the base-class symbols.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_011EATcabUjUEkm1na6SxV2Y
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: fce2bd39-93dd-4fb4-80fa-deca879f6bb7

📥 Commits

Reviewing files that changed from the base of the PR and between 193b2e7 and fc40276.

📒 Files selected for processing (1)
  • src/openms_gui/include/OpenMS/VISUAL/ANNOTATION/Annotation1DItem.h

📝 Walkthrough

Walkthrough

Annotation1DItem now includes the GUI configuration header and applies OPENMS_GUI_DLLAPI to its class declaration for DLL export/import visibility.

Changes

Annotation visibility

Layer / File(s) Summary
Add DLL visibility to Annotation1DItem
src/openms_gui/include/OpenMS/VISUAL/ANNOTATION/Annotation1DItem.h
Includes OpenMS_GUIConfig.h and decorates the Annotation1DItem class with OPENMS_GUI_DLLAPI.

Poem

I’m a rabbit by the GUI gate,
Watching symbols cross their state.
A macro hops into the hall,
Helping Annotation1DItem stand tall.
Export, import—ears held high! 🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: exporting Annotation1DItem with OPENMS_GUI_DLLAPI.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/openms-pr-9822-failure-yrgj72

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@timosachsenberg
timosachsenberg merged commit 26cdff9 into develop Jul 30, 2026
12 checks passed
@timosachsenberg
timosachsenberg deleted the claude/openms-pr-9822-failure-yrgj72 branch July 30, 2026 11:33
timosachsenberg added a commit that referenced this pull request Aug 3, 2026
…9835, #9836 (#9841)

Backfills the QPX export spec-conformance series, the macOS PKG
notarization fix, and the Windows GUI DLL export fix that merged into
develop without changelog entries. #9805 and #9821 were intentionally
skipped (test-only / comment-only, no user-visible behavior change),
and #9818 was already documented.


Claude-Session: https://claude.ai/code/session_0118Yt3TZEMzhMhH6FwZPDVt

Co-authored-by: Claude <[email protected]>
timosachsenberg added a commit that referenced this pull request Aug 3, 2026
Backfills CHANGELOG entries for three merged PRs not yet covered by
the recent #9826 backfill: the QPX feature/pg export spec-conformance
fix, the macOS installer notarization fix, and the Windows GUI DLL
export fix for Annotation1DItem.


Claude-Session: https://claude.ai/code/session_01RSKvhJ2dEd2zE4dohdv8af

Co-authored-by: Claude <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Aug 4, 2026
Two independent backfill commits (#9833 and #9841) each added an
entry for these three PRs, so every one of them was listed twice
with slightly different wording. Kept the more detailed version from
#9841 and dropped the duplicate.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016kxG5jpwHZaYGfrhU2wLHg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants