Go to Definition stops working after some time

Hello, after IDE 2.0.3 is started, Go to Definition function works fine, I like using it.
However after some random time it says "No definition found" to everything in the sketch.
It doesn't work on variables, constants nor on functions for no apparent reason.
Does anybody else experience the same?

Thanks in advance.

1 Like

Hi @amazed. Thanks for your report.

Can you provide an approximate time range (e.g., "somewhere between 1 and 10 minutes")?

Does the problem still occur even if you only open a sketch and then leave Arduino IDE alone? Or does it only occur if you are using Arduino IDE? The reason I'm asking is because it might only appear that the required condition to produce the fault is "some random amount of time passing", when really it is produced by some specific action(s) you took during that time while using Arduino IDE.

Which board do you have selected in Arduino IDE when the fault occurred?

Does the fault occur even when attempting a "Go to Definition" operation on a very simple sketch like this?:

void setup() {
  foo();
}
void loop() {}
void foo() {}

It was definately more, than 10 minutes. I was just developing my sketch, doing regular stuff. Compile once in a while, upload once in a while. After a while Go to def. function just stopped working. IDE restart was needed to get back to normal.

Does the problem still occur even if you only open a sketch and then leave Arduino IDE alone?

I haven't tried to leave it alone, but I will and check the behavior as well with a simple sketch you provided.

Which board do you have selected in Arduino IDE when the fault occurred?

Arduino Pro or Pro Mini (3.3V, 8 MHz), USBasp as a Programmer.

I have the same problem.

I'm using version 2.0.3 from AUR (en) - arduino-ide-bin
My operating system is Manjaro (Gnome) from the "Testing" branch.
My development board is ,,ESP32 Dev Module"

Hi @Baadvo. Thanks for your report and the information about which board you have selected. Please also answer the other questions I asked above:

I will test it when possible. :slight_smile:

I just left it alone for more, than 2 hours and the function is still working. So I guess something goes wrong during normal usage.

1 Like

The issue still there, but I couldn't reproduce it systematically.

But I also notice some weird stuff. No definiton for this method when it is inside an if condition:
kép

But if I copy the call outside of the if, the definition is found even in the condition where it wasn't working before!
kép

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.