Not able to build anything anymore
See original GitHub issueAfter upgrading PIO and/or the platformio framework packages (not sure which one caused these issues), I can no longer build anything anymore. I already removed all framework packages in the .platformio directory, but I cannot compile anything anymore.
Any idea where to look for an option to fix this?
platformio run --environment normal_ESP8266_4M
Processing normal_ESP8266_4M (framework: arduino; platform: https://github.com/TD-er/platform-espressif8266.git#patch/v1.8.0_Puya; board: esp12e)
Error: Traceback (most recent call last):
File "c:\users\gijs\.platformio\penv\lib\site-packages\platformio\__main__.py", line 88, in main
cli(None, None, None)
File "c:\users\gijs\.platformio\penv\lib\site-packages\click\core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "c:\users\gijs\.platformio\penv\lib\site-packages\click\core.py", line 680, in main
rv = self.invoke(ctx)
File "c:\users\gijs\.platformio\penv\lib\site-packages\platformio\commands\__init__.py", line 37, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "c:\users\gijs\.platformio\penv\lib\site-packages\click\core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\gijs\.platformio\penv\lib\site-packages\click\core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\gijs\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
return callback(*args, **kwargs)
File "c:\users\gijs\.platformio\penv\lib\site-packages\click\decorators.py", line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\gijs\.platformio\penv\lib\site-packages\platformio\commands\run\command.py", line 99, in cli
result = (envname, ep.process())
File "c:\users\gijs\.platformio\penv\lib\site-packages\platformio\commands\run\processor.py", line 61, in process
result = self._run_platform()
File "c:\users\gijs\.platformio\penv\lib\site-packages\platformio\commands\run\processor.py", line 115, in _run_platform
return p.run(build_vars, build_targets, self.silent, self.verbose)
File "c:\users\gijs\.platformio\penv\lib\site-packages\platformio\managers\platform.py", line 373, in run
assert isinstance(targets, list)
AssertionError
============================================================
An unexpected error occurred. Further steps:
* Verify that you have the latest version of PlatformIO using
`pip install -U platformio` command
* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq.html
* Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Why can't America build things anymore? - The Week
Venture capitalist Marc Andreessen says it's time to build. Why haven't we been?
Read more >Why can't we build anything? - TechCrunch
Things don't get built if there is no consensus, and that's the value — and price — of democracy.
Read more >Why America can't build quickly anymore - Full Stack Economics
Stripe CEO Patrick Collison has a hobby: he curates a list of examples of “people quickly accomplishing ambitious things together.
Read more >Why America Can't Build
A company that built its identity around delivering the toughest projects is now regularly failing to do so, with recent Kiewit endeavors like ......
Read more >Why Doesn't America Build Things? - VICE
The theory that NEPA is a key explanation for why we can't build things anymore is hardly fringe.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have changed the
= ""
into ‘=’ and also tested a build with the dev version of PIO core 4.0.0rc2 Building works fine now.Regarding the
targets =
in config, it does fail there because it does not return the specifieddefault=[]
https://github.com/platformio/platformio-core/blob/0ce23438368e4d9fa323649c0ad7f9027ce26938/platformio/commands/run/processor.py#L87 https://github.com/platformio/platformio-core/blame/0ce23438368e4d9fa323649c0ad7f9027ce26938/platformio/project/config.py#L207Technically .ini does specify it, but empty string is not treated as list. So I am not sure whether this is an issue or not. Error traceback does look scarrer for what is really happenig https://github.com/platformio/platformio-core/blame/0ce23438368e4d9fa323649c0ad7f9027ce26938/platformio/project/options.py#L93
@ivankravets Here’s minimal ini test (this should be added to tests?):