So looking through it, that code only appears in the preview 3.0 version. I set my platform and platform_packages to master (I am using platform.io) and this is the error I am getting
KeyError: 'framework-arduinoespressif32-libs':
File "C:\Users\Phillip\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 173:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\Phillip\.platformio\platforms\espressif32@src-c9ee9fd137fb075309142d83ce51f0bc\builder\main.py", line 346:
target_elf = env.BuildProgram()
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\Phillip\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 61:
env.ProcessProgramDeps()
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\Phillip\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 121:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\Phillip\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 342:
SConscript(env.GetFrameworkScript(name), exports="env")
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 662:
return method(*args, **kw)
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\Phillip\.platformio\platforms\espressif32@src-c9ee9fd137fb075309142d83ce51f0bc\builder\frameworks\arduino.py", line 41:
SConscript(
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 662:
return method(*args, **kw)
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\Phillip\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\Phillip\.platformio\packages\framework-arduinoespressif32\tools\platformio-build.py", line 40:
FRAMEWORK_LIBS_DIR = platform.get_package_dir("framework-arduinoespressif32-libs")
File "C:\Users\Phillip\.platformio\penv\Lib\site-packages\platformio\platform\_packages.py", line 32:
pkg = self.get_package(name)
File "C:\Users\Phillip\.platformio\penv\Lib\site-packages\platformio\platform\_packages.py", line 29:
return self.pm.get_package(spec or self.get_package_spec(name))
File "C:\Users\Phillip\.platformio\penv\Lib\site-packages\platformio\platform\_packages.py", line 21:
owner=self.packages[name].get("owner"),