Kconfig and DTS extension not working

Hi all, I'm using nRF Kconfig and DeviceTree extension in VSCode. When I try to activate context, dropdown menu doesn't offer any options. Are there any additional configuration steps necessary for these extensions to work? I've used trond-snekvik extensions some time ago and that worked out of the box
Also when trying to add build folder with nRF Kconfig: Kconfig: Add build folder from command palette I get message build does not appear to be a valid build directory.
Note that I'm not using main extension, only these 2. I just want to be able to autocomplete Kconfig and follows nodes in DTS like I did with trond-snekvik extensions.
Parents
  • Hi, 

    Please install nRF Connect for VS Code extension to fix the issue.

    Regards,
    Amanda H.

  • I don't need nRF Connect for VS Code. I'm using vanilla Zephyr without nRF Connect SDK. These extensions worked fine previously, why did they break now?

  • I've installed Python Environment Manager and selected the virtual environment in my project. nRF Connect extension doesn't seem to use the virtual environment and fallbacks to my global zephyr workspace.

    [09:30:37] Command failed: west list --all --format "{name};{posixpath};{revision};{url};{cloned}"
    Traceback (most recent call last):
      File "/home/marin/.local/bin/west", line 5, in <module>
        from west.app.main import main
    ModuleNotFoundError: No module named 'west'

    It works if I activate virtual env from my terminal and then launch vscode. I guess extension is picking up from terminal environment current python environment.

    After this Kconfig extensions works, but device tree extension is still unresponsive. Running nRF DeviceTree: Set Active Context from command palette doesn't do anything.

  • Since neither Devicetree nor Kconfig extension ever correctly picked up the context we realised it is never 100% possible to rely on guesses and the help of both the main extension and better build system support is needed (SDK 2.8+). Therefore we can't recommend and we also don't test these extensions standalone.

    I also recommend to use nRF Connect SDK Toolchains because of more controlled environment and ease of use. The main extension should work perfectly well with vanilla Zephyr.

Reply
  • Since neither Devicetree nor Kconfig extension ever correctly picked up the context we realised it is never 100% possible to rely on guesses and the help of both the main extension and better build system support is needed (SDK 2.8+). Therefore we can't recommend and we also don't test these extensions standalone.

    I also recommend to use nRF Connect SDK Toolchains because of more controlled environment and ease of use. The main extension should work perfectly well with vanilla Zephyr.

Children
No Data
Related