Cannot read properties of undefined (reading 'fsPath')

username
Posts: 593
Joined: Thu May 03, 2018 1:18 pm

Cannot read properties of undefined (reading 'fsPath')

Postby username » Tue May 06, 2025 4:14 pm

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 4954 times

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

itsjagnezi
Posts: 1
Joined: Tue May 06, 2025 11:08 pm

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

Postby itsjagnezi » Tue May 06, 2025 11:10 pm

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

username
Posts: 593
Joined: Thu May 03, 2018 1:18 pm

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

Postby username » Wed May 07, 2025 2:24 am

I went to the previous version of Espressif VS Code Extension, and everything worked.

redgeca
Posts: 2
Joined: Thu Oct 03, 2024 1:28 pm

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

Postby redgeca » Sat May 10, 2025 1:43 pm

Got the same issue. Reverting to extension 1.9.x solves the problem

redplane
Posts: 3
Joined: Sun Oct 11, 2020 5:32 pm

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

Postby redplane » Sat May 10, 2025 2:06 pm

Same here.
I re-installed the old version (1.9.1) and things worked.

Mahmoud
Posts: 2
Joined: Sun May 11, 2025 2:52 pm

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

Postby Mahmoud » Sun May 11, 2025 2:54 pm

same
Last edited by Mahmoud on Sun May 11, 2025 3:02 pm, edited 1 time in total.

GuerreroMX
Posts: 1
Joined: Mon May 12, 2025 9:27 am

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

Postby GuerreroMX » Mon May 12, 2025 9:32 am

Indeed, reverting to version 1.9.1 of the ESp-IDF extension fixes the problem.

bignacio
Espressif staff
Espressif staff
Posts: 255
Joined: Wed May 02, 2018 12:12 pm

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

Postby bignacio » Tue May 13, 2025 8:56 am

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.

YanceyChiew
Posts: 1
Joined: Sat May 24, 2025 7:10 pm

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

Postby YanceyChiew » Sat May 24, 2025 7:19 pm

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.

13565298285@163.com
Posts: 1
Joined: Mon Jun 02, 2025 6:43 am

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

Postby 13565298285@163.com » Mon Jun 02, 2025 6:47 am

新建一个空白文件夹,然后打开新建的空白文件夹,再新建工程就可以了

Who is online

Users browsing this forum: Bing [Bot], ChatGPT-User, PetalBot, Qwantbot and 12 guests