Page 1 of 1

Visual Studio Code Installation issues

Posted: Tue Jan 18, 2022 6:50 pm
by djoshi
Hi All

When installing IDF using Visual Studio, do you require anything extra from external source such as installing IDF Windows Installer? Or does VS code handle everything.

I am having some issues, where I had to install the latest IDF using the "Install from VSIX" option.

I am following the example outlined on https://github.com/espressif/vscode-esp ... install.md.
I get to the following screen, which means installation has been successful
1.png
1.png (138.7 KiB) Viewed 6140 times

Then I try to set up my first project using: https://github.com/espressif/vscode-esp ... sic_use.md

Setup 4, when I am setting the device: I get the following error message
2.png
2.png (30.54 KiB) Viewed 6140 times
Then when I try to preform step 5,” ESP-IDF: SDK Configuration editor” I get the following output
3.png
3.png (328.36 KiB) Viewed 6140 times

I haven't yet try to get the blinking project up and running but having all these issues?

Have I missed a vital step?

Re: Visual Studio Code Installation issues

Posted: Tue Jan 18, 2022 7:16 pm
by djoshi
In addition to previous post, if I was to do a ESP-IDF: Build your project

I get the following output.
> Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <

-- Found Git: C:/Users/djosh/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/djosh/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/djosh/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/djosh/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file G:/Test Projects/VS examples/blink/sdkconfig
Traceback (most recent call last):
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 2187, in _enter_file
self._readline = self._open(filename, "r").readline
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 3915, in _open
open(filename, mode, encoding=self._encoding)
PermissionError: [Errno 13] Permission denied: 'G:/Test'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/djosh/esp/esp-idf/tools/kconfig_new/confgen.py", line 640, in <module>
main()
File "C:/Users/djosh/esp/esp-idf/tools/kconfig_new/confgen.py", line 260, in main
config = kconfiglib.Kconfig(args.kconfig)
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 947, in __init__
self._init(filename, warn, warn_to_stderr, encoding)
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 1085, in _init
self._parse_block(None, self.top_node, self.top_node).next = None
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 2982, in _parse_block
prev = self._parse_block(None, parent, prev)
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 2981, in _parse_block
self._enter_file(filename)
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 2190, in _enter_file
raise _KconfigIOError(
kconfiglib._KconfigIOError: G:/Test Projects/VS examples/blink/build/kconfigs_projbuild.in:6: Could not open 'G:/Test' (in 'source "G:/Test"') (EACCES: Permission denied)
CMake Error at C:/Users/djosh/esp/esp-idf/tools/cmake/kconfig.cmake:266 (message):
Failed to run confgen.py
(C:/Users/djosh/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe;C:/Users/djosh/esp/esp-idf/tools/kconfig_new/confgen.py;--kconfig;C:/Users/djosh/esp/esp-idf/Kconfig;--sdkconfig-rename;C:/Users/djosh/esp/esp-idf/sdkconfig.rename;--config;G:/Test
Projects/VS examples/blink/sdkconfig;--defaults;G:/Test Projects/VS
examples/blink/sdkconfig.defaults;--env-file;G:/Test Projects/VS
examples/blink/build/config.env). Error 1
Call Stack (most recent call first):
C:/Users/djosh/esp/esp-idf/tools/cmake/build.cmake:528 (__kconfig_generate_config)
C:/Users/djosh/esp/esp-idf/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!
See also "G:/Test Projects/VS examples/blink/build/CMakeFiles/CMakeOutput.log".
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .." terminated with exit code: 1.

Re: Visual Studio Code Installation issues

Posted: Tue Jan 25, 2022 3:17 am
by ESP_bignacio
Could you use a location with no spaces in the path ? The build system is yet to fully support spaces.

There seems to be a permission error for one of the files. Please make sure to use a location with read/write permission.