Closed ManuelZ closed 3 years ago
Could you reproduce this issue again?
Fixed in the latest version. Please run pio update
and restart VSCode.
olá. o meu apareceu esse erro. e ainda não consegui retirar
I have the same issue:
> Executing task: C:\Users\blusc\.platformio\penv\Scripts\platformio.exe run <
Processing esp12e (platform: espressif8266; board: d1_mini; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Platform Manager: espressif8266 @ 3.2.0 is already installed
Error: Unknown development platform 'PackageItem <path=C:\Users\blusc\.platformio\platforms\espressif8266 metadata=PackageMetaData <type=platform name=espressif8266 version=3.2.0 spec={'owner': 'platformio', 'id': 8008, 'name': 'espressif8266', 'requirements': None, 'url': None}'
The terminal process "C:\Users\blusc\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Could you reproduce this issue after restart of VSCode?
Yes
Could you reproduce this issue after restart of VSCode?
Try to remove C:\Users\blusc\.platformio\platforms\espressif8266
folder.
That worked, thank you
It seems that some spy software on your machine does bad work. Do you use any 3rd part "antivirus" tools?
It seems that some spy software on your machine does bad work. Do you use any 3rd part "antivirus" tools?
Even though this is old, could you elaborate on what you meant? What stands out to you as being significant of malicious software?
This 'Unknown development platform' error popped up here but it worked after trying to install with pip
I tried to compile this example: https://github.com/platformio/platform-ststm8/tree/master/examples/spl-blink
# change directory to the folder where is located downloaded "get-platformio.py"
cd /path-to-dir/where/get-platformio.py/is-located
# run it
python get-platformio.py
pio run
Command 'pio' not found, but can be installed with: sudo apt install platformio
sudo apt install platformio
pio run
Obsolete PIO Core v4.3.4 is used (previous was 6.1.6) Please remove multiple PIO Cores from a system: https://docs.platformio.org/page/faq.html#multiple-pio-cores-in-a-system
Processing stm8sdisco (platform: ststm8; framework: spl; board: stm8sdisco)
PlatformManager: Installing ststm8 ststm8 @ 2.1.0 is already installed Error: Unknown development platform 'ststm8'
pio update
Obsolete PIO Core v4.3.4 is used (previous was 6.1.6) Please remove multiple PIO Cores from a system: https://docs.platformio.org/page/faq.html#multiple-pio-cores-in-a-system
Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/platformio/main.py", line 109, in main cli() # pylint: disable=no-value-for-parameter File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in call return self.main(args, kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/platformio/commands/init.py", line 44, in invoke return super(PlatformioCLI, self).invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke return __callback(args, *kwargs) File "/usr/lib/python3/dist-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), args, **kwargs) File "/usr/lib/python3/dist-packages/platformio/commands/update.py", line 45, in cli update_core_packages(only_check) File "/usr/lib/python3/dist-packages/platformio/managers/core.py", line 95, in update_core_packages pkg_dir = pm.get_package_dir(name) File "/usr/lib/python3/dist-packages/platformio/managers/package.py", line 415, in get_package_dir manifest = self.get_package(name, requirements, url) File "/usr/lib/python3/dist-packages/platformio/managers/package.py", line 384, in get_package for manifest in self.get_installed(): File "/usr/lib/python3/dist-packages/platformio/managers/package.py", line 374, in get_installed manifest = self.load_manifest(pkg_dir) File "/usr/lib/python3/dist-packages/platformio/managers/package.py", line 347, in load_manifest manifest = ManifestParserFactory.new_from_file(manifest_path).as_dict() File "/usr/lib/python3/dist-packages/platformio/package/manifest/parser.py", line 73, in new_from_file return ManifestParserFactory.new( File "/usr/lib/python3/dist-packages/platformio/package/manifest/parser.py", line 123, in new return cls(contents, remote_url, package_dir) File "/usr/lib/python3/dist-packages/platformio/package/manifest/parser.py", line 136, in init self._data = self.normalize_repository(self._data) File "/usr/lib/python3/dist-packages/platformio/package/manifest/parser.py", line 174, in normalize_repository url = (data.get("repository") or {}).get("url") AttributeError: 'str' object has no attribute 'get'
============================================================
An unexpected error occurred. Further steps:
Verify that you have the latest version of PlatformIO using
pip install -U platformio
commandTry 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
============================================================
pip install -U platformio
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: platformio in /usr/lib/python3/dist-packages (4.3.4) Collecting platformio Using cached platformio-6.1.6-py3-none-any.whl Collecting semantic-version==2.10. Using cached semantic_version-2.10.0-py2.py3-none-any.whl (15 kB) Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from platformio) (0.4.4) Collecting tabulate==0.9. Using cached tabulate-0.9.0-py3-none-any.whl (35 kB) Collecting starlette==0.23. Using cached starlette-0.23.1-py3-none-any.whl (64 kB) Collecting wsproto==1.2. Using cached wsproto-1.2.0-py3-none-any.whl (24 kB) Collecting uvicorn==0.20. Using cached uvicorn-0.20.0-py3-none-any.whl (56 kB) Requirement already satisfied: requests==2. in /usr/lib/python3/dist-packages (from platformio) (2.25.1) Requirement already satisfied: pyelftools<1,>=0.27 in /usr/lib/python3/dist-packages (from platformio) (0.27) Requirement already satisfied: bottle==0.12. in /usr/lib/python3/dist-packages (from platformio) (0.12.19) Collecting aiofiles==22.1. Using cached aiofiles-22.1.0-py3-none-any.whl (14 kB) Requirement already satisfied: pyserial==3.5. in /home/user/.local/lib/python3.10/site-packages (from platformio) (3.5) Collecting click<9,>=8.0.4 Using cached click-8.1.3-py3-none-any.whl (96 kB) Requirement already satisfied: marshmallow==3. in /usr/lib/python3/dist-packages (from platformio) (3.13.0) Collecting ajsonrpc==1. Using cached ajsonrpc-1.2.0-py3-none-any.whl (22 kB) Collecting anyio<5,>=3.4.0 Using cached anyio-3.6.2-py3-none-any.whl (80 kB) Collecting h11>=0.8 Using cached h11-0.14.0-py3-none-any.whl (58 kB) Requirement already satisfied: idna>=2.8 in /usr/lib/python3/dist-packages (from anyio<5,>=3.4.0->starlette==0.23.->platformio) (3.3) Collecting sniffio>=1.1 Using cached sniffio-1.3.0-py3-none-any.whl (10 kB) Installing collected packages: tabulate, sniffio, semantic-version, h11, click, ajsonrpc, aiofiles, wsproto, uvicorn, anyio, starlette, platformio Successfully installed aiofiles-22.1.0 ajsonrpc-1.2.0 anyio-3.6.2 click-8.1.3 h11-0.14.0 platformio-6.1.6 semantic-version-2.10.0 sniffio-1.3.0 starlette-0.23.1 tabulate-0.9.0 uvicorn-0.20.0 wsproto-1.2.0
pio run
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/stm8sdisco.html
PLATFORM: ST STM8 (2.1.0) > ST STM8S-DISCOVERY
HARDWARE: STM8S105C6T6 16MHz, 2KB RAM, 32KB Flash
DEBUG: Current (stlink) On-board (stlink)
PACKAGES:
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/s8uno.html
PLATFORM: ST STM8 (2.1.0) > sduino UNO (STM8S105K6)
HARDWARE: STM8S105K6T6 16MHz, 2KB RAM, 32KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/mb208.html
PLATFORM: ST STM8 (2.1.0) > sduino MB (STM8S208MBT6B)
HARDWARE: STM8S208MBT6 16MHz, 6KB RAM, 128KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/nucleo_8s207k8.html
PLATFORM: ST STM8 (2.1.0) > NUCLEO-8S207K8
HARDWARE: STM8S207K8T6 16MHz, 6KB RAM, 64KB Flash
DEBUG: Current (stlink) On-board (stlink)
PACKAGES:
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/nucleo_8s208rb.html
PLATFORM: ST STM8 (2.1.0) > NUCLEO-8S208RB
HARDWARE: STM8S208RBT6 16MHz, 6KB RAM, 128KB Flash
DEBUG: Current (stlink) On-board (stlink)
PACKAGES:
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/stm8sblue.html
PLATFORM: ST STM8 (2.1.0) > ST STM8S103F3 Breakout Board
HARDWARE: STM8S103F3P6 16MHz, 1KB RAM, 8KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
Environment Status Duration
stm8sdisco SUCCESS 00:00:00.803 s8uno SUCCESS 00:00:00.742 mb208 SUCCESS 00:00:00.769 nucleo_8s207k8 SUCCESS 00:00:00.784 nucleo_8s208rb SUCCESS 00:00:00.775 stm8sblue SUCCESS 00:00:00.751 ========================= 6 succeeded in 00:00:04.625 =========================
Obsolete PIO Core v4.3.4 is used
Please remove PlatformIO Core 4. See https://docs.platformio.org/en/latest/core/installation/troubleshooting.html#multiple-platformio-cores-in-a-system
Obsolete PIO Core v4.3.4 is used
Please remove PlatformIO Core 4. See https://docs.platformio.org/en/latest/core/installation/troubleshooting.html#multiple-platformio-cores-in-a-system
If you have PlatformIO IDE already installed, you do not need to install PlatformIO Core (CLI) separately
https://docs.platformio.org/en/latest/core/installation/shell-commands.html
PIO Core Call Error: "Error: Unknown development platform 'PackageItem <path=C:\Users\Manuel\.platformio\platforms\ststm32 metadata=PackageMetaData <type=platform name=ststm32 version=10.0.1 spec={'owner': 'platformio', 'id': 8020, 'name': 'ststm32', 'requirements': None, 'url': None}'"
I deleted my whole
.platformio
folder, then opened up VSCode again, and I found the STM32 platform installed, I clicked "uninstall", was a success, restarted VSCode and I found this message in a popup.Now I start VSCode and the message doesn't appear, but I just can't uninstall the STM32 platform... it says it succeeds and indeed the
.platformio\platforms\ststm32
dissapears... but just after restarting VSCode, theststm32
folder reappears.