Who wants to help a beginner?

Hello, by now this discussion has become the outlet for all my problems I have with platformio and Arduino, and for this I hope not to transgress the rules of the forum, if so I apologize and ask you for advice on how to behave.
Coming to us: I have compiled a rather simple code in which arduino goes to read data on SD and depending on what is written it turns on or off a led, and in the compilation it does not give me any problem to solve. But platformio tells me that the procedure has failed and gives me this writing which for me is unfortunately indecipherable.

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
 - tool-avrdude 1.60300.200527 (6.3.0)
 - toolchain-atmelavr 1.50400.190710 (5.4.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
ValueError: Invalid simple block '':
  File "C: \. Platformio \ penv \ lib \ site-packages \ platformio \ builder \ main.py", line 177:
    env.SConscript ("$ BUILD_SCRIPT")
  File "C: \. Platformio \ packages \ tool-scons \ scons-local-4.1.0 \ SCons \ Script \ SConscript.py", line 591:
    return _SConscript (self.fs, * files, ** subst_kw)
  File "C: \. Platformio \ packages \ tool-scons \ scons-local-4.1.0 \ SCons \ Script \ SConscript.py", line 280:
    exec (compile (scriptdata, scriptname, 'exec'), call_stack [-1] .globals)
  File "C: \. Platformio \ platforms \ atmelavr \ builder \ main.py", line 161:
    target_elf = env.BuildProgram ()
  File "C: \. Platformio \ packages \ tool-scons \ scons-local-4.1.0 \ SCons \ Util.py", line 658:
    return self.method (* nargs, ** kwargs)
  File "C: \. Platformio \ penv \ lib \ site-packages \ platformio \ builder \ tools \ platformio.py", line 62:
    env.ProcessProjectDeps ()
  File "C: \. Platformio \ packages \ tool-scons \ scons-local-4.1.0 \ SCons \ Util.py", line 658:
    return self.method (* nargs, ** kwargs)
  File "C: \. Platformio \ penv \ lib \ site-packages \ platformio \ builder \ tools \ platformio.py", line 140:
    project_lib_builder = env.ConfigureProjectLibBuilder ()
  File "C: \. Platformio \ packages \ tool-scons \ scons-local-4.1.0 \ SCons \ Util.py", line 658:
    return self.method (* nargs, ** kwargs)
  File "C: \. Platformio \ penv \ lib \ site-packages \ platformio \ builder \ tools \ piolib.py", line 1062:
    project.install_dependencies ()
  File "C: \. Platformio \ penv \ lib \ site-packages \ platformio \ builder \ tools \ piolib.py", line 886:
    if lm.get_package (spec):
  File "c: \. Platformio \ penv \ lib \ site-packages \ platformio \ package \ manager \ base.py", line 234:
    spec = self.ensure_spec (spec)
  File "c: \. Platformio \ penv \ lib \ site-packages \ platformio \ package \ manager \ base.py", line 102:
    return spec if isinstance (spec, PackageSpec) else PackageSpec (spec)
  File "c: \. Platformio \ penv \ lib \ site-packages \ platformio \ package \ meta.py", line 124:
    self._parse (self.raw)
  File "c: \. Platformio \ penv \ lib \ site-packages \ platformio \ package \ meta.py", line 227:
    raw = parser (raw)
  File "c: \. Platformio \ penv \ lib \ site-packages \ platformio \ package \ meta.py", line 250:
    self.requirements = tokens [1] .strip ()
  File "c: \. Platformio \ penv \ lib \ site-packages \ platformio \ package \ meta.py", line 167:
    else semantic_version.SimpleSpec (str (value))
  File "c: \. Platformio \ penv \ lib \ site-packages \ semantic_version \ base.py", line 618:
    self.clause = self._parse_to_clause (expression)
  File "c: \. Platformio \ penv \ lib \ site-packages \ semantic_version \ base.py", line 1014:
    return cls.Parser.parse (expression)
  File "c: \. Platformio \ penv \ lib \ site-packages \ semantic_version \ base.py", line 1034:
    raise ValueError ("Invalid simple block% r"% block)

Can you help me please?
Thank you all

This topic is indeed quite long and the separation of all different actual topics is not quite good. Please open a new topic for it.

As a 5 second debugging tip, it looks like your lib_deps expression in the platformio.ini has one trailing comma too much, causing an empty library description.