2025-05-08 4:04 AM
I m quite negatively surprised that suddenly (Ctrl+Space) stoped proposing any functions, as it is shown below:
or
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..
I ve also tried to revuild the C/C++ indexer or just simply to create a new project but still no changes...
Solved! Go to Solution.
2025-05-08 5:45 AM
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.
2025-05-08 5:45 AM
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.
2025-05-08 6:59 AM
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.
2025-05-08 7:22 AM
> 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.
2025-05-08 8:29 AM
Its is polish is it could be complicated for u, besides I guess I understood something wrong