cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE - Auto-complete (Ctrl+Space) Not Proposing Any Functions

MichalPorazko
Associate III

I m quite negatively surprised that suddenly (Ctrl+Space) stoped proposing any functions, as it is shown below:

MichalPorazko_0-1746701988788.png

or

MichalPorazko_1-1746702033017.png

I didn't change any settings, and suddenly it stopped working.

 

That is why I ve searched for any similar issues like mine on the forum and I ve found:
https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-auto-complete-ctrl-space-is-not-working/td-p/342759
or
https://community.st.com/t5/stm32cubeide-mcus/why-does-the-index-not-work-and-how-to-make-it-work/td-p/269134


and none of these solutions worked for me..

MichalPorazko_2-1746702188422.pngMichalPorazko_3-1746702207072.png

I ve also tried to revuild the C/C++ indexer or just simply to create a new project but still no changes...



 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

You can't call a function at the global scope. If you autocomplete within the main() function (or any other function), it will provide valid functions.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

5 REPLIES 5
TDK
Super User

You can't call a function at the global scope. If you autocomplete within the main() function (or any other function), it will provide valid functions.

If you feel a post has answered your question, please click "Accept as Solution".

Thx, thats true as I ve checked , but why is it impossible to call a function at the global scope? I ve came across a tutorial where all the code was written in the global scope, so before the main function and everything seemed to work.

> why is it impossible to call a function at the global scope?

That's how C works. The entry point is in main(). You call functions there.

Technically you can call functions in assignments at the global scope, but that is not what is being done here.

> I ve came across a tutorial where all the code was written in the global scope, so before the main function and everything seemed to work.

Please link said tutorial.

 

If you feel a post has answered your question, please click "Accept as Solution".

Its is polish is it could be complicated for u, besides I guess I understood something wrong

Translation tools pretty much solve any localization issues. You probably did misinterpret something, but if you want to chase it down and link the tutorial, we can probably figure it out.

If you feel a post has answered your question, please click "Accept as Solution".