question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build "hang" while installing GIT based platform/frameworks.

See original GitHub issue

When building a project for the first time and the dependent platform(s) are not installed the console output will appear to “hang” with the following output:

> Executing task in folder ESP32CommandStation: .....\platformio.exe run --environment pcb_oled_sh1106 <

Processing pcb_oled_sh1106 (platform: https://github.com/platformio/platform-espressif32.git; board: esp32dev; framework: espidf, arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This project is using the GIT versions for arduino-esp32 and esp-idf via the following platformio.ini overrides:

[env]
# overrides to use GIT versions rather than PIO cached copies.
platform_packages =
  framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
  framework-espidf @ https://github.com/espressif/esp-idf.git#release/v3.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ivankravetscommented, Feb 15, 2020

Thanks! A few good things:

  1. New integration for ESP-IDF 4 will be based on the CMake generator. So, we will use CMake to get a list of build items and use the PlatformIO Build system for the rest tasks. We already did this for Zephyr RTOS. It means that you can anytime build the same project with idf.py or PlatformIO.
  2. “menuconfig” - yes, there is a feature request and we will try to resolve it soon.
  3. We currently support only stable software. However, if we will support CMake provided information, it should be possible to use dev-version of ESP-IDF too. It depends on ESP-IDF build process and that all steps are declared in CMake. Otherwise, we will not know how to build some targets which are no declared in CMake.
0reactions
atanisoftcommented, Feb 15, 2020

I believe the two plugins can work together but they may have conflicts in the .vscode directory for paths since IDF usually resides in /home/<user>/esp or similar path.

The plugin has three advantages over PIO currently:

  1. Native CMake integration, same as running idf.py <target> which invokes CMake.
  2. Graphical “menuconfig” within VSCode.
  3. Easy switching of IDF versions (git checkout – <tag>) without needing to upgrade/downgrade the plugin to ensure the build works.

Since my project no longer has Arduino dependencies, it makes sense for me to use the lower level IDF approach.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Platform_packages not installing when using git reference
When trying to install platform package from git, nothing happens and it get stuck ... platform_packages = framework-arduinoespressif32 ...
Read more >
Common Build Problems - Travis CI Docs
A very common cause when a test is suddenly breaking without any major code ... build jobs that were hanging at the codesigning...
Read more >
Cocoapods setup stuck on pod setup command on terminal
The problem is that after executing any of these two commands. A process called git-remote-http in monitor activity shows that something is being...
Read more >
Troubleshooting Git - GitLab Docs
'Broken pipe' errors can occur when attempting to push to a remote repository. ... Write failed: Broken pipe fatal: The remote end hung...
Read more >
1.5 Getting Started - Installing Git
The easiest is probably to install the Xcode Command Line Tools. On Mavericks (10.9) or above you can do this simply by trying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found