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

Making an environment extend itself causes pio to hang #4021

Closed
oatberry opened this issue Aug 4, 2021 · 1 comment
Closed

Making an environment extend itself causes pio to hang #4021

oatberry opened this issue Aug 4, 2021 · 1 comment

Comments

@oatberry
Copy link

oatberry commented Aug 4, 2021

What kind of issue is this?

PlatformIO Core.

Configuration

Operating system: Windows 10

PlatformIO Version : 5.1.1

Description of problem

I accidentally made a build environment in my platformio.ini extend itself. This was a typo, but it caused commands like pio run --list-targets to silently hang until terminated by the user.

Steps to Reproduce

  1. Create an environment definition in platformio.ini that extends itself
  2. Attempt any pio command that requires parsing environments

Actual Results

pio does nothing and hangs

Expected Results

Perhaps there could be some kind of cycle detection to help users like myself catch typos in their configs.

@oatberry oatberry changed the title Making an environment extend itself causes hang Making an environment extend itself causes pio to hang Aug 4, 2021
@ivankravets
Copy link
Member

Duplicate of #3883

@ivankravets ivankravets marked this as a duplicate of #3883 Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants