Unable to install library after 6.0.1 update from Github

Hi everyone!

I have an issue with my project https://github.com/stscde/modbus-esp8266-solaredge after updating to platformio 6.0.1. The issue also persists after updating to 6.0.2b1. I am on Windows 10.

The following output shows the issue when I try to install the project as a library. I use the following library in platformio.ini and library.json (see below) https://github.com/emelianov/modbus-esp8266.git. When the PlatformIO library manager downloads the library it seems not be able to extract the https protocol correctly. Instead it adds some kind of library path or name in the protocol parameter.

PS C:\Users\Stefan\Documents\PlatformIO\Projects\modbus-esp8266-solaredge-monitor> pio pkg install  -l https://github.com/stscde/modbus-esp8266-solaredge.git 
Resolving nodemcuv2 environment packages...
Library Manager: solaredge_modbus_arduino@0.0.1+sha.59c5382 is already installed
Library Manager: Installing git+emelianov/modbus-esp8266=https://github.com/emelianov/modbus-esp8266.git
git version 2.33.0.windows.2
Cloning into 'C:\Users\Stefan\.platformio\.cache\tmp\pkg-installing-r9jf25h3'...
fatal: protocol 'emelianov/modbus-esp8266=https' is not supported
Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', 'emelianov/modbus-esp8266=https://github.com/emelianov/modbus-esp8266.git', 'C:\\Users\\Stefan\\.platformio\\.cache\\tmp\\pkg-installing-r9jf25h3']
PS C:\Users\Stefan\Documents\PlatformIO\Projects\modbus-esp8266-solaredge-monitor> 

platformio.ini

[platformio]

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
lib_deps = https://github.com/emelianov/modbus-esp8266.git
monitor_speed = 115200
upload_speed = 921600

library.json

{
    "name": "solaredge_modbus_arduino",
    "version": "0.0.1",
    "description": "Wrapper library for reading values from SolarEdge inverters connected meter no. 1 and battery no 1 without going to deep into Modbus insights.",
    "keywords": "SolarEdge, Modbus, Arduino, ESP8266",
    "repository": {
        "type": "git",
        "url": "https://github.com/stscde/modbus-esp8266-solaredge.git"
    },
    "authors": [
        {
            "name": "Stefan Schroeder",
            "email": "schroeder-s@email.de",
            "maintainer": true
        }
    ],
    "dependencies": [
        {
            "name": "emelianov-modbus-esp8266",
            "version": "https://github.com/emelianov/modbus-esp8266.git#master"
        }
    ],
    "frameworks": "*",
    "platforms": "*",
    "examples": [
        {
            "name": "ReadAllValuesExample",
            "base": "examples/ReadAllValues",
            "files": [
                "ReadAllValuesExample.cpp"
            ]
        }
    ],
    "build": {
        "libArchive": false,
		"flags": [
			"-I include/",
			"-I src/"
		]
    }    
}

I already checked the latest docs for lib_deps and “dependencies”. Seems my settings match the docs.

Any help is appreciated.

Best wishes
Stefan

Interesting, not reproducable for me with Windows 10 + git 2.34.1.

>pio pkg install -g  -l https://github.com/stscde/modbus-esp8266-solaredge.git
Please wait while upgrading PlatformIO...
PlatformIO has been successfully upgraded to 6.0.2b1!

************************************************************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide
************************************************************************************************************************

Library Manager: Installing git+https://github.com/stscde/modbus-esp8266-solaredge.git
git version 2.34.1.windows.1
Cloning into 'C:\Users\Max Gerhardt\.platformio\.cache\tmp\pkg-installing-3m3euyf6'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 23 (delta 0), reused 16 (delta 0), pack-reused 0
Receiving objects: 100% (23/23), 2.35 MiB | 6.75 MiB/s, done.
Library Manager: solaredge_modbus_arduino@0.0.1+sha.7484029 has been installed!
Library Manager: Resolving dependencies...
Library Manager: Installing git+https://github.com/emelianov/modbus-esp8266.git
git version 2.34.1.windows.1
Cloning into 'C:\Users\Max Gerhardt\.platformio\.cache\tmp\pkg-installing-9kvlp_hd'...
remote: Enumerating objects: 130, done.
remote: Counting objects: 100% (130/130), done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 130 (delta 17), reused 76 (delta 13), pack-reused 0R
Receiving objects: 100% (130/130), 141.08 KiB | 1.58 MiB/s, done.
Resolving deltas: 100% (17/17), done.
Library Manager: emelianov-modbus-esp8266@4.1.0+sha.2f14138 has been installed!

Can you try to remove the .pio of the project and do another pio upgrade --dev, then try the command again?

Hi Max,

thank you for your really fast feedback. Got it working thanks to your input :slight_smile:

  • updated to git 2.36.1 64 bit
  • deleted .pio folder
  • pio upgrade --dev

After these steps clone+compilation was working again.

Thank you very much and have a nice weekend
Stefan