circuitdojo / zephyr-tools

VSCode Tools for Zephyr
Apache License 2.0
20 stars 5 forks source link

"West" not found when attempting the "Create Project" command on Ubuntu #21

Closed burke-david closed 6 months ago

burke-david commented 6 months ago

Trying to create a new Zephyr project using the extension command Zephyr Tools: Create Project but get the following error: Command failed: west init -l /home/ahe/_code/zephyr_projects/z1/app /bin/sh: 1: west: not found

OS: Ubuntu 22.04.4

git: git version 2.34.1

python3: Python 3.10.12

Zephyr SDK Variant: Vanilla

From within a VS Code terminal, west does seem to be installed:

$ west --version
West version: v1.2.0
jaredwolff commented 6 months ago

@burke-david interesting. Did you run Zephyr Tools: Setup first? I think there's a bug where you may have to run it twice especially if you just started fresh.

burke-david commented 6 months ago

No. I may have misunderstood the order of operations. I thought the Zephyr Tools: Create Project handled that. Running it now. Potentially of interest, before attempting to use your extension, I had run the steps in the Getting Started Guide and was able to build and get the blinky binary loaded on my board.

jaredwolff commented 6 months ago

@burke-david sounds like you have setup the toolchain/SDK separately. The extension should do all of that for you. Nevertheless you should be on rails now to start using it!

burke-david commented 6 months ago

That was it. Closing the issue. Thanks for your help (and the extension!)