Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: Build Console output is sometimes cut (VSC-544) #290

Closed
3 tasks done
Ostpopcorn opened this issue Jan 12, 2021 · 1 comment · Fixed by #291
Closed
3 tasks done

[Bug Report]: Build Console output is sometimes cut (VSC-544) #290

Ostpopcorn opened this issue Jan 12, 2021 · 1 comment · Fixed by #291
Assignees
Labels
bug Its an actual bug as determined by the maintainers bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)

Comments

@Ostpopcorn
Copy link

Pre Bug Report Checklist
Before reporting any bug please make sure of these points.

  • Make sure you have searched for existing bugs and features request before you post an issue.
  • This is a bug report for the ESP-IDF Visual Studio Code extension and not an ESP-IDF bug report.
  • I've read the docs and found no information that could have helped solving the issue.

Describe the bug

This is a cosmetic bug when I after upgrading to v0.6.0 the build output cuts many of the prints in the terminal are cut by a few letter in the beginning.

I think this is best described by a dump from the console when building within VSC. This is after a change in main.c in my project.

Console dump
ESP-IDF Custom Terminal
$ cmake
-- Project version: 9959cc6-dirty
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
Python requirements from c:\Users\adrian\esp\esp-idf\requirements.txt are satisfied.
-- Project sdkconfig file C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/sdkconfig
Loading defaults file C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/sdkconfig.defaults...
-- Could NOT find Perl (missing: PERL_EXECUTABLE) 
-- Adding linker script C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/adrian/esp/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/adrian/esp/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/adrian/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/adrian/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/adrian/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/adrian/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/adrian/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/adrian/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor coap console cxx driver efuse esp-tls esp32 esp32-LiquidCrystal esp32-button esp32-rotary-encoder esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_http_client esp_http_server esp_https_ota esp_https_server esp_local_ctrl esp_netif esp_ringbuf esp_rom esp_serial_slave_link esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/adrian/esp/esp-idf/components/app_trace C:/Users/adrian/esp/esp-idf/components/app_update C:/Users/adrian/esp/esp-idf/components/asio C:/Users/adrian/esp/esp-idf/components/bootloader C:/Users/adrian/esp/esp-idf/components/bootloader_support C:/Users/adrian/esp/esp-idf/components/bt C:/Users/adrian/esp/esp-idf/components/cbor C:/Users/adrian/esp/esp-idf/components/coap C:/Users/adrian/esp/esp-idf/components/console C:/Users/adrian/esp/esp-idf/components/cxx C:/Users/adrian/esp/esp-idf/components/driver C:/Users/adrian/esp/esp-idf/components/efuse C:/Users/adrian/esp/esp-idf/components/esp-tls C:/Users/adrian/esp/esp-idf/components/esp32 C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/components/esp32-LiquidCrystal C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/components/esp32-button C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/components/esp32-rotary-encoder C:/Users/adrian/esp/esp-idf/components/esp_adc_cal C:/Users/adrian/esp/esp-idf/components/esp_common C:/Users/adrian/esp/esp-idf/components/esp_eth C:/Users/adrian/esp/esp-idf/components/esp_event C:/Users/adrian/esp/esp-idf/components/esp_gdbstub C:/Users/adrian/esp/esp-idf/components/esp_http_client C:/Users/adrian/esp/esp-idf/components/esp_http_server C:/Users/adrian/esp/esp-idf/components/esp_https_ota C:/Users/adrian/esp/esp-idf/components/esp_https_server C:/Users/adrian/esp/esp-idf/components/esp_local_ctrl C:/Users/adrian/esp/esp-idf/components/esp_netif C:/Users/adrian/esp/esp-idf/components/esp_ringbuf C:/Users/adrian/esp/esp-idf/components/esp_rom C:/Users/adrian/esp/esp-idf/components/esp_serial_slave_link C:/Users/adrian/esp/esp-idf/components/esp_websocket_client C:/Users/adrian/esp/esp-idf/components/esp_wifi C:/Users/adrian/esp/esp-idf/components/espcoredump C:/Users/adrian/esp/esp-idf/components/esptool_py C:/Users/adrian/esp/esp-idf/components/expat C:/Users/adrian/esp/esp-idf/components/fatfs C:/Users/adrian/esp/esp-idf/components/freemodbus C:/Users/adrian/esp/esp-idf/components/freertos C:/Users/adrian/esp/esp-idf/components/heap C:/Users/adrian/esp/esp-idf/components/idf_test C:/Users/adrian/esp/esp-idf/components/jsmn C:/Users/adrian/esp/esp-idf/components/json C:/Users/adrian/esp/esp-idf/components/libsodium C:/Users/adrian/esp/esp-idf/components/log C:/Users/adrian/esp/esp-idf/components/lwip C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/main C:/Users/adrian/esp/esp-idf/components/mbedtls C:/Users/adrian/esp/esp-idf/components/mdns C:/Users/adrian/esp/esp-idf/components/mqtt C:/Users/adrian/esp/esp-idf/components/newlib C:/Users/adrian/esp/esp-idf/components/nghttp C:/Users/adrian/esp/esp-idf/components/nvs_flash C:/Users/adrian/esp/esp-idf/components/openssl C:/Users/adrian/esp/esp-idf/components/partition_table C:/Users/adrian/esp/esp-idf/components/perfmon C:/Users/adrian/esp/esp-idf/components/protobuf-c C:/Users/adrian/esp/esp-idf/components/protocomm C:/Users/adrian/esp/esp-idf/components/pthread C:/Users/adrian/esp/esp-idf/components/sdmmc C:/Users/adrian/esp/esp-idf/components/soc C:/Users/adrian/esp/esp-idf/components/spi_flash C:/Users/adrian/esp/esp-idf/components/spiffs C:/Users/adrian/esp/esp-idf/components/tcp_transport C:/Users/adrian/esp/esp-idf/components/tcpip_adapter C:/Users/adrian/esp/esp-idf/components/ulp C:/Users/adrian/esp/esp-idf/components/unity C:/Users/adrian/esp/esp-idf/components/vfs C:/Users/adrian/esp/esp-idf/components/wear_levelling C:/Users/adrian/esp/esp-idf/components/wifi_provisioning C:/Users/adrian/esp/esp-idf/components/wpa_supplicant C:/Users/adrian/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/build

