Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Arduino.h cannot be included in own library #204

Closed
PBahner opened this issue Feb 6, 2020 · 4 comments
Closed

Arduino.h cannot be included in own library #204

PBahner opened this issue Feb 6, 2020 · 4 comments
Labels
topic: language server The language server is responsible for "editor support", e.g. completion and diagnostics type: imperfection Something isn't working

Comments

@PBahner
Copy link

PBahner commented Feb 6, 2020

With the Arduino Pro IDE I cant include the <Arduino.h> in my header and cpp file.
image

@owennewo
Copy link

owennewo commented Feb 15, 2020

I get the same.

I believe it's just a linting error - i.e. if your Gleisbildpult.ino includes your Weiche.h and there are no compilation errors in Weiche.h then it will verify/upload.

I'm also seeing linting errors on the 'standard libraries':
e.g. the servo library described here https://www.arduino.cc/en/Reference/Libraries

I have to ignore the errors and intellisense doesn't work for them either. But I can compile and upload.

#149 is a similar issue

@MicheleCioccarelli
Copy link

I have the same issue, but it works fine: it doesn't give any compiling or uploading errors.
it is just visual

@spoenemann
Copy link

#149 must be solved so clangd can find included libraries.

@per1234 per1234 added type: imperfection Something isn't working topic: language server The language server is responsible for "editor support", e.g. completion and diagnostics labels Feb 18, 2021
@per1234
Copy link
Contributor

per1234 commented Feb 18, 2021

Hi @PBahner . Thanks so much for taking the time to report this!

This should now be working in the new 0.1.4 release of Arduino Pro IDE.

If you try it out and find that the problem is still occurring, feel free to comment here and we'll investigate.

@per1234 per1234 closed this as completed Feb 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: language server The language server is responsible for "editor support", e.g. completion and diagnostics type: imperfection Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants