Lost the ability to build pristine on VSCode

Hi, 

I was developing on Visual Studio Code earlier, and for some reason, I cannot build pristine. If I try to edit the build configuration, it never loads, and if I try to copy the build command to do it manually, I get the following error message

"Error running command nrf-connect.copyBuildCommand: Cannot read properties of undefined (reading 'filter'). This is likely caused by the extension that contributes nrf-connect.copyBuildCommand."

Even if I type the build command itself, it will build without adding in 'pristine', but when I do add it, it just hangs. 

This was the first time I have done any code changes for a few days, so assumed it was the latest update on the extensions, so rolled them all back to last stable ones, but that hasn't fixed it. 

Thanks, 

Damien

Parents
  • Hello,

    Difficult to know exactly what is the problem here, but deleting the build folder may be a good idea. Also compare with an existing nRF Connect SDK sample if you see the same problem, or if it's ony related to your project in specific.

    In general here are some steps you can try out:

    1. make sure to update the VS code exention, the latest (as of today) is "2024.9.87".

    2. in Add/Remove programs in Windows:

    -Uninstall all nRF Command Line tools, then installed the latest nRF Command line tools (currently 10.24.2).
    -Uninstall all J-Link, then download the SEGGER J-Link v7.94e directly from segger.com, but install it by running it from command line with the following command: "JLink_Windows_V794e_x86_64.exe -InstUSBDriver=1" this will ensure the driver is installed.
    -I assume you have also previously downloaded and added nrfutil to the path, you can upgrade it by running "nrfutil self-upgrade" from command line. Afterwards run for instance "nrfutil device list" to see if the boards are listed.

    Afterwards it should look like this:

    If you still have problem, try to generate and upload the support information like this:

    If you see information in the file that you do not wish to be seen by others, please make sure to remove it before sharing.

    Kenneth

Reply
  • Hello,

    Difficult to know exactly what is the problem here, but deleting the build folder may be a good idea. Also compare with an existing nRF Connect SDK sample if you see the same problem, or if it's ony related to your project in specific.

    In general here are some steps you can try out:

    1. make sure to update the VS code exention, the latest (as of today) is "2024.9.87".

    2. in Add/Remove programs in Windows:

    -Uninstall all nRF Command Line tools, then installed the latest nRF Command line tools (currently 10.24.2).
    -Uninstall all J-Link, then download the SEGGER J-Link v7.94e directly from segger.com, but install it by running it from command line with the following command: "JLink_Windows_V794e_x86_64.exe -InstUSBDriver=1" this will ensure the driver is installed.
    -I assume you have also previously downloaded and added nrfutil to the path, you can upgrade it by running "nrfutil self-upgrade" from command line. Afterwards run for instance "nrfutil device list" to see if the boards are listed.

    Afterwards it should look like this:

    If you still have problem, try to generate and upload the support information like this:

    If you see information in the file that you do not wish to be seen by others, please make sure to remove it before sharing.

    Kenneth

Children
No Data
Related