Closed jeongyeham closed 1 year ago
Hi, thanks for the PR! Could you please try the following version if it works correctly? OpenOCD + ESP32 Support for embedded development-0.3.2.jar.zip
It works well! I first checked that the command line from plugin to OpenOCD was correct. And paths are shown as relative path.
Thank you very much for testing! I have changed a few more things because string comparison like this does not work in Java. You need to use String#equals
instead.
I will upload the new version in a few minutes
Thanks for pointing out the syntax and grammar errors of my code, it helps me a lot when I'm learning java!
Why PR?
I've found that the intent of these variables, whether
String root
orVirtualFile contentRoot
, is to get the currently open project directory. However, because of CMake, the current project directory is compiled into modules and merged into ESP-IDF. So in fact, it points to the root directory of the entire ESP-IDF, not the project directory we opened.How?
CMake's build directory is globally unique, so I found the build directory first and then got the parrent directory to find the current working directory. Also I added some code to make it faster to index relevant directories.