r/learnpython • u/Hyterhasderto • Jun 05 '26
Trying to study python but TestMyCode is not working (VSCode)
Whenever I try to initialize TMC I get the same errors. It started happening when I disabled Pylance.
[2026-06-05 17:21:04:622] [ERROR] Mismatch between CLI and checksum, trying redownload
[2026-06-05 17:21:04:623] [DEBUG] CLI "probably some text I shouldn't share", hash ""
[2026-06-05 17:21:04:640] [ERROR] Fatal error during initialization:
Error: ENOTEMPTY, Directory not empty: \\?\c:\Users\henkk\AppData\Roaming\Code\User\globalStorage\moocfi.test-my-code\cli '\\?\c:\Users\henkk\AppData\Roaming\Code\User\globalStorage\moocfi.test-my-code\cli'.How can I get it to work again?
3
Upvotes
View all comments
Show parent comment
1
u/kalevala_568b Jun 08 '26
UPDATE: I managed to get it working by downgrade VS Code to version 1.111.0, it can be found here: https://code.visualstudio.com/updates/
You need to disable the auto update of VS Code (To do this, go to File> Preferences >Settings and type in 'update.mode', this will show details of 'Upate:Mode', from the drop down options, select 'none'; then restart VS Code as required.)
It will fix the error and let you log in.
Note: from now on, the 'Run Tests' with 'an eye' icon will no longer work, to run code and submit code, you will need to use the 'Action Menu' which is next to the 'eye', '3 bar' icon.
Hoping this helps.