ModuleNotFoundError: No module named 'platformio.managers.package':

Hello friends
Currently I am using Visual Studio Code version 1.61.0 and Plattrorm IO version v2.3.3 to program Marlin code but I am getting an error like the image I describe, even though I have tried to look at the posts and issues. topic of this error but I still can’t compile it successfully. I use MKS Robin V2.4 board and Mks Robin TFT V2.0 board, hope you can help and fix this problem for me.
This is the path of the Marlin file I’m using

Here is the link for the fix update

Thank you very much

I don’t see how the No module named 'platformio.managers.package' error is fixes by the PRs you’ve linked to. It’s a separate issue.

The Marlin scripts use PlatformIO internal classes which can move around sometimes.

You can see that in commit Switch legacy platform manager to the new · platformio/platformio-core@04694b4 · GitHub the platformio\managers\ file was deleted.

Hence of course the platformio.managers.package module cannot be found.

The script is also not contained in Marlin/buildroot/share/PlatformIO/scripts at 2.0.x · MarlinFirmware/Marlin · GitHub anymore. This means that you’re using an outdated Marlin version.

Your options are:

Yes I will try to try what you said and I will reply soon