Terminal will be reused by tasks, press any key to close it.

> Executing task: espressif.esp-idf-extension: ESP-IDF Build <

ESP-IDF Custom Terminal
$ cmake
****"***************E ecr4\bin\nts\PlatformIO\Projects\kitchen_timer\build\esp-idf\pa
Partition table binary generated. Contents:
*******************************************************************************
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
storage,data,spiffs,0x110000,960K,
*******************************************************************************
g build step for 'bootloader'
ninja: no work to do.
cpp.objir/src/clock.df/main/CMakeFiles/__idf
 CXX static library esp-idf\main\libmain.a
ng ld/esp32.project.ld
ecutable kitchen_timer.elf
ting binary image from built executable
esptool.py v2.9-dev
Generated C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/build/kitchen_timer.bin

It can be seen most significantly after build step for 'bootloader' where lines are cut.

If the whole project is built after a clean (thanks for that button;) ) the [XX/YY] dose not work so it is verry long, hence why I did only show a rebuild after a change in main.c

Expected behavior

When building in a terminal outside VSC it behaves as it always looks

Console dump
Executing action: all (aliases: build)
Running ninja in directory c:\users\adrian\documents\platformio\projects\kitchen_timer\build
Executing "ninja all"...
[1/9] cmd.exe /C "cd /D C:\Users\adrian\Documents\Platform...*********************************************************"
Partition table binary generated. Contents:
*******************************************************************************
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
storage,data,spiffs,0x110000,960K,
*******************************************************************************
[2/9] Performing build step for 'bootloader'
ninja: no work to do.
[7/7] Generating binary image from built executable
esptool.py v2.9-dev
Generated C:/Users/adrian/Documents/PlatformIO/Projects/kitchen_timer/build/kitchen_timer.bin

Project build complete. To flash, run this command:
C:\Users\adrian\.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe ..\..\..\..\esp\esp-idf\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\kitchen_timer.bin
or run 'idf.py -p (PORT) flash'

Environment (please complete the following information):

  • OS Name & Version: Windows 10 build 1909
  • VSCode Version: 1.52.1
  • ESP-IDF Version: v4.1-520-gc3324a82a
  • Python Version: 3.7.3

Logs

If applicable, please share the log file which can be obtained from

Extension Configuration settings

"idf.espIdfPathWin": "c:\\Users\\adrian\\esp\\esp-idf",
    "idf.toolsPathWin": "C:\\Users\\adrian\\.espressif",
    "idf.pythonBinPathWin": "C:\\Users\\adrian\\.espressif\\python_env\\idf4.1_py3.7_env\\Scripts\\python.exe",
"idf.customExtraPaths": "C:\\Users\\adrian\\.espressif\\tools\\xtensa-esp32-elf\\esp-2020r3-8.4.0\\xtensa-esp32-elf\\bin;C:\\Users\\adrian\\.espressif\\tools\\xtensa-esp32s2-elf\\esp-2020r3-8.4.0\\xtensa-esp32s2-elf\\bin;C:\\Users\\adrian\\.espressif\\tools\\esp32ulp-elf\\2.28.51-esp-20191205\\esp32ulp-elf-binutils\\bin;C:\\Users\\adrian\\.espressif\\tools\\esp32s2ulp-elf\\2.28.51-esp-20191205\\esp32s2ulp-elf-binutils\\bin;C:\\Users\\adrian\\.espressif\\tools\\cmake\\3.13.4\\bin;C:\\Users\\adrian\\.espressif\\tools\\openocd-esp32\\v0.10.0-esp32-20200709\\openocd-esp32\\bin;C:\\Users\\adrian\\.espressif\\tools\\ninja\\1.9.0;C:\\Users\\adrian\\.espressif\\tools\\idf-exe\\1.0.1;C:\\Users\\adrian\\.espressif\\tools\\ccache\\3.7",
"idf.customExtraVars": "{\"OPENOCD_SCRIPTS\":\"C:\\\\Users\\\\adrian\\\\.espressif\\\\tools\\\\openocd-esp32\\\\v0.10.0-esp32-20200709/openocd-esp32/share/openocd/scripts\",\"IDF_CCACHE_ENABLE\":\"1\"}",

Additional context

Don’t know what more might be of interest so just tell me and I'll send it!

@Ostpopcorn Ostpopcorn added the bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) label Jan 12, 2021
@github-actions github-actions bot changed the title [Bug Report]: Build Console output is sometimes cut [Bug Report]: Build Console output is sometimes cut (VSC-544) Jan 12, 2021
@brianignacio5
Copy link
Collaborator

Thanks for reporting this. Will fix with #291

@brianignacio5 brianignacio5 added the bug Its an actual bug as determined by the maintainers label Jan 15, 2021
@brianignacio5 brianignacio5 self-assigned this Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Its an actual bug as determined by the maintainers bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants