Page 1 of 1

Cannot read properties of undefined (reading 'fsPath')

Posted: Tue May 06, 2025 4:14 pm
by username
Espressif VS Code Extension Version: 1.10.0

Mine got updated to v1.10.0 and things got messed up creating a new project.
I now get hit with a popup when creating a new project.
Cannot read properties of undefined (reading 'fsPath')
Screenshot 2025-05-06 110700.png
Screenshot 2025-05-06 110700.png (7.3 KiB) Viewed 4965 times

I preformed a clean uninstall, and tried reinstalling a couple times now but still gives me the same error.

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Tue May 06, 2025 11:10 pm
by itsjagnezi
I'm new here, but I'm having the same issue. I don't know how to fix it for now... I'll try to install another version of ESP-IDF

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Wed May 07, 2025 2:24 am
by username
I went to the previous version of Espressif VS Code Extension, and everything worked.

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Sat May 10, 2025 1:43 pm
by redgeca
Got the same issue. Reverting to extension 1.9.x solves the problem

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Sat May 10, 2025 2:06 pm
by redplane
Same here.
I re-installed the old version (1.9.1) and things worked.

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Sun May 11, 2025 2:54 pm
by Mahmoud
same

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Mon May 12, 2025 9:32 am
by GuerreroMX
Indeed, reverting to version 1.9.1 of the ESp-IDF extension fixes the problem.

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Tue May 13, 2025 8:56 am
by bignacio
This is a known issue and it was fixed in GitHub master already with Pull Request https://github.com/espressif/vscode-esp ... /pull/1538

You can test the current master installer from https://nightly.link/espressif/vscode-e ... n.vsix.zip

You can use this VSIX to test the current github master of the extension by pressing F1 or click menu View -> Command Palette..., type Install from VSIX and then select the previously downloaded .vsix file to install the extension.

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Sat May 24, 2025 7:19 pm
by YanceyChiew
This may be related to the fact that there is no open file/directory in vscode. Although esp-idf extension does not respect the currently opened directory when creating a new project, in order to avoid this error, you should open a directory first.

Re: Cannot read properties of undefined (reading 'fsPath')

Posted: Mon Jun 02, 2025 6:47 am
by 13565298285@163.com
新建一个空白文件夹,然后打开新建的空白文件夹,再新建工程就可以了