Skip to content

Conversation

@pdgendt
Copy link
Collaborator

@pdgendt pdgendt commented Dec 5, 2025

The west extension factory is not guaranteed to succesfully set self.cmd in the WestApp instance. For example if a module could not be loaded.

Use the builtin Help command as a fallback.

Fixes #893

The west extension factory is not guaranteed to succesfully set self.cmd
in the WestApp instance. For example if a module could not be loaded.

Use the builtin Help command as a fallback.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.90%. Comparing base (76890ef) to head (4ae3803).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/west/app/main.py 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #894      +/-   ##
==========================================
- Coverage   84.93%   84.90%   -0.03%     
==========================================
  Files          11       11              
  Lines        3444     3445       +1     
==========================================
  Hits         2925     2925              
- Misses        519      520       +1     
Files with missing lines Coverage Δ
src/west/app/main.py 75.77% <0.00%> (-0.14%) ⬇️

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.

Import errors not handled in extension commands

1 participant