Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#includes missing in visual studio code (VSC-224) #21

Closed
su-Koch opened this issue Jan 21, 2020 · 5 comments
Closed

#includes missing in visual studio code (VSC-224) #21

su-Koch opened this issue Jan 21, 2020 · 5 comments
Labels
Issue Template Ignored Author hasn't follow the issue template question Further information is requested

Comments

@su-Koch
Copy link

su-Koch commented Jan 21, 2020

Hey Guys,
I installed the vscode extension. Configuration and download of tools worked pretty well (thanks to the guiding menus).

Testing the cpp_pthread, includes Paths are not found. All Systems are the current ones.

Console says
IDF_PATH environment variable is different from inferred IDF_PATH.
What does that mean for me (can not get any IDF_PATH with "set" in vscode) and how to solve this?
I'm a developper in VS2017 but vscode is so different. Appreciate some help here.

Can Please someone support this?

This everthing is so anoying because I switched from eclipse to vscode cause of the include issue.

The ESP32 is really cool but these plugins don't seam to be final versions.

Regards, Manuel

@github-actions github-actions bot changed the title #includes missing in visual studio code #includes missing in visual studio code (VSC-224) Jan 21, 2020
@brianignacio5 brianignacio5 added Issue Template Ignored Author hasn't follow the issue template question Further information is requested labels Jan 22, 2020
@brianignacio5
Copy link
Collaborator

brianignacio5 commented Jan 22, 2020

Hi there !

Please can you follow the issue template and show us some steps to replicate your issues?

Regarding your post, currently we depend on Microsoft C/C++ extension to resolve include paths. Please take a look at C_CPP_CONFIGURATION as explained in the Readme's How to use section.

When you configured the extension, the ESP-IDF directory path is saved as vscode configuration setting called idf.espIdfPath which we use to override IDF_PATH in the visual studio code process (not modifying your system environment variable IDF_PATH in any way). You shouldn't see this warning so if you can tell us which operating system, ESP-IDF version and bash or terminal you are using it will be helpful for us to investigate further.

@su-Koch
Copy link
Author

su-Koch commented Jan 22, 2020

Hei brian, thank you for your fast reply. How can i see the json config options in vscode set by the idf? For example idf.espIdfPath? I'll provide a stepby step explanation later today. Manuel

@brianignacio5
Copy link
Collaborator

brianignacio5 commented Jan 22, 2020

Click F1, type settings and you will find an option called Preferences: Open Settings (UI).

Here expand Extensions menu, then click on ESP-IDF and you will see the configuration settings we expose in our extension.

More about visual studio code settings here.

@su-Koch
Copy link
Author

su-Koch commented Jan 22, 2020

Hei brian, I double checked my settings and got it to work. I use esp-idf v3 now and had to set these options in the project (no idea why):
vscodeOptions

I don't know why I had to insert these asterixes here.

Thanks for your help, maybe I've better asked this general question in forum.
I really apreciate your work. ESP32 is really nice.

Regards, Manuel

@pwmb
Copy link
Contributor

pwmb commented Jan 23, 2020

Possible duplicate of #2

"includePath": ["${config:idf.espIdfPath}/components/**"],
* is required to search recursively for all the components for header/ symbols resolutions

@pwmb pwmb closed this as completed Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue Template Ignored Author hasn't follow the issue template question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants