Visual Studio 1.8.0 can't resolve variable

Can anyone help me with this:

I'm trying out the 'threads' sample under Visual Studio 1.8.0. Not having much luck. I'm a newbie and have followed the Video tutorials to the letter and tried everything, including a complete new install of 1.8.0, but whenever I try to do anything in the ACTIONS list (build, pristine build, flash etc) I get this error.

If I try running commands from 'west', eg west build, west flash, they all work fine.

Parents Reply Children
  • Hello!

    Soupdragon said:
    often the 'Flash' and 'Erase Flash' ACTIONS are not available.
    Soupdragon said:
    I get a variety of problems, that all seem to go away if I exit Visual Studio and then restart it.

    It will look a bit more organized when you press the nRF Connect for VS Code extention logo (second from the bottom on the left there).

    That should also make the actions available, and might also explain why the "issues" are gone when you restart it from nRF Connect for Desktop. But in case it doesn't, see my response below.

    Best regards,

    Elfving

  • Alas no luck. I've done a full re-installation as per instructions. Then I followed the nFR Connect for VS Code 'to the letter'. Very carefully. The only difference is that I used the latest 1.8.0 instead of 1.6.1. Everything seemed to go well until I tried to build the first example based on 'Blinky'.  See the error below:

    west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update'.....

    I don't know what else I can do. I'm beginning to feel Nordic products are not for me because the toolchain is too flaky,



  • OK I've given up with VS Code 1.8.0.

    Installing 1.7.1 seems to solve all my problems. Happy to close this ticket.

  • Hey again John!

    I am glad that you have gotten at least one of the NCS versions to work. Let me know if you want to work more on getting version 1.8 to work though, it should be as easy as any of the others.

    When it comes to the issue you have described below, did you remember to add a build configuration? It seems like you have forgotten to create one, and it is required to build a project.

    Best regards,

    Elfving

Related