IntelliSense errors on SCons scripts on these functions are completely ignorable. Import() is run-time injected function, so VSCode has no way of knowing it’s there. The code is runnable.
So what happens when you drop the .exe from the script?
This is my project’s root. The .exe file that has to be downloaded is that Mklittlefs file. For what I red, its supposed to go there, right? Both the .py and the .exe.
Do you mean I should remove it?
The error the compiler throws says it’s an unrecognized command. They make it look simple everywhere!
Take a slow breath. Re-read all previous posts. Look at the replace_fs.py script you’re using. It tells PlatformIO to use mklittlefs.exe by changing the MKSPIFFSTOOL environment variable.
env.Replace (MKSPIFFSTOOL = "mklittefs.exe")
so, if you are on Linux and the tool executable is just called mklittlefs without any extension, you must adapt the script to also use that name.
I might be doing something wrong someplace else. I tryed following the steps on the library and on the espressif documentation. But I might have missed something.
Then you were in the wrong folder when you executed make.
The git clone should have created a mklittlefs folder. Note that that should have been done in a separate bash instance outside your PIO project folder as to not overlap with the filemklittlefs. Can you try that again?