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

Identifier is undefined #437

Closed
dafzor opened this issue Oct 27, 2017 · 4 comments
Closed

Identifier is undefined #437

dafzor opened this issue Oct 27, 2017 · 4 comments

Comments

@dafzor
Copy link

dafzor commented Oct 27, 2017

All Arduino functions in Visual Studio code show underlined in red with the following error:

severity: 'Error'
message: 'identifier "pinMode" is undefined'
at: '10,5'
source: ''

Adding #include <Arduino.h> fixes those error but shows a new ones like:

severity: 'Info'
message: 'cannot open source file "stdlib.h" (dependency of "Arduino.h")'
at: '1,1'
source: ''

This error shows on two computers I tested, around one to two weeks ago it did not occur. Verification and Upload still work without regardless of the error above.

@redwarff
Copy link

I am having the exact same problem

@kulbhushanchand
Copy link

Same problem here.
Is there a way not to write the basic include files in the beginning, just like we do in arduino official IDE?

@JebinMatthew25
Copy link

Yep exactly, but the code can be uploaded without problems, still it's annoying

@yaohaizh
Copy link
Contributor

Duplicate with #438

Please see the related issue.

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

5 participants