Unable to create project from examples in VSCode Extension (IDFGH-14767)
Checklist
- [x] Checked the issue tracker for similar issues to ensure this is not a duplicate.
- [x] Provided a clear description of your suggestion.
- [x] Included any relevant context or examples.
Issue or Suggestion Description
Hello,
I'm trying to create a project from the examples in the VSCode extension and it fails
I give a valid folder but it is complaining about a missing folder.
Thanks for giving a look.
Hello, @giacomo892,
Thank you for reporting this issue. Currently, the Espressif team responsible for the VS Code Extension is working on resolving the path-related problem with the button to create a project from an example.
In the meantime, you can use the following workaround: Download the specific example using the CLI with the following command:
idf.py create-project-from-example "espressif/esp-modbus=2.0.2:tcp/mb_tcp_slave"
For more information, refer to the idf.py create-project-from-example.
After downloading the example: Modify the ../mb_tcp_slave/main/idf_component.yml file to include the mb_example_common dependency using the path:
${IDF_PATH}/examples/protocols/modbus/mb_example_common
Once the dependency is added, you should be able to run idf.py build without any issues. For more details on building the project, refer to the idf.py build.
Let us know if you encounter any further issues!
I'll add the vscode extension bugfix in https://github.com/espressif/vscode-esp-idf-extension/pull/1485 Please take a look if you can!
The PR with the fix was merged https://github.com/espressif/vscode-esp-idf-extension/pull/1485. This issue is being closed