encoding problem when building under VSCODE

ChenBH
Posts: 4
Joined: Sat Mar 21, 2020 11:10 am

encoding problem when building under VSCODE

Postby ChenBH » Sat Mar 21, 2020 11:12 pm

Hi,
I downloaded the ESP-IDF Extension for VSCODE and after too many times trying to configure it, I'm posting this thread before I'm losing hope.

I get this problem when building "blink" example:
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.25.1.windows.1")
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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.
-- Project version: 1
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
Python requirements from C:\Users\ESP32\esp-idf\requirements.txt are satisfied.
⚠️ Traceback (most recent call last):
File "C:/Users/ESP32/esp-idf/tools/kconfig_new/confgen.py", line 571, in <module>
main()
File "C:/Users/ESP32/esp-idf/tools/kconfig_new/confgen.py", line 230, in main
config = kconfiglib.Kconfig(args.kconfig)
File "C:\Users\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 653, in __init__
self._parse_block(None, # end_token
⚠️ File "C:\Users\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1632, in _parse_block
self._parse_block(_T_ENDMENU,
File "C:\Users\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1584, in _parse_block
prev_node = self._parse_block(None, # end_token
File "C:\Users\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1584, in _parse_block
prev_node = self._parse_block(None, # end_token
File "C:\Users\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1551, in _parse_block
while self._has_tokens or self._next_line():
File "C:\Users\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1186, in _next_line
self._line = self._file.readline()
File "C:\Users\ESP32\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1255.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8c in position 3651: character maps to <undefined>
⚠️ CMake Error at C:/Users/ESP32/esp-idf/tools/cmake/kconfig.cmake:208 (message):
Failed to run confgen.py
(C:\Users\ESP32\.espressif\python_env\idf4.0_py3.8_env\Scripts\python.exe;C:/Users/ESP32/esp-idf/tools/kconfig_new/confgen.py;--kconfig;C:/Users/ESP32/esp-idf/Kconfig;--sdkconfig-rename;C:/Users/ESP32/esp-idf/sdkconfig.rename;--config;C:/Users/ESP32/Documents/blink/sdkconfig;--defaults;C:/Users/ESP32/Documents/blink/sdkconfig.defaults;--env-file;C:/Users/ESP32/Documents/blink/build/config.env).
Error 1
Call Stack (most recent call first):
C:/Users/ESP32/esp-idf/tools/cmake/build.cmake:441 (__kconfig_generate_config)
⚠️ C:/Users/ESP32/esp-idf/tools/cmake/project.cmake:337 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
I've resinstalled Git, Python,VSCODE, ESP-IDF.
opened a new user in my computer which its language is English instead of Hebrew in the other two I tried with.
nothing seems to work.
I did a clean install on another computer with the same Git, Python,VSCODE, ESP-IDF versions and it works.
I need help!

ChenBH
Posts: 4
Joined: Sat Mar 21, 2020 11:10 am

Re: encoding problem when building under VSCODE

Postby ChenBH » Wed Mar 25, 2020 9:13 am

Hello,
already did some steps as mentioned in this github issue https://github.com/espressif/vscode-esp ... -603441215.

Who is online

Users browsing this forum: No registered users and 78 guests