Skip to main content
AAlis.23
Associate III
January 15, 2022
Question

STM32CubeIDE autocomple (content assist) not working

  • January 15, 2022
  • 6 replies
  • 5577 views

My autoomplete shows "no default proposals" when plrssing CRTL+Space and do nothin when typing "." or "->" or any other trigger...

Some people solved this enabling "Parsing-based Proposals" in the "Content Assis -> Advanced" tab but mine is enabled and not working... I've tested a lot of things and the ContentAssis still not worling... Any help???

Thanks

6 replies

TDK
Super User
January 15, 2022

The IDE needs context. Make sure project builds successfully. Make sure you’re in a project file. Rebuild the index.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Visitor II
September 14, 2024

Sadly, I don't know how one rebuilds the index :(

Explorer
January 17, 2025

I assume TDK aks if the project builds. To rebuild your index you simply open your project explorer view, right click on to open the context menu: Index -> Rebuild

rebuild index.png:(


 

AAlis.23
AAlis.23Author
Associate III
January 15, 2022

Hi,

Rebuild the index worked, but, every time I added a new variable or modify struct or whatever the content asist don't show the new variables and I need to rebuild the index... of course this is not normal, any idea?

Thanks in advance

TDK
Super User
January 15, 2022
Does it build?
"If you feel a post has answered your question, please click ""Accept as Solution""."
AAlis.23
AAlis.23Author
Associate III
January 15, 2022

Yes, 0 erros 0 warnings

AAlis.23
AAlis.23Author
Associate III
January 15, 2022

Ok, I've found an option in preferences to update the index with the files in the editor, but, I need to save the file to apply the changes... It's annoying, it's should be done automatically after typing, like VS or any other good IDE.

Pavel A.
Super User
January 16, 2022

This is strange. For me, it finds newly added stuff. Option "Index source and header files opened in editor" is not checked. "Automatically update the index" is checked, and it seems to be on by default.

What is your version? Newly installed or updated?

AAlis.23
AAlis.23Author
Associate III
January 16, 2022

I have the "Automatically update the index" checked but not working until I save the file. My version:

STM32CubeIDE

Version: 1.8.0

Build: 11526_20211125_0815 (UTC)

OS: Windows 10, v.10.0, x86_64 / win32

Java version: 11.0.11

RDrum.1
Associate II
August 31, 2023

My STM32CubeIDE stopped providing Code Complete proposals randomly, after updating to 1.13.1.

It started working after checking "Parsing-based Proposals" in the "Content Assist -> Advanced", which I'd never seen before. Needless to say I hadn't gone in there and changed it, so it's possible it either changed itself (!) or the defaults were wrong. Very annoying either way.

Visitor II
August 21, 2025

Facing this exact same issue, still after 3 years. Is there any fix?