Official Visual Studio Code Extension for ESP-IDF Projects

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Official Visual Studio Code Extension for ESP-IDF Projects

Postby ESP_Angus » Mon Dec 30, 2019 10:10 pm

The VSCode extension team has been working hard to bring this to you!

First public release of the Espressif VSCode extension for ESP-IDF:
https://github.com/espressif/vscode-esp-idf-extension

(Installation instructions, usage tips, etc can be found in the README at the above link.)

User avatar
shabtronic
Posts: 49
Joined: Sun Nov 03, 2019 1:33 pm

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby shabtronic » Tue Dec 31, 2019 12:19 am

OMG - that is awesome!

took me a few hours previously adding *every single* component dir (idf and adf) path into a vs project
:)

Thank you! :D

boarchuz
Posts: 606
Joined: Tue Aug 21, 2018 5:28 am

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby boarchuz » Tue Dec 31, 2019 12:45 am

Do you know when it will be available on the marketplace?

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby ESP_bignacio » Tue Dec 31, 2019 11:06 am

Hey there,

Espressif IDF extension is now available in Visual Studio Code Marketplace :

https://marketplace.visualstudio.com/it ... -extension

Please take a look and let us know what you think.

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

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby username » Sat Jan 04, 2020 6:45 am

Holy crap, this is the best news i have seen in a long time. Thank you guys for putting in all this hard work into it. I look forward to this development.

Though I did run into a few issues.
The install went well. After i selected one of the demo projects "blink" it opened it fine, and it build fine. But there are still red squiggles for all the #includes.
Also, when I click on menuconfig i just get a pop window saying "ESP-IDF: Menuconfig: Loading initial values..." and it never does anything.

Any ideas???

boarchuz
Posts: 606
Joined: Tue Aug 21, 2018 5:28 am

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby boarchuz » Sat Jan 04, 2020 11:04 am

Yep, official support for VS Code is very exciting. Special mention for the setup wizard - fantastic.

username wrote:
Sat Jan 04, 2020 6:45 am
But there are still red squiggles for all the #includes.
Did you follow the setup guide here?: https://github.com/espressif/vscode-esp ... URATION.md
You might want to try a slight tweak: https://github.com/boarchuz/vscode-esp- ... URATION.md

That should resolve squiggles for all esp stuff.

If you're having issues with standard libraries, try adding the compilerPath to your c_cpp_properties.json as I found I needed to. eg.

Code: Select all

"compilerPath": "${config:idf.toolsPath}/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc",

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

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby username » Sat Jan 04, 2020 11:13 am

I'll give those ideas a try thank you!

FWIW when I saw that awesome setup wizard i just figured the notes about doing things before the install was outdated. Guess I got to excited and went to fast ;-)

What took care of the squiggles for me was adding "compileCommands": "${workspaceFolder}/build/compile_commands.json"

Still was unable to get IDF GUI Menuconfig to work. In my own VSC setup i am able to have the GUI popup.

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby ESP_bignacio » Mon Jan 06, 2020 3:34 am

Hi boarchuz and username !

Thanks for the feedback! We are trying to make the extension as easy to use as possible.

Concerning the GUI Menuconfig Tool, Can you provide us with the content of ESP-IDF GUI Menuconfig Visual Studio Code Output channel and the log (esp_idf_vsc_ext.log) in the extension directory ?

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

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby username » Mon Jan 06, 2020 3:39 am

I'll try to make a video & the log sometime this week hopefully. But I am in the middle of a hot project right now so no promises.
But thanks again for the awesome work thus far.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Postby ESP_Angus » Mon Jan 06, 2020 4:42 am

Thanks everyone for your interest in the VSCode extension.

We have a whole new subforum for IDEs now. To keep the discussions easier to follow, please post new threads in this forum to follow up about the VSCode extension.

Who is online

Users browsing this forum: No registered users and 14 guests