-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
West doesn't find extension commands when run in a workspace without additional modules #772
Comments
You didn't import anything from the project, but you could add the manifest:
remotes:
- name: zephyrproject-rtos
url-base: https://github.com/zephyrproject-rtos
projects:
- name: zephyr
remote: zephyrproject-rtos
revision: v4.0.0
west-commands: scripts/west-commands.yml |
Maybe the bug is that if you do something like manifest:
remotes:
- name: zephyrproject-rtos
url-base: https://github.com/zephyrproject-rtos
projects:
- name: zephyr
remote: zephyrproject-rtos
revision: v4.0.0
import:
name-allowlist:
- cmsis The extension commands from Zephyr are added implicitly. |
The documentation could be clearer but I think extensions are not implicitly loaded: https://docs.zephyrproject.org/4.0.0/develop/west/extensions.html
This looks more like a bug, @pdgendt maybe file it and close this one? |
The documentation is a bit fuzzy but my interpretation is that using a mapping keyword like |
Thanks @urob!
Yes, definitely looks like it!
I have not scanned every single line but it looks like there is indeed a documentation gap here. It would also be good to check the source code to make sure this is all as intended but so far this all seems consistent. |
Describe the bug
When running west within a workspace that only contains zephyr and no additional modules, west doesn't find the extension commands in /scripts/west_commands.yml. E.g. 'zephyr-export.'
To Reproduce
E.g.
app/west.yml
west help
west zephyr-export
Expected behavior
West should be able to detect and run the extension commands in /zephyr
Impact
Annoyance
Logs and console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: