Describe the bug
The BitBake VS Code extension does not respect the bitbake.pathToBitbakeFolder setting from .devcontainer/devcontainer.json. Even though the path is correctly set and the folder structure contains a valid bitbake/bin/bitbake, the extension tries to access /home/yassine/work/mep/bin/bitbake, which doesn't exist, and throws an ENOENT error.
To Reproduce
Steps to reproduce the behavior:
- Clone a Yocto project inside a DevContainer.
- Inside
.devcontainer/devcontainer.json, set the following:
"bitbake.pathToBitbakeFolder": "${workspaceFolder}/bitbake"
- Ensure the folder
bitbake/bin/bitbake exists.
- Open the project in VS Code (using Remote - Containers).
- Watch the BitBake output during the scan.
Result:
Error: ENOENT: no such file or directory, open '/home/yassine/work/mep/bin/bitbake'
Expected behavior
The extension should follow the value of bitbake.pathToBitbakeFolder and look for bitbake/bin/bitbake inside the folder defined by that setting, not in a hardcoded /bin/bitbake at the root of the workspace.
Desktop
- OS: Ubuntu 20.04 inside container (Docker)
- Host OS: Ubuntu 24.04
- VS Code version: 1.92.2
- Extension version: 2.7.0 (
yocto-project.yocto-bitbake)
- Yocto Version: kirkstone / scarthgap compatible base
- Other: using DevContainer with
.devcontainer/devcontainer.json in root of the project
- Reason for using DevContainer: To enable the yocto-project.yocto-bitbake extension with my Yocto project .
Debug logs
BitBake output logs:
Executing Bitbake command with /bin/bash in /home/yassine/work/mep: ./cmd_wrapper.sh -f conf-mep/[conf-file.conf] 'which devtool bitbake || true'
/home/yassine/work/mep/scripts/devtool
/home/yassine/work/mep/oe-community/poky/bitbake/bin/bitbake
Bitbake settings are sane, eSDK mode: false
request rescanProject
start rescanProject
scanning of project is aborted: Error: ENOENT: no such file or directory, open '/home/yassine/work/mep/bin/bitbake'
BitBake scan result saved to workspace state
Additional context
bitbake/ at project root is a valid folder (not a symlink).
- Inside
bitbake/, the bin/bitbake executable is present.
- It looks like the extension ignores
bitbake.pathToBitbakeFolder completely or doesn't resolve ${workspaceFolder} correctly inside DevContainers.
Describe the bug
The BitBake VS Code extension does not respect the
bitbake.pathToBitbakeFoldersetting from.devcontainer/devcontainer.json. Even though the path is correctly set and the folder structure contains a validbitbake/bin/bitbake, the extension tries to access/home/yassine/work/mep/bin/bitbake, which doesn't exist, and throws an ENOENT error.To Reproduce
Steps to reproduce the behavior:
.devcontainer/devcontainer.json, set the following:bitbake/bin/bitbakeexists.Result:
Expected behavior
The extension should follow the value of
bitbake.pathToBitbakeFolderand look forbitbake/bin/bitbakeinside the folder defined by that setting, not in a hardcoded/bin/bitbakeat the root of the workspace.Desktop
yocto-project.yocto-bitbake).devcontainer/devcontainer.jsonin root of the projectDebug logs
BitBake output logs:
Additional context
bitbake/at project root is a valid folder (not a symlink).bitbake/, thebin/bitbakeexecutable is present.bitbake.pathToBitbakeFoldercompletely or doesn't resolve${workspaceFolder}correctly inside DevContainers.