Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

problems with intellisense #1180

Closed
Makkio88 opened this issue Jan 10, 2021 · 3 comments
Closed

problems with intellisense #1180

Makkio88 opened this issue Jan 10, 2021 · 3 comments

Comments

@Makkio88
Copy link

hi im new in coding for arduino with vs code.
I'm trying to configure it but i have some problems with intellisense.
I've created a blank project for arduino mkr1010wifi.
Initially all works good but if i try to include a library, such as WiFiNINA, intellisense goes mad and starts to tell me that basic core function and classes of the board are unidentified, as in this image
Immagine

this is my configuration file

"configurations": [
        {
            "name": "Win32",
            "includePath": [
                "C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.9\\**",
                "C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\**",
                "C:\\Users\\Admin\\Documents\\Arduino\\libraries\\WiFiNINA\\src\\**"
                
            ],
            "forcedInclude": [
                "C:\\Users\\Admin\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.9\\cores\\arduino\\Arduino.h"               
            ],
            "defines": [
                "USBCON"
            ],
            "intelliSenseMode": "msvc-x64",
            "cStandard": "c17",
            "cppStandard": "c++17"
        }
    ],
    "version": 4

im going mad around this problem...where is the solution?

@edolis
Copy link

edolis commented Jan 10, 2021

(try have a look at that forcedinclude and see if commenting it out helps)

@Makkio88
Copy link
Author

Thank you. I partially solved the problem modifying the "includePath" section.
Now intellisense works with core functions and imported libraries, but i have an error with #include directives.

@adiazulay
Copy link
Contributor

This issue is being tracked with #438 and is fixed in #1183. There will be a release candidate with the fixes in the next week or so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants