I tried the solution (delete tools-scons folder), but it was re-downloaded when I clicked Build.
I have rolled back to 5.0.0 and got the same problem. The 4.x.x releases are all the same, too, and rolling back to 3.5.0 is the same.
I have previously had success with this program, so I’m a bit confused as to why I’m getting this error now. (I am not experienced enough to understand the error messages.)
The board being used is an ESP-WROOM-32.
TypeError: Tried to lookup RootDir '\\' as a File.:
File "C:\Users\dax\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 188:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\dax\.platformio\platforms\espressif32\builder\main.py", line 283:
target_elf = env.BuildProgram()
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
return self.method(*nargs, **kwargs)
File "C:\Users\dax\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 62:
env.ProcessProgramDeps()
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
return self.method(*nargs, **kwargs)
File "C:\Users\dax\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 119:
env.ProcessFlags(env.get("BUILD_FLAGS"))
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
return self.method(*nargs, **kwargs)
File "C:\Users\dax\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 219:
env.Append(**env.ParseFlagsExtended(flags))
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Util.py", line 742:
return self.method(*nargs, **kwargs)
File "C:\Users\dax\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 182:
for key, value in env.ParseFlags(str(raw)).items():
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 815:
do_parse(arg)
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Environment.py", line 733:
dict['LIBS'].append(self.fs.File(arg))
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Node\FS.py", line 1429:
return self._lookup(name, directory, File, create)
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Node\FS.py", line 1408:
return root._lookup_abs(p, fsclass, create)
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Node\FS.py", line 2441:
result.must_be_same(klass)
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Node\FS.py", line 2400:
Base.must_be_same(self, klass)
File "C:\Users\dax\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Node\FS.py", line 619:
raise TypeError("Tried to lookup %s '%s' as a %s." %\