Arduino-pro-ide: Undeclared identifiers for much of the arduino libs

Created on 2 Jun 2020  Â·  6Comments  Â·  Source: arduino/arduino-pro-ide

Many identifiers that are a part of the arduino standard library show up as unidentified in the pro IDE - here are the ones I've seen:

  • INPUT
  • OUTPUT
  • HIGH
  • LOW
  • millis
  • digitalRead

To Reproduce
Steps to reproduce the behavior:

  1. Start a new sketch
  2. Use one of the above identifiers
  3. See red underlines and a line in the "problems" section

Expected behavior

These identifiers should not be underlined by the editor.

Screenshots

2020-06-01 22_13_49-Steam

2020-06-01 22_16_12-sketch_may29a — Arduino Pro IDE

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 0.0.6

I have the Arduino AVR Boards installed in the boards manager

bug

All 6 comments

noInterrupts and `interrupts are also red underlined.

grafik

(using 0.0.6 alpha for Windows)

You have not selected a board yet, so the underlying Arduino language server has no idea what constants are available, please select a correct board and let us know if it works.

@kittaakos I've selected MKR1000 board when I posted the comment (as in regard to my undeclared identifiers). I've been compiling, uploading and debugging using Pro IDE for a few hours.

Even with the boars selected I get these errors on some libs. Thinks like EthernetClient or Ethernet are not recognised. (And yes I've included Ethernet.h)

Even with the boars selected I get these errors on some libs. Thinks like EthernetClient or Ethernet are not recognised. (And yes I've included Ethernet.h)

I believe that is a separate issue: https://github.com/arduino/arduino-pro-ide/issues/274
Please check if the problem only occurs with sketches saved outside your user directory/sketchbook. You can find the location of the user directory in File > Settings > Open CLI Configuration.

tory/sketchbook. You can find the location of the user directory in File > Settings > Open CLI Configuration.

Yes, it was saved outside my user directory. This is the same issues as in #274.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Master811129 picture Master811129  Â·  6Comments

arnmulligan picture arnmulligan  Â·  8Comments

OMGdaDPS picture OMGdaDPS  Â·  5Comments

Erriez picture Erriez  Â·  5Comments

Master811129 picture Master811129  Â·  4Comments