Troubleshooting & Known Issues
Use this page when the extension is installed but a workspace is not building, debugging, or registering the way you expect.
No Active Workspace / Setup Warning Appears
Section titled “No Active Workspace / Setup Warning Appears”If IDE for Zephyr starts without an active managed workspace and without ZEPHYR_BASE, it shows a warning and some actions may stay unavailable.
What to do
Section titled “What to do”Choose the path that matches your setup:
- Run
Zephyr IDE: Workspace Setupor openZephyr IDE: Overviewif you want the extension to manage your workspace. - Run
Zephyr IDE: Setup Workspace from Current DirectoryorZephyr IDE: Setup Workspace from External Directoryif the workspace already exists. - Set
ZEPHYR_BASEbefore launching VS Code if you want to use an external Zephyr environment. See External Environments. - If you intentionally work without either flow, set
zephyr-ide.suppressWorkspaceWarningtotrue.
Host Tools Missing or Build Dependencies Not Found
Section titled “Host Tools Missing or Build Dependencies Not Found”Typical symptoms:
- build commands fail before CMake or Ninja starts
- the Setup Panel reports missing Python, CMake, DTC, Ninja, or compiler tools
- the extension cannot create the workspace virtual environment
What to do
Section titled “What to do”- Run
Zephyr IDE: Check Build Dependenciesto re-scan your PATH. - Open
Zephyr IDE: Host Toolsand install any missing tools on supported platforms. - If your platform is not supported for automatic installation, follow the Host Tools Installation guide and reopen VS Code.
- If the tools are already installed but not detected, click Mark Tools as Available in the Setup Panel to bypass the check.
SDK or Toolchain Not Available
Section titled “SDK or Toolchain Not Available”Typical symptoms:
- west setup completes, but builds fail because no SDK/toolchain is found
- a shared workspace expects architectures that are not installed locally
What to do
Section titled “What to do”- Open
Zephyr IDE: SDK Management. - If your project declares required toolchains in
.vscode/zephyr-ide.json, runZephyr IDE: Install Toolchains from zephyr-ide.json. - If the toolchain list is wrong or incomplete, adjust it with
Zephyr IDE: Modify zephyr-ide.json Toolchains. - If your workspace depends on extra Python packages, blobs, or requirements files, open
Zephyr IDE: Zephyr IDE Managerand install the missing items there. - If the SDK or toolchains are already installed on your machine, point the extension to them by setting
zephyr-ide.toolchainDirectoryin your VS Code settings to the directory containing your Zephyr SDK installation.
Debug Session Fails Immediately
Section titled “Debug Session Fails Immediately”Typical symptoms:
- clicking Debug opens a notification instead of starting a session
- the debug adapter launches, but the target runner is wrong
- an attach/debug action works for one probe but not another
What to do
Section titled “What to do”- Make sure
marus25.cortex-debugis installed. - If you use Black Magic Probe, consider installing
mylonics.bmp-debugfor Zephyr thread awareness. - Run
Zephyr IDE: Open runners.yaml for Active Buildto inspect the actual runner information produced by west. - If the board defaults are fine but your local probe is different, use
Zephyr IDE: Select Active Runner Profile (Local)orZephyr IDE: Set Local Slot Runner Bind. - If the build is a sysbuild build, use
Zephyr IDE: Set Active Sysbuild Imageto pick the correct image/domain before flashing or debugging. - Inspect error messages in the Debug Console panel and in the Output window — select Zephyr IDE from the output channel dropdown for extension-level diagnostics.
Workspace Registration Feels Stuck or Out of Sync
Section titled “Workspace Registration Feels Stuck or Out of Sync”Use the recovery command that matches the problem:
| Command | When to use it |
|---|---|
Zephyr IDE: Deactivate Workspace | Stop using the current workspace for this VS Code window, but keep it registered for later. |
Zephyr IDE: Unregister Workspace | Remove a workspace from the extension’s registry entirely. |
Zephyr IDE: Re-run West Setup | Re-run workspace initialization/update after a partial clone, manifest change, or failed setup step. |
Zephyr IDE: Reset Workspace | Clear workspace setup state and start the managed setup flow from scratch. |
Zephyr IDE: Reset Active Installation | Clear the currently selected Zephyr installation when switching between managed and external environments. |
Zephyr IDE: Skip West Setup | Mark the workspace as ready when west has already been prepared outside the extension. |
Dev Containers with WSL and Windows Folders
Section titled “Dev Containers with WSL and Windows Folders”When using dev containers in WSL, keep your workspace inside the Linux filesystem (for example /home/username/project) rather than inside mounted Windows paths such as /mnt/c/Users/....
This is a limitation of the west boards flow and affects workspace initialization and board detection.
Workaround
Section titled “Workaround”Move the workspace to a Linux-native path:
# Instead of /mnt/c/Users/yourname/projects# Use /home/yourname/projectsReporting Issues
Section titled “Reporting Issues”If the problem is still unresolved:
- Check GitHub Issues for an existing report.
- Include:
- steps to reproduce
- expected behavior
- actual behavior
- VS Code version
- IDE for Zephyr version
- operating system
- whether the workspace is managed by the extension or provided via
ZEPHYR_BASE