Project Wizard stuck at "please wait..."

I have an Arduino Uno and I’m trying to make my first project, for it. (I am an experienced Arduino user)
I have installed PlatformIO IDE on VisualStudio code
I entered the Board model and the name then clicked “Finish” and it just went to loading and nothing else happened. I waited for hours. nothing changed. I checked what the selected folder contains, and it was empty. so I opened the debug console and there where 2 errors:

Error 1:

main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1 fcode: 4003data: "Error: Traceback (most recent call last):\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\__main__.py\", line 102, in main\r\n    cli()  # pylint: disable=no-value-for-parameter\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1130, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1055, in main\r\n    rv = self.invoke(ctx)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\cli.py\", line 71, in invoke\r\n    return super().invoke(ctx)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1657, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1657, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1404, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 760, in invoke\r\n    return __callback(*args, **kwargs)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\decorators.py\", line 26, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\platform.py\", line 55, in platform_search\r\n    for platform in _get_registry_platforms():\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\platform.py\", line 289, in _get_registry_platforms\r\n    return regclient.fetch_json_data(\"get\", \"/v2/platforms\", x_cache_valid=\"1d\")\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\http.py\", line 147, in fetch_json_data\r\n    with ContentCache(\"http\") as cc:\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\cache.py\", line 32, in __init__\r\n    os.makedirs(self.cache_dir)\r\n  File \"C:\\Users\\kamya\\.platformio\\python3\\lib\\os.py\", line 225, in makedirs\r\n    mkdir(name, mode)\r\nFileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\\\Users\\\\kamya\\\\.platformio\\\\.cache\\\\http'\r\n\r\n============================================================\r\n\r\nAn unexpected error occurred. Further steps:\r\n\r\n* Verify that you have the latest version of PlatformIO using\r\n  `pip install -U platformio` command\r\n\r\n* Try to find answer in FAQ Troubleshooting section\r\n  https://docs.platformio.org/page/faq/index.html\r\n\r\n* Report this problem to the developers\r\n  https://github.com/platformio/platformio-core/issues\r\n\r\n============================================================"message: "PIO Core Call Error"[[Prototype]]: Object
cs @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1 Could not initialize project f {message: 'PIO Core Call Error', code: 4003, data: 'The current working directory C:\\Users\\kamya\\OneDr…ion File\r\nResolving uno dependencies...\r\n\n\nError:'}code: 4003data: "The current working directory C:\\Users\\kamya\\OneDrive\\Desktop\\arduino\\ard will be used for the project.\r\n\r\nThe next files/directories have been created in C:\\Users\\kamya\\OneDrive\\Desktop\\arduino\\ard\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\nResolving uno dependencies...\r\n\n\nError:"message: "PIO Core Call Error"[[Prototype]]: Object
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
f.context @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
Z/6M.x.<computed> @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
m @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
h @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
s @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
l @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
E.e.put @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
E.s.put @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
dispatch @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
h @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
b @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
m @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
E.s.put @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
dispatch @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
a.onmessage @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1

Error 2:

