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

intellisense for Arduino Tabs #727

Closed
craiq opened this issue Dec 16, 2018 · 10 comments
Closed

intellisense for Arduino Tabs #727

craiq opened this issue Dec 16, 2018 · 10 comments

Comments

@craiq
Copy link

craiq commented Dec 16, 2018

Hi,

my project is grown quite big and is devided in many tabs. Youtube Example

Now my problem is, that intellisense don't recognize the functions or variables from other tabs and mark them as non declared. I searched a while now and couldn't find an option so intellisense get the information from all files.

Can this please be added? Or does anyone know how to set this up?

System:
Win10
Visual Studio Code 1.30.0
Extensions:
Arduino 0.2.24
C/C++ 0.20.1

@czgtest
Copy link
Contributor

czgtest commented Dec 26, 2018

@craiq , you can open your project with vs code and add include path to c_cpp_properties.json

image

@craiq
Copy link
Author

craiq commented Jan 8, 2019

Thanks for your reply @czgtest
just "${workspaceRoot}/**" was missing
the rest already was this way. Still no change.
When I extract parts in another file in the same folder I get undefined errors

actually thats what my config looks like:

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceRoot}",
                "${workspaceRoot}/**",
                "C:\\Users\\...\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\nrf52\\0.8.6\\**",
                "C:\\Users\\...\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\**",
                "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\**",
                "C:\\Program Files (x86)\\Arduino\\libraries\\**",
                "C:\\Users\\...\\Documents\\Arduino\\hardware\\tools\\**",
                "C:\\Users\\...\\Documents\\Arduino\\libraries\\**",
                "${workspaceFolder}/**",
                ".../libraries/**"
            ],
            "defines": [
                "ARDUINO=10800"
            ],
            "intelliSenseMode": "clang-x64",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "forcedInclude": [
                "C:\\Users\\...\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\nrf52\\0.8.6\\cores\\nRF5\\Arduino.h"
            ]
        }
    ],
    "version": 4
}

@stale
Copy link

stale bot commented Apr 16, 2019

This issue has been automatically marked as stale and closed because it has not had recent activity. Please feel free to open a new issue if you would like further discussion. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2019
@stale stale bot closed this as completed May 29, 2019
@disconn3ct
Copy link

This is still a problem. Please do not close without resolution.

@Sneezry Sneezry reopened this May 29, 2019
@stale stale bot removed the stale label May 29, 2019
@stale
Copy link

stale bot commented Jun 28, 2019

This issue has been automatically marked as stale and closed because it has not had recent activity. Please feel free to open a new issue if you would like further discussion. Thank you for your contributions.

@stale stale bot added the stale label Jun 28, 2019
@disconn3ct
Copy link

Must be nice in all of those velocity meetings (or scrum retros or whatever) to be able to say that you have no backlog because its all been closed.. that doesn't make it valid though, and REALLY doesn't encourage contributions.

@stale stale bot removed the stale label Jun 28, 2019
@stale
Copy link

stale bot commented Jul 28, 2019

This issue has been automatically marked as stale and closed because it has not had recent activity. Please feel free to open a new issue if you would like further discussion. Thank you for your contributions.

@stale stale bot added the stale label Jul 28, 2019
@stale stale bot closed this as completed Aug 2, 2019
@ryancole38
Copy link

If anyone is still struggling with this, what worked for me was to add a path to an Arduino.h file under forcedInclude.

@Rovexx
Copy link

Rovexx commented Mar 2, 2021

I still encountered this issue but I found a solution that worked for me.
In my VS Code "settings.json" i added the following
"C_Cpp.intelliSenseEngineFallback": "Disabled"
"C_Cpp.intelliSenseEngine": "Tag Parser",

This fixed the issue for me

@travipross
Copy link

Thank you @Rovexx, this solved my issue as well.

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

No branches or pull requests

7 participants