InternalTemperature icon indicating copy to clipboard operation
InternalTemperature copied to clipboard

Invalid simple block '2.1.1a' using VScode platform IO

Open dlee99 opened this issue 11 months ago • 1 comments

Hi,

I was initially using the Arduino IDE with this library and the IDE doesn't throw any error of finding the library and installing it. But I am trying to migrate it over to platformIO on VScode and I come across an error when I try to install the InternalTemperature library into the platform.ini file.

Below I list what I did:

I create a new platformio project w/the board I want (Teensy4.1). My project gets generated, and I see my platformio.ini file. I find the library in the PIO Home/Libraries page, and I install it via copying what is listed in the installation tab under lib_deps into my platformio.ini file.

# platformio.ini – project configuration file

[env:my_build_env]
platform = infineonxmc
framework = arduino
lib_deps =
  latimes2/InternalTemperature @ 2.1.1a

I then proceed to save my platformio.ini file and this error emerges from it.

Resolving teensy41 dependencies...
SemanticVersionError: Invalid simple block '2.1.1a'

dlee99 avatar Mar 01 '24 15:03 dlee99

I have not used platform IO, but the github version is 2.1.1 instead of 2.1.1a. You could try 2.1.1, or just leave off the version.

LAtimes2 avatar Mar 02 '24 02:03 LAtimes2