esp-idf and emacs with flycheck-mode: esp_log.h: No such file or directory
Posted: Fri Feb 19, 2021 10:53 am
My trouble is getting flycheck-mode (in emacs) to properly work for ESP32 development.
For example, if I have at the top of my file, flycheck-mode reports esp_log.h: No such file or directory. The real problem is that flycheck-mode (at least for c) stops at the first error, and so won't report anything further.
I have tried searching online for this error, and have tried altering the flycheck-clang-include-path variable to include, for example "~/esp/esp-idf/components/log/include" (which, as far as I can tell, is where esp_log.h is located), but the errors remains the same. (This is also the case if I use the absolute path, no symlinks.)
Installing esp-idf, including the export.sh, compiling & flashing all work OK (on the command line inside an emacs shell, in my case). My only problem is getting flycheck-mode to work with this setup.
If there's anyone who knows how to get flycheck-mode working in this development environment, I'd much appreciate your help.
For example, if I have
Code: Select all
#include "esp_log.h"
I have tried searching online for this error, and have tried altering the flycheck-clang-include-path variable to include, for example "~/esp/esp-idf/components/log/include" (which, as far as I can tell, is where esp_log.h is located), but the errors remains the same. (This is also the case if I use the absolute path, no symlinks.)
Installing esp-idf, including the export.sh, compiling & flashing all work OK (on the command line inside an emacs shell, in my case). My only problem is getting flycheck-mode to work with this setup.
If there's anyone who knows how to get flycheck-mode working in this development environment, I'd much appreciate your help.