Questions about the nrf connect tool on VS code.

Hello, All,

I am using the nrf connect tool on VS code for development, but i have a questions:

The west and some other python plug-ins used by this tool are installed on the local computer uniformly. When I develop or maintain multiple ncs versions at the same time, it will be very inconvenient.

There may be some other python development software on the computer. These plug-ins are installed on the computer to cause conflicts, which leads to the need to switch the python environment all the time.

Before installing this tool, I have been using a virtual environment. Different projects have different environment configurations. West and other plug-ins are installed in the virtual environment, so there will be no conflicts caused by different projects.

I hope to be able to run these west commands in a virtual environment, so I need to enter the corresponding virtual environment before compiling the firmware, I don’t understand the task setting of your compile command, so I can’t enter the virtual environment first.

So I want to ask what type of terminal the nrf connect tool uses. Can I have a chance to enter a virtual environment before running "BUILD" or "FLASH".

If allowed, what should I do? Or is there any other way to solve it?

Hope to get your reply soon, thank you !

Parents
  • Hi,

     

    I am using the nrf connect tool on VS code for development, but i have a questions:

    The west and some other python plug-ins used by this tool are installed on the local computer uniformly. When I develop or maintain multiple ncs versions at the same time, it will be very inconvenient.

    There may be some other python development software on the computer. These plug-ins are installed on the computer to cause conflicts, which leads to the need to switch the python environment all the time.

    Before installing this tool, I have been using a virtual environment. Different projects have different environment configurations. West and other plug-ins are installed in the virtual environment, so there will be no conflicts caused by different projects.

    I hope to be able to run these west commands in a virtual environment, so I need to enter the corresponding virtual environment before compiling the firmware, I don’t understand the task setting of your compile command, so I can’t enter the virtual environment first.

    So I want to ask what type of terminal the nrf connect tool uses. Can I have a chance to enter a virtual environment before running "BUILD" or "FLASH".

    If allowed, what should I do? Or is there any other way to solve it?

    Hope to get your reply soon, thank you !

    This is a scenario that we are aware of, but do not have specific documentation/howto's on.

    Which OS are you using?

    Could you try to start vscode from within the environment where all PATHs are set to your wanted toolchain? This should help vscode to inherit the same environment.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    I am using the nrf connect tool on VS code for development, but i have a questions:

    The west and some other python plug-ins used by this tool are installed on the local computer uniformly. When I develop or maintain multiple ncs versions at the same time, it will be very inconvenient.

    There may be some other python development software on the computer. These plug-ins are installed on the computer to cause conflicts, which leads to the need to switch the python environment all the time.

    Before installing this tool, I have been using a virtual environment. Different projects have different environment configurations. West and other plug-ins are installed in the virtual environment, so there will be no conflicts caused by different projects.

    I hope to be able to run these west commands in a virtual environment, so I need to enter the corresponding virtual environment before compiling the firmware, I don’t understand the task setting of your compile command, so I can’t enter the virtual environment first.

    So I want to ask what type of terminal the nrf connect tool uses. Can I have a chance to enter a virtual environment before running "BUILD" or "FLASH".

    If allowed, what should I do? Or is there any other way to solve it?

    Hope to get your reply soon, thank you !

    This is a scenario that we are aware of, but do not have specific documentation/howto's on.

    Which OS are you using?

    Could you try to start vscode from within the environment where all PATHs are set to your wanted toolchain? This should help vscode to inherit the same environment.

     

    Kind regards,

    Håkon

Children
Related