Issues in VS Code, unable to build or debug or run any task.

I have the sample blinky project open in VS Code. Connect SDK installation is complete. I am able to build from the command line using west build, but the Connect VS code extension fails to start build process. When I press any of the tasks/ actions such as build or debug, VS code shows loading icons but the terminal remains empty and nothing else happens. Same with creating or editing build configurations. Please see the below screen recording...

I tried reinstalling NCS, the extensions and VS Code itself but still not working.

Ubuntu 20.04 LTS
NCS 2.5.1
Toolchain 2.5.1

target : nRF52840DK

UPDATE: Downgrading VS code fixed the issue


Seems like the issue is caused by something related to latest version of VS Code.

Downgrading VS Code to 1.83 fixed the issue for me.

Parents
  • Hi,

    It seems that your device is not seen as connected in VS Code. Did VS Code v1.83, which fixed the issue for you, show device as connected? 

    Which newer version of VS Code (newer that v1.83) did not work for you?

    Could you try to leave Optimization Level unchanged (set to "use project default")? Is there any difference in result?

    Best regards,
    Dejan

  • The device was not connected at the time of the screen recording... But it would show up as usual but none of the actions would work( build, debug, flash etc..). 

    Everything works great up until v1.84

    v1.85 is the culprit it seems... 

    No difference in the optimisation levels or project config options. Building and flashing works as usual when I do it from the terminal

    Let me know if you need any additional info, I would like to help in any way to find this issue

Reply
  • The device was not connected at the time of the screen recording... But it would show up as usual but none of the actions would work( build, debug, flash etc..). 

    Everything works great up until v1.84

    v1.85 is the culprit it seems... 

    No difference in the optimisation levels or project config options. Building and flashing works as usual when I do it from the terminal

    Let me know if you need any additional info, I would like to help in any way to find this issue

Children
Related