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

Configuration file parameters partly ignored when using --project-conf #3034

Closed
daniel-starke opened this issue Sep 18, 2019 · 5 comments
Closed
Labels
Milestone

Comments

@daniel-starke
Copy link

PlatformIO Core

Configuration

Operating system: Windows 7

PlatformIO Version (platformio --version): 4.0.3

Description of problem

platformio section is not evaluated if a non-default configuration file is provided with -c.

Steps to Reproduce

  1. platformio run -c test.ini

Actual Results

.pio is used as default.

Expected Results

The path defined in workspace_dir is used.

Problems with PlatformIO Build System:

The content of test.ini:

[platformio]
workspace_dir = bin

[env:wavrec]
platform = espressif32
framework = arduino
board = wemosbat
monitor_speed = 115200

Source file to reproduce issue:

setup(void) {}
loop(void) {}

Additional info

Defining the environment variable PLATFORMIO_WORKSPACE_DIR works regardlessly.

@ivankravets ivankravets added this to the 4.1.0 milestone Sep 20, 2019
ivankravets added a commit that referenced this issue Sep 26, 2019
@ivankravets
Copy link
Member

Oh, this issue took a lot of efforts, but it worth it. See d2abac9

Could you re-test with pio upgrade --dev?

@daniel-starke
Copy link
Author

Thank you. Works for me as expected.

@ivankravets
Copy link
Member

Thanks for the report!

Happy coding with PlatformIO!

@daniel-starke
Copy link
Author

Hm... would had been nice to have a way to "upgrade" back to stable...

@ivankravets
Copy link
Member

pip uninstall platformio
pip install platformio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants