nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

There are some problems when loading the project with vscode

Hi,

Since NCS 2.0 dosent support SES anymore, I've started using nrf connect in vscode recently.

Here are some problems I met:

1. It takes almost 5 mins to loading everytime I open vscode. Is this normal? What is it loading?

2. A problem is reported on LOG_INF, but the compilation is OK, wondering why.

Looking forward to your reply.

Best wishes,

Joyop

Parents
  • Hello Joyop,

    1: When you say that it takes "almost 5 minutes", is that every time? Can you try to time it, and see if it is exactly the same amount of time, or if it is just a similar amount of time? Just want to check whether there is a timer expiring, or if it actually finds what it is looking for. 

    When it is done loading, does the NRF Connect plugin in VS code work? You are able to build projects? When you close and open VS Code, does it find the projects you were using in the previous session?

    2: This is a known issue, unfortunately. If it is too annoying, you can hover the mouse over it and click "quick fix". I believe that brings up an option to disable squiggly lines. Either way, as long as the project compiles (and it doesn't give you any warnings), then it is just the IDE that doesn't understand it. The compiler understands LOG_INF() just fine.

    Best regards,

    Edvin

  • Hi Edvin,

    Thanks for your reply.

    I repeatedly opened and closed VS code several times and found that most of the time it took two and a half to three minutes for the NRF Connect plugin to load, occasionally more than four minutes .

    Yes, NRF Connect plugin does work when it is done loading. Just curious why it takes so long to load.

    Best wishes,

    Joyop

  • I agree that that is a bit on the extreme end. I tested mine, which takes ~15 seconds. 

    I have reported this internally to see if they have seen this before. However, I know that there are quite a few bug reports sinse the 2.0.0 update. So stay tuned.

    Perhaps you can check if there are any other plugins that are enabled that you can disable. Perhaps they are trying to use the same resources. 

  • Well, it does seem that long loading is abnormal.

    Here are plugins I have installed. Is there any plugins that NCS does not need? I will try to disable it and test again.

    Also, I have a guess, is it related to the network environment? Does NRF Connect plugin need to be used online?

  • Other than checking for updates regularly (which I guess VS code does, and not the plugin itself), I don't think it is dependent on the network environment. I will double check this with the developers.

    Joyop said:
    Here are plugins I have installed. Is there any plugins that NCS does not need?

    click the one called nRF Connect for VS Code Extension Pack, which has the small "8" in the bottom left "corner". This lists all the plugins that are used by nRF Connect for VS Code.

    BR,
    Edvin

Reply
  • Other than checking for updates regularly (which I guess VS code does, and not the plugin itself), I don't think it is dependent on the network environment. I will double check this with the developers.

    Joyop said:
    Here are plugins I have installed. Is there any plugins that NCS does not need?

    click the one called nRF Connect for VS Code Extension Pack, which has the small "8" in the bottom left "corner". This lists all the plugins that are used by nRF Connect for VS Code.

    BR,
    Edvin

Children
Related