PlatformIO Community

Failed marlin firmware build, library for I2C and more

Trying to change the fan pinout on my board anyway Ive been running into this issue and not sure what else to do. Ive uninstall everything and reinstalled it. deleted platformio folders and all. So I tried to do a clean build from MarlinFw site with 2.0 and had no issues but when I used the (no changes) 1.1.9 firmware from the website I run into this issue again.

> Executing task: C:\Users\Zin$184\.platformio\penv\Scripts\platformio.exe run <

Warning! `env_default` configuration option in section [platformio] is deprecated and will be removed in the next release! Please use `default_envs` instead
Processing megaatmega2560 (platform: atmelavr; framework: arduino; board: megaatmega2560)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html
PLATFORM: Atmel AVR 2.2.0 > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash
DEBUG: Current (simavr) On-board (simavr)
PACKAGES:
 - framework-arduino-avr 5.0.0
 - toolchain-atmelavr 1.50400.190710 (5.4.0)
Converting Marlin.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Looking for LiquidCrystal_I2C library in registry
Conflict: More than one library has been found by request {"name": "LiquidCrystal_I2C", "requirements": "1.1.2"}:
LiquidCrystal_I2C
=====Automatically chose the first available library (use `--interactive` option to make a choice)==
==========
#ID: 6158
Hitachi HD44780 & clone LCD screens over I²C expander PCF8574
UndefinedPackageVersion: Could not find a version that satisfies the requirement '1.1.2' for your system 'windows_amd64':

Keywords: lcd, i2c, hd44780, wh1602b, wh1604b, screen, pcf8574, liquidcrystal
  File "C:\Users\Zin$184\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168:
Compatible frameworks: Arduino
    env.SConscript("$BUILD_SCRIPT")
Compatible platforms: Infineon XMC, Kendryte K210, GigaDevice GD32V, ASR Microelectronics ASR605x, Atmel AVR, Atmel SAM, Espressif 8266, Intel ARC32, Microchip PIC32, Nordic nRF51, ST STM32, Teensy, TI MSP430, 
TI TIVA, Espressif 32, Nordic nRF52, ST STM8, Atmel megaAVR
Authors: ejoyneering
  File "C:\Users\Zin$184\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 597:

    return _SConscript(self.fs, *files, **subst_kw)
LiquidCrystal_I2C  File "C:\Users\Zin$184\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 286:

===    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
===  File "C:\Users\Zin$184\.platformio\platforms\atmelavr\builder\main.py", line 161:
===    target_elf = env.BuildProgram()
===  File "C:\Users\Zin$184\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 219:
===    return self.method(*nargs, **kwargs)
==
  File "C:\Users\Zin$184\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 62:
#ID: 576    env.ProcessProjectDeps()

A library for I2C LCD displays. The library allows to control I2C displays with functions extremely similar to LiquidCrystal library. THIS LIBRARY MIGHT NOT BE COMPATIBLE WITH EXISTING SKETCHES.
  File "C:\Users\Zin$184\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 219:

    return self.method(*nargs, **kwargs)
Keywords: display
Compatible frameworks: Arduino
  File "C:\Users\Zin$184\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 131:
Compatible platforms: Atmel AVR
    project_lib_builder = env.ConfigureProjectLibBuilder()
Authors: Frank de Brabander, Marco Schwartz

  File "C:\Users\Zin$184\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 219:
LiquidCrystal_I2C    return self.method(*nargs, **kwargs)

===  File "C:\Users\Zin$184\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 1036:
===    project.install_dependencies()
===  File "C:\Users\Zin$184\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 868:
===    lm.install(uri)
===  File "C:\Users\Zin$184\.platformio\penv\lib\site-packages\platformio\managers\lib.py", line 281:
==
    force=force,
#ID: 1574  File "C:\Users\Zin$184\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 704:

A library for DFRobot I2C LCD displays with port parameters
    pkg_dir = self._install_from_piorepo(name, requirements)

  File "C:\Users\Zin$184\.platformio\penv\lib\site-packages\platformio\managers\lib.py", line 119:
Keywords: lcd, liquidcrystal, i2c
Compatible frameworks: Arduino
    requirements or "latest", util.get_systype()
Compatible platforms: Atmel AVR
Authors: Tony Kambourakis

LiquidCrystal_I2C
=================
#ID: 10611
Port of the Arduino library with the same library.Includes a instance of the Print library from arduino

Keywords: i2c
Compatible frameworks: Mbed
Compatible platforms: Atmel SAM, Freescale Kinetis, Nordic nRF51, NXP LPC, Silicon Labs EFM32, ST STM32, Teensy, Nordic nRF52, Maxim 32, WIZNet W7500, RISC-V GAP, NXP i.MX RT
Authors: Valentino Saitz

Found: https://platformio.org/lib/show/6158/LiquidCrystal_I2C
LibraryManager: Installing id=6158 @ 1.1.2
=========================================================================================== [FAILED] Took 0.78 seconds ===========================================================================================

Environment           Status    Duration
--------------------  --------  ------------
megaatmega2560        FAILED    00:00:00.776
megaatmega1280        IGNORED
at90USB1286_CDC       IGNORED
at90USB1286_DFU       IGNORED
melzi                 IGNORED
melzi_optiboot        IGNORED
rambo                 IGNORED
sanguino_atmega644p   IGNORED
sanguino_atmega1284p  IGNORED
teensy20              IGNORED
===================================================================================== 1 failed, 0 succeeded in 00:00:00.776 ===================================================================================== 
The terminal process "C:\Users\Zin$184\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Did you find a solution to this? I’m new to Platformio but decided to try it after switching to Visual Sudio Code. I’m attempting to build Marlin 1.1.9 and getting the exact same error. It builds & uploads fine with Arduino IDE.