main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1 fcode: 4003data: "Error: Traceback (most recent call last):\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\__main__.py\", line 102, in main\r\n    cli()  # pylint: disable=no-value-for-parameter\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1130, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1055, in main\r\n    rv = self.invoke(ctx)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\cli.py\", line 71, in invoke\r\n    return super().invoke(ctx)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1657, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1657, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1404, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 760, in invoke\r\n    return __callback(*args, **kwargs)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\click\\decorators.py\", line 26, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\platform.py\", line 55, in platform_search\r\n    for platform in _get_registry_platforms():\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\platform.py\", line 289, in _get_registry_platforms\r\n    return regclient.fetch_json_data(\"get\", \"/v2/platforms\", x_cache_valid=\"1d\")\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\http.py\", line 147, in fetch_json_data\r\n    with ContentCache(\"http\") as cc:\r\n  File \"C:\\Users\\kamya\\.platformio\\penv\\lib\\site-packages\\platformio\\cache.py\", line 32, in __init__\r\n    os.makedirs(self.cache_dir)\r\n  File \"C:\\Users\\kamya\\.platformio\\python3\\lib\\os.py\", line 225, in makedirs\r\n    mkdir(name, mode)\r\nFileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\\\Users\\\\kamya\\\\.platformio\\\\.cache\\\\http'\r\n\r\n============================================================\r\n\r\nAn unexpected error occurred. Further steps:\r\n\r\n* Verify that you have the latest version of PlatformIO using\r\n  `pip install -U platformio` command\r\n\r\n* Try to find answer in FAQ Troubleshooting section\r\n  https://docs.platformio.org/page/faq/index.html\r\n\r\n* Report this problem to the developers\r\n  https://github.com/platformio/platformio-core/issues\r\n\r\n============================================================"message: "PIO Core Call Error"[[Prototype]]: Object
cs @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1 Could not initialize project f {message: 'PIO Core Call Error', code: 4003, data: 'The current working directory C:\\Users\\kamya\\OneDr…ion File\r\nResolving uno dependencies...\r\n\n\nError:'}code: 4003data: "The current working directory C:\\Users\\kamya\\OneDrive\\Desktop\\arduino\\ard will be used for the project.\r\n\r\nThe next files/directories have been created in C:\\Users\\kamya\\OneDrive\\Desktop\\arduino\\ard\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\nResolving uno dependencies...\r\n\n\nError:"message: "PIO Core Call Error"[[Prototype]]: Object
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
f.context @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
Z/6M.x.<computed> @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
m @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
h @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
s @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
l @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
E.e.put @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
E.s.put @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
dispatch @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
h @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
b @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
m @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
E.s.put @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
(anonymous) @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1
dispatch @ vendor.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:2
a.onmessage @ main.a5f9ea53f21e72c1ecf3b24d74a90d91e973642e.min.js:1

So your first error is

"Error: Traceback (most recent call last):
File “C:\Users\kamya.platformio\penv\lib\site-packages\platformio_main_.py”, line 102, in main
cli() # pylint: disable=no-value-for-parameter
File “C:\Users\kamya.platformio\penv\lib\site-packages\click\core.py”, line 1130, in call
return self.main(*args, **kwargs)
File “C:\Users\kamya.platformio\penv\lib\site-packages\click\core.py”, line 1055, in main
rv = self.invoke(ctx)
File “C:\Users\kamya.platformio\penv\lib\site-packages\platformio\cli.py”, line 71, in invoke
return super().invoke(ctx)
File “C:\Users\kamya.platformio\penv\lib\site-packages\click\core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “C:\Users\kamya.platformio\penv\lib\site-packages\click\core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “C:\Users\kamya.platformio\penv\lib\site-packages\click\core.py”, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “C:\Users\kamya.platformio\penv\lib\site-packages\click\core.py”, line 760, in invoke
return __callback(*args, **kwargs)
File “C:\Users\kamya.platformio\penv\lib\site-packages\click\decorators.py”, line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File “C:\Users\kamya.platformio\penv\lib\site-packages\platformio\commands\platform.py”, line 55, in platform_search
for platform in _get_registry_platforms():
File “C:\Users\kamya.platformio\penv\lib\site-packages\platformio\commands\platform.py”, line 289, in _get_registry_platforms
return regclient.fetch_json_data(“get”, “/v2/platforms”, x_cache_valid=“1d”)
File “C:\Users\kamya.platformio\penv\lib\site-packages\platformio\http.py”, line 147, in fetch_json_data
with ContentCache(“http”) as cc:
File “C:\Users\kamya.platformio\penv\lib\site-packages\platformio\cache.py”, line 32, in init
os.makedirs(self.cache_dir)
File “C:\Users\kamya.platformio\python3\lib\os.py”, line 225, in makedirs
mkdir(name, mode)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: ‘C:\Users\kamya\.platformio\.cache\http’

============================================================
An unexpected error occurred. Further steps:

============================================================"message: “PIO Core Call Error”[[Prototype]]: Object

Try and delete the C:\Users\kamya\.platformio\.cache\ folder and retry. Try disabling possibly interfering antivirus.

Closing VSCode and reopening it solved for me this.