Initialization of a new project (“a”) in VSCode for ESP32 for Arduino Framework works, but choosing “Espressid IoT Development Framework” stalls. A window opens “Could not initialize project” with a lot of text, essentially saying finally:
Configuring incomplete, errors occurred!
Fatal: no Git repository (or some other parent path until mount point.
GIT_DISCOVERY_ACROSS_FILESYSTEM not set
Searching the net for GIT_DISCOVERY_ACROSS_FILESYSTEM didn’t help me to understand what that means or is for (and where this flag has to be set).
I reinstalled the “Espressif framework” which did’nt change anything.
Looking into CMakeOutput.log did’nt help me either as I found no errors listed.
The mentioned file “.pio/build/featheresp32/CMakeFiles/git-data/grabRef.cmake”
has in lines 47-50:
if(NOT HEAD_HASH)
file(READ “/home/kh/pio-projects/a/.pio/build/featheresp32/CMakeFiles/git-data/head-ref” HEAD_HASH LIMIT 1024)
string(STRIP “${HEAD_HASH}” HEAD_HASH)
endif()
which I unfortunately don’t understand either, but the file
“/home/kh/pio-projects/a/.pio/build/featheresp32/CMakeFiles/git-data/head-ref”
does not exist.
So I’m stuck and thankful for suggestions.
Thanks for your time.
Extract of message in pop up box:
\nSee also “/home/kh/pio-projects/a/.pio/build/featheresp32/CMakeFiles/CMakeOutput.log”.\n\nfatal: Kein Git-Repository (oder irgendein Elternverzeichnis bis zum Einhängepunkt /)\nStoppe bei Dateisystemgrenze (GIT_DISCOVERY_ACROSS_FILESYSTEM nicht gesetzt).\nCMake Error at .pio/build/featheresp32/CMakeFiles/git-data/grabRef.cmake:48 (file):\n file failed to open for reading (No such file or directory):\n\n /home/kh/pio-projects/a/.pio/build/featheresp32/CMakeFiles/git-data/head-ref\nCall Stack (most recent call first):\n
env:
debian 10.8, VSCode 1.54.1, PIO Core 5.1.1a3, Home 3.3.4