Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create project from examples in VSCode Extension (IDFGH-14767) #100

Open
3 tasks done
giacomo892 opened this issue Mar 3, 2025 · 2 comments · May be fixed by espressif/vscode-esp-idf-extension#1485
Open
3 tasks done
Assignees

Comments

@giacomo892
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • 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

Image

Image

I give a valid folder but it is complaining about a missing folder.

Image

Thanks for giving a look.

@github-actions github-actions bot changed the title Unable to create project from examples in VSCode Extension Unable to create project from examples in VSCode Extension (IDFGH-14767) Mar 3, 2025
@Godoy-Octavio
Copy link

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!

@brianignacio5
Copy link

I'll add the vscode extension bugfix in espressif/vscode-esp-idf-extension#1485 Please take a look if you can!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants