Repository navigation
without this conversion the whole GUI cannot compile - #9174
Conversation
…pile on my Mac M1 running Tahoe 26.3.1 (25D2128)
|
@LuBox2K The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-04-17 10:04:47.178313662 +0000
+++ AUTHORS.new 2026-04-17 10:04:51.648764785 +0000
@@ -5,17 +5,18 @@
The following authors contributed to OpenMS at some point. For the
authors contributing to a specific piece of code, please refer to
the authors tag in the respective file header.
+ - Michael R. Crusoe
- Achal Bajpai
- Aditya Muzumdar
- Ahmed Khalil
- Alexandra Scherbart
- - Axel Walter
- Alexandra Zerck
- Amanda Wein
- Andreas Bertsch
- Andreas Simon
- Anton Kriese
- Anton Pervukhin
+ - Axel Walter
- Bastian Blank
- Chenghao Zhu
- Chirag Dave
@@ -26,8 +27,8 @@
- Cornelia Friedle
- Daniel Jameson
- Darren Kessner
- - David Wojnar
- David Voigt
+ - David Wojnar
- Dhanmoni Nath
- Dilek Dere
- Dimitri Schachmann
@@ -54,14 +55,14 @@
- Jang Jang Jin
- Jeremi Maciejewski
- Jihyung Kim
- - Johan Teleman
- Johannes Junker
- Johannes Veit
- Johannes von Kleist
+ - Johan Teleman
- Joshua Charkow
- - Julia Thueringer
- Juliane Schmachtenberg
- Julianus Pfeuffer
+ - Julia Thueringer
- Justin Sing
- Katharina Albers
- Khue Nguyen
@@ -73,6 +74,7 @@
- Leon Bichmann
- Leon Kuchenbecker
- Lucia Espona
+ - luik42
- Lukas Mueller
- Lukas Zimmermann
- Marcel Schilling
@@ -84,7 +86,6 @@
- Matteo Pilz
- Matthew The
- Matthias Bernt
- - Michael R. Crusoe
- Michał Startek
- Mohamed Ali
- Nico Pfeifer
@@ -110,11 +111,11 @@
- Sven Nahnsen
- Svetlana Kutuzova
- Swenja Wagner
- - Taraneh Strunk
- Tapasweni Pathak
+ - Taraneh Strunk
+ - Till Englert
- Timo Sachsenberg
- Tinatin Kasradze
- - Till Englert
- Tom David Müller
- Tom Lukas Lankenau
- Tom Waschischeck |
📝 WalkthroughWalkthroughUpdated the protein-to-peptide map lookup in Changes
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/openms_gui/source/VISUAL/SpectraIDViewTab.cpp (1)
303-303: Fix is correct; considerfromQStringfor consistency.The
toStdString()change resolves the Apple clang build error and is functionally equivalent (thestd::stringis implicitly promoted toOpenMS::Stringfor the map key). For consistency with the rest of this file, which already uses thefromQStringhelper for QString→OpenMS::String conversions (e.g. lines 223 and 993), you could write:♻️ Suggested tweak
- for (auto pep_id_ptr : protein_to_peptide_id_map[current_accession.toStdString()]) + for (auto pep_id_ptr : protein_to_peptide_id_map[fromQString(current_accession)])Not a blocker — the current change is fine to merge as-is.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms_gui/source/VISUAL/SpectraIDViewTab.cpp` at line 303, Replace the current conversion using current_accession.toStdString() with the project's helper to maintain consistency: use fromQString(current_accession) as the map key when iterating protein_to_peptide_id_map (e.g., in the loop that references protein_to_peptide_id_map[current_accession...]) so the QString→OpenMS::String conversion matches other uses in this file and avoids implicit promotions.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/openms_gui/source/VISUAL/SpectraIDViewTab.cpp`:
- Line 303: Replace the current conversion using current_accession.toStdString()
with the project's helper to maintain consistency: use
fromQString(current_accession) as the map key when iterating
protein_to_peptide_id_map (e.g., in the loop that references
protein_to_peptide_id_map[current_accession...]) so the QString→OpenMS::String
conversion matches other uses in this file and avoids implicit promotions.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ec92d05e-ae23-41fc-95a1-a0e18ac62d1b
📒 Files selected for processing (1)
src/openms_gui/source/VISUAL/SpectraIDViewTab.cpp
Add two missing entries for changes merged after the last CHANGELOG sync (#9193): - #9196: CMake now accepts Arrow/Parquet 24.x and later; Ubuntu 24.04 CI runners ship Arrow 24.0.0 which broke builds with the previous find_package(Arrow 23) version constraint. pyarrow 24.0.0 excluded from pyOpenMS dependencies (cp310-only wheels on PyPI). - #9174: Fix SpectraIDViewTab GUI compilation failure on macOS Apple Silicon (Tahoe); accession key lookup now converts to std::string after Qt string interop removal. Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
I need to do this fix - else the VISUAL part of the project will not compile:
clang version:
Apple clang version 21.0.0 (clang-2100.0.123.102)
Target: arm64-apple-darwin25.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
MacOS version:
OS: macOS 26.3.1 25D2128 arm64
Host: MacBookPro17,1
Kernel: 25.3.0
Uptime: 29 days, 4 hours, 3 mins
Packages: 341 (brew)
Shell: zsh 5.9
Resolution: 2560x1440
DE: Aqua
WM: Quartz Compositor
WM Theme: Blue (Dark)
Terminal: ghostty
CPU: Apple M1
GPU: Apple M1
Memory: 2871MiB / 16384MiB
compiler output:
`
the fix:
in SpectraIDViewTab.cpp:303:57:
change :
or (auto pep_id_ptr : protein_to_peptide_id_map[current_accession])to :
or (auto pep_id_ptr : protein_to_peptide_id_map[current_accession.toStdSring()])`
... explicitly convert to std::String instead of implicitly converting from Qstring to OpenMS::String
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
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.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit