Skip to content

Refine discoverLayer errMsg#2430

Merged
brondani merged 2 commits intoOpen-CMSIS-Pack:mainfrom
jthuangarm:updateMsg
Apr 8, 2026
Merged

Refine discoverLayer errMsg#2430
brondani merged 2 commits intoOpen-CMSIS-Pack:mainfrom
jthuangarm:updateMsg

Conversation

@jthuangarm
Copy link
Copy Markdown
Contributor

@jthuangarm jthuangarm commented Apr 8, 2026

To address: Open-CMSIS-Pack/vscode-cmsis-solution#119
Updates the error message shown when no compatible software layer is found.

User-facing improvements:

  • Updated the error message in ProjMgrRpcServer.cpp to clarify that no compatible software layer was found in the installed packs and to instruct users to install additional packs before restarting the "Create Solution" flow.

Testing updates:

  • Updated the corresponding test in ProjMgrRpcTests.cpp to expect the new, more descriptive error message.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

Test Results

456 tests   456 ✅  9m 48s ⏱️
  7 suites    0 💤
  1 files      0 ❌

Results for commit bcfb8bc.

♻️ This comment has been updated with latest results.

@jthuangarm jthuangarm marked this pull request as ready for review April 8, 2026 11:55
@jthuangarm jthuangarm requested a review from brondani April 8, 2026 11:55
@jthuangarm
Copy link
Copy Markdown
Contributor Author

@brondani After discussing with @jkrech , we have come up with the following proposed refinement. Do you have any suggestions for the message?

Copy link
Copy Markdown
Collaborator

@brondani brondani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the proposed refinement.
For consistency I suggest to use single quotes instead of double quotes, and I believe a line break \n is needed for correct visualization of the message in two lines.

Comment thread tools/projmgr/src/ProjMgrRpcServer.cpp Outdated
Comment thread tools/projmgr/test/src/ProjMgrRpcTests.cpp Outdated
@brondani brondani merged commit b0d01e9 into Open-CMSIS-Pack:main Apr 8, 2026
76 of 79 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.73%. Comparing base (b0e588e) to head (bcfb8bc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2430   +/-   ##
=======================================
  Coverage   64.73%   64.73%           
=======================================
  Files         145      145           
  Lines       26147    26147           
  Branches    15783    15783           
=======================================
  Hits        16927    16927           
  Misses       7066     7066           
  Partials     2154     2154           
Flag Coverage Δ
projmgr-cov 87.77% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
tools/projmgr/src/ProjMgrRpcServer.cpp 85.27% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jthuangarm jthuangarm deleted the updateMsg branch April 8, 2026 15:30
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