-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
"pio test" does not install platform, leading to "Error: Unknown development platform" #3901
Comments
will also resolve platformio/platform-native#12 (ref. my comment platformio/platform-native#12 (comment)) |
I'm having this issue too:
The reason this is failing is because the HTTP request to For what it's worth the error message |
What is |
PlatformIO, version 4.3.4 for me. |
Mhm I have a feeling some of the stuff for the old 1-year old 4.x core was shut down :O. Is it viable for you to try and upgrade the PlatformIO core to 5.x? ( But it seems that this is a seperate issue from CC @ivankravets due to the importance of this issue and backwards compatibility. |
@maxgerhardt Upgrading to 5.1.1 fixed my issue. +1 for backwards compatibility. |
I can confirm this issue with 5.1.1 on Debian: $ pio test -e native
Verbose mode can be enabled via `-v, --verbose` option
Collected 1 items
Processing * in native environment
---------------------------------------------------------------------------------------------
Error: Unknown development platform 'native'
$ pio --version
PlatformIO Core, version 5.1.1
$ cat platformio.ini
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:uno]
platform = atmelavr
board = uno
framework = arduino
[env:native]
platform = native
$ ls ~/.platformio/platforms/
atmelavr espressif8266 |
And it is confirmed fixed after you've run |
Yes. |
Sorry for the issue. Please re-test with @puzrin , we would be thankful if you switch your CI to PlatformIO Core Dev. We have a lot of tests and each our commit is very stable but sometime issues happen. So, could add this line
after
|
Tested in branch. It works https://github.com/speedcontrols/ac_sc_grinder/actions/runs/709580960. |
@puzrin please keep |
What kind of issue is this?
If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Windows 10 x64
PlatformIO Version (
platformio --version
):PlatformIO Core, version 5.2.0a3
Description of problem
Attempting to execute a
pio test
command for aplatform
that is not yet locally installed givesIf one does
pio platform install native
and then reruns the command, it works.Use case is per https://community.platformio.org/t/cannot-install-platform-espressif32-on-docker-ubuntu-rolling-pio-4-3-4-1/20243 in an automated CI environment where one does not want to build a native firmware but just run native unit tests.
Steps to Reproduce
pio init -b uno
)platformio.ini
withtest\test1.cpp
with contentC:\Users\<user>\.platformio\platforms\native
pio test -e native
Actual Results
Expected Results
Expected results are present after
If problems with PlatformIO Build System:
The content of
platformio.ini
:Per above
Source file to reproduce issue:
per above
Additional info
The text was updated successfully, but these errors were encountered: