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

Espressif idf refuses to clean shared VisualGDB build directory #6057

Closed
gojimmypi opened this issue Feb 4, 2023 · 1 comment
Closed

Espressif idf refuses to clean shared VisualGDB build directory #6057

gojimmypi opened this issue Feb 4, 2023 · 1 comment
Assignees

Comments

@gojimmypi
Copy link
Contributor

Version

current master branch

Description

Currently the project files for the VisualGDB Extension for Visual Studio are located in the same directory as the main wolfSSL project. For example: wolfssl_test. The problem with this is both the command-line idf.py build and VisualGDB both use the local ./build directory.

Although VisualGDB will gracefully clean the directory, the commandline idf.py fullclean is a bit more prudent, and will not clean the build the directory if (apparently extra) VisualGDB build files are found. The idf build instead gives an error such as this:

Executing action: fullclean
Directory '/mnt/c/workspace-PR/wolfssl/IDE/Espressif/ESP-IDF/examples/wolfssl_test/build' doesn't seem to be a CMake build directory. Refusing to automatically delete files in this directory. Delete the directory manually to 'clean' it.
/mnt/c/workspace-PR/wolfssl/IDE/Espressif/ESP-IDF
Failed in test

I plan to move the project files to a new VisualGDB subdirectory in the currently open "no setup" PR #6018 to better support my upcoming changes to the compileAllExamples.sh.

The VisualGDB build files will then be in sampleProject/VisualGDB/build and the regular idf.py build files will be in sampleProject/build.

This will also help declutter the project directory as more VisualGDB project files are added that target different chipsets and different versions of the ESP-IDF.

@gojimmypi
Copy link
Contributor Author

Now that #6018 has been merged, the wolfSSL Espressif Examples in this repo have had the VisualGDB projects files moved to a subdirectory.

There's still a minor annoyance that if an Espressif build fails, the idf.py fullclean will still complain, but that's beyond the scope of what can be resolved here.

See also wolfSSL/wolfssl-examples#369

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

No branches or pull requests

1 participant