nrfconnect vscode extension problems with "Add Build Configuration" wizard and "Actions" view

Hi,

running the latest nrfconnect vscode extension (v2024.9.31) the "Add configuration wizard" comes up and stay blank. Additionally, the Actions view is also empty, while its progress indicator keeps running.

  

Rolling back to v2024.7.13 the build configuration is OK, yet the Actions view is still empty and loading indefinitely.

Rolling back even more the build wizard seems good, while Actions always blank and loading (so maybe these are separate issues)

I'm running an Ubuntu devcontainer in vscode 1.93.0 on Ubuntu 22.04.4 LTS host.

Let me know of any other detail that can help in troubleshooting

Parents
  • I have nrf-connect 2024.11.75-win32-x64

    nrf-connect-extension-pack-2024.9.5

    Zephyr V3.7.99

    Zephyr SDK 0.16.8

    and I am facing same issues. Add Build Configuration is greyed out and I can't seem to activate it. My code builds correctly in CLI with: 

    west build -p always -b nrf52840dk/nrf52840 samples\fund_less3_exer1

    However, I can't run this from the terminal mode of VS code extension as west command is not recognized.

  • Hi ,

    Which operating system do you use?

    Which VS Code version do you have?

    Best regards,
    Dejan

  • Microsoft Windows [Version 10.0.19045.5011]

    Version: 1.95.3 (user setup)
    Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
    Date: 2024-11-13T14:50:04.152Z
    Electron: 32.2.1
    ElectronBuildId: 10427718
    Chromium: 128.0.6613.186
    Node.js: 20.18.0
    V8: 12.8.374.38-electron.0
    OS: Windows_NT x64 10.0.19045

    I have this file:

    C:\ncs\toolchains\ce3b5ff664\cmake\NcsToolchainConfig.cmake that contains:

    # SPDX-License-Identifier: Apache-2.0

    # This file provides Zephyr sdk config version package functionality.
    #

    # Those are Zephyr variables used.
    get_filename_component(NCS_TOOLCHAIN_PATH ${CMAKE_CURRENT_LIST_DIR}/../ ABSOLUTE)
    if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Windows)
    set(NCS_TOOLCHAIN_EXECUTABLE_SUFFIX ".exe")
    set(NCS_TOOLCHAIN_BIN_PATH ${NCS_TOOLCHAIN_PATH}/opt/bin)

    # This will be deprecated, relying on it may fail for NCS 2.0+
    set(NCS_GNUARMEMB_TOOLCHAIN_PATH ${NCS_TOOLCHAIN_PATH}/opt)

    set(NCS_TOOLCHAIN_ENV_PATH "${NCS_TOOLCHAIN_BIN_PATH};${NCS_TOOLCHAIN_BIN_PATH}/Scripts;${NCS_TOOLCHAIN_PATH}/mingw64/bin")
    set(NCS_TOOLCHAIN_PYTHONPATH "${NCS_TOOLCHAIN_BIN_PATH}/;${NCS_TOOLCHAIN_BIN_PATH}/Lib;${NCS_TOOLCHAIN_BIN_PATH}/Lib/site-packages")
    set(NCS_TOOLCHAIN_PYTHON ${NCS_TOOLCHAIN_BIN_PATH}/python.exe)
    set(NCS_TOOLCHAIN_WEST ${NCS_TOOLCHAIN_BIN_PATH}/Scripts/west.exe)
    set(NCS_TOOLCHAIN_GIT ${NCS_TOOLCHAIN_PATH}/bin/git.exe)
    else()
    set(NCS_TOOLCHAIN_EXECUTABLE_SUFFIX "")
    if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux)
    set(NCS_TOOLCHAIN_BIN_PATH ${NCS_TOOLCHAIN_PATH}/usr/local/bin)
    set(NCS_TOOLCHAIN_ENV_PATH "${NCS_TOOLCHAIN_BIN_PATH};${NCS_TOOLCHAIN_PATH}/bin")
    else()
    set(NCS_TOOLCHAIN_BIN_PATH ${NCS_TOOLCHAIN_PATH}/bin)
    set(NCS_TOOLCHAIN_ENV_PATH ${NCS_TOOLCHAIN_BIN_PATH})
    endif()
    set(NCS_TOOLCHAIN_WEST ${NCS_TOOLCHAIN_BIN_PATH}/west)
    set(NCS_TOOLCHAIN_PYTHON ${NCS_TOOLCHAIN_BIN_PATH}/python3)

    # This will be deprecated, relying on it may fail for NCS 2.0+
    set(NCS_GNUARMEMB_TOOLCHAIN_PATH ${NCS_TOOLCHAIN_PATH})

    set(NCS_TOOLCHAIN_GIT ${NCS_TOOLCHAIN_BIN_PATH}/git)
    endif()

    set(NCS_TOOLCHAIN_CMAKE ${NCS_TOOLCHAIN_BIN_PATH}/cmake${NCS_TOOLCHAIN_EXECUTABLE_SUFFIX})
    set(NCS_TOOLCHAIN_NINJA ${NCS_TOOLCHAIN_BIN_PATH}/ninja${NCS_TOOLCHAIN_EXECUTABLE_SUFFIX})
    set(NCS_TOOLCHAIN_DTC ${NCS_TOOLCHAIN_BIN_PATH}/dtc${NCS_TOOLCHAIN_EXECUTABLE_SUFFIX})
    set(NCS_TOOLCHAIN_GPERF ${NCS_TOOLCHAIN_BIN_PATH}/gperf${NCS_TOOLCHAIN_EXECUTABLE_SUFFIX})
    set(NCS_TOOLCHAIN_PROTOC ${NCS_TOOLCHAIN_PATH}/opt/nanopb/generator-bin/protoc${NCS_TOOLCHAIN_EXECUTABLE_SUFFIX})

    set(NCS_TOOLCHAIN_VARIANT zephyr)
    set(NCS_ZEPHYR_SDK_INSTALL_DIR ${NCS_TOOLCHAIN_PATH}/opt/zephyr-sdk)

    # Those are CMake package parameters.
    set(NcsToolchain_FOUND True)

    if("${CMAKE_SCRIPT_MODE_FILE}" STREQUAL "${CMAKE_CURRENT_LIST_FILE}")
    if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Windows)
    set(TMP_TOOLCHAIN_PATH_FILE "${CMAKE_CURRENT_LIST_DIR}/NcsToolchainPath.txt")
    else()
    set(TMP_TOOLCHAIN_PATH_FILE "/tmp/NcsToolchainPath.txt")
    endif()
    file(WRITE ${TMP_TOOLCHAIN_PATH_FILE} ${CMAKE_CURRENT_LIST_DIR})
    execute_process(COMMAND ${CMAKE_COMMAND} -E md5sum ${TMP_TOOLCHAIN_PATH_FILE}
    OUTPUT_VARIABLE MD5_SUM
    )
    string(SUBSTRING ${MD5_SUM} 0 32 MD5_SUM)
    if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Windows)
    execute_process(COMMAND ${CMAKE_COMMAND} -E write_regv
    "HKEY_CURRENT_USER\\Software\\Kitware\\CMake\\Packages\\NcsToolchain\\;${MD5_SUM}" "${CMAKE_CURRENT_LIST_DIR}"
    )
    else()
    file(WRITE $ENV{HOME}/.cmake/packages/NcsToolchain/${MD5_SUM} ${CMAKE_CURRENT_LIST_DIR})
    endif()
    file(REMOVE ${TMP_TOOLCHAIN_PATH_FILE})
    endif()

    Comparing it my ZEPHYR CLI build process:

    (.venv) C:\Users\BSHARMA\Downloads\zephyrproject\zephyr>west build -p always -b nrf52840dk/nrf52840 samples\fund_less3_exer1
    -- west build: making build dir C:\Users\BSHARMA\Downloads\zephyrproject\zephyr\build pristine
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/samples/fund_less3_exer1
    -- CMake version: 3.30.5
    -- Found Python3: C:/Users/BSHARMA/Downloads/zephyrproject/.venv/Scripts/python.exe (found suitable version "3.11.9", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/Users/BSHARMA/Downloads/zephyrproject/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
    -- Found host-tools: zephyr 0.16.8 (C:/Users/BSHARMA/Downloads/zephyrproject/zephyr-sdk-0.16.8)
    -- Found toolchain: zephyr 0.16.8 (C:/Users/BSHARMA/Downloads/zephyrproject/zephyr-sdk-0.16.8)
    -- Found Dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build/zephyr/edt.pickle
    -- Generated zephyr.dts: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build/zephyr/dts.cmake
    Parsing C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/Kconfig
    Loaded configuration 'C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/samples/fund_less3_exer1/prj.conf'
    Configuration saved to 'C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/users/bsharma/downloads/zephyrproject/zephyr-sdk-0.16.8/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Configuring done (22.6s)
    -- Generating done (2.8s)
    -- Build files have been written to: C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build
    ←[92m-- west build: building application
    [1/133] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/Users/BSHARMA/Downloads/zephyrproject/zephyr), build: v3.7.0-4790-g6f64f7755796
    [133/133] Linking C executable zephyr\zephyr.elf
    Memory region Used Size Region Size %age Used
    FLASH: 18684 B 1 MB 1.78%
    RAM: 5696 B 256 KB 2.17%
    IDT_LIST: 0 GB 32 KB 0.00%
    Generating files from C:/Users/BSHARMA/Downloads/zephyrproject/zephyr/build/zephyr/zephyr.elf for board: nrf52840dk

    I see that that NCS is not doing most of the functions needed by Zephyr build process. To start with, Zephyr works in a virtual environment (.venv). I don't see any reference to that in NCS process. I have a feeling that my NCS installation may be incomplete or inadequate.

  • Hi,

    Betta Sharma said:
    I have a feeling that my NCS installation may be incomplete or inadequate.

    How did you install NCS on your computer?

    Betta Sharma said:

    I am facing same issues. Add Build Configuration is greyed out and I can't seem to activate it. My code builds correctly in CLI with: 

    west build -p always -b nrf52840dk/nrf52840 samples\fund_less3_exer1

    However, I can't run this from the terminal mode of VS code extension as west command is not recognized.

    You could try to install appropriate NCS version from the Toolchain Manager, open VS Code from the Toolchain Manager and then try to use Add Build Command and Terminal. Does this make any difference?

    Best regards,
    Dejan

Reply
  • Hi,

    Betta Sharma said:
    I have a feeling that my NCS installation may be incomplete or inadequate.

    How did you install NCS on your computer?

    Betta Sharma said:

    I am facing same issues. Add Build Configuration is greyed out and I can't seem to activate it. My code builds correctly in CLI with: 

    west build -p always -b nrf52840dk/nrf52840 samples\fund_less3_exer1

    However, I can't run this from the terminal mode of VS code extension as west command is not recognized.

    You could try to install appropriate NCS version from the Toolchain Manager, open VS Code from the Toolchain Manager and then try to use Add Build Command and Terminal. Does this make any difference?

    Best regards,
    Dejan

Children
No Data
Related