[Solved] Auto completion not working on Arduino 2.1

It seems that the auto completion isn't working, can't get any functions like shiftOut, or functions in a library.
The only things I get are keywords, they are suggested on the auto completion list.
Also, I can't see infos on a variable/fonction, so I'm unable to put the right parameter without doing an internet research, see what the function returns and what type the variable is.
The Editor Quick Suggestions is enabled in Preferences.
Is there a way to fix it at home ?

The following link says:

"... trigger the autocomplete feature by pressing CTRL + spacebar..."

It doesn't work when I write analog (for analogWrite), it says "no suggestions" when I do CTRL + spacebar

Perhaps @ptillisch can resolve this...

Hi @dj_math. There is a known bug in Arduino IDE 2.1.0 that causes this to happen when the sketch is stored on a drive other than C:\ on your computer:

The workaround is to store your sketches on your C:\ drive.

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.

Unlucky for us, moving sketches from another drive to anywhere in C:\ drive didn't fix the bug, still don't have auto completion. Should I recreate a sketch and save it anywhere on C:\ drive ? Or return back to a 2.0.x version ?

EDIT : Auto completion returns ! I simply forgot to select a board, but YES, moving every sketch to C drive FIX THE BUG !

1 Like

I tried to mount D:/ drive in a folder on C:/

Unfortunately it did not help.

1 Like

I just moved my Arduino folder from D:\ to C:\Documents.
But ... did you try to move the D drive to C drive ? Or I may missunderstand.

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