How to set linux as target in Vscode?
Posted: Wed Jul 09, 2025 6:58 am
Hello everyone,
I am trying to write host tests for a custom component. I need set target as linux in order to execute the tests on the host machine. However I could not manage to set target to linux. In my environment, esp32c3 was already set as a target. When I try to select the target from the bottom bar, I select linux and then I'm asked for an openocd configuration path.
If I don't specify, I can't finish the selection process target as linux. I also tried setting via CLI but I get the following message and could not set the target:
What should I do to set the target as linux? Thank you.
I am trying to write host tests for a custom component. I need set target as linux in order to execute the tests on the host machine. However I could not manage to set target to linux. In my environment, esp32c3 was already set as a target. When I try to select the target from the bottom bar, I select linux and then I'm asked for an openocd configuration path.
If I don't specify, I can't finish the selection process target as linux. I also tried setting via CLI but I get the following message and could not set the target:
Code: Select all
$ idf.py --preview set-target linux
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/disk/Projeler/ESP-Components/relay_chn/test_apps/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: linux, new sdkconfig will be created.
Target 'linux' specified on command line is not consistent with target 'esp32c3' in the environment.