Page 1 of 1
Why am I getting this in the IDE?
Posted: Tue Jun 23, 2020 11:04 pm
by makes2330
I'm running the latest 14 release. I'm new to Codelite and using it to learn C++. I can write, compile, build and run code no problem. The issue I'm having is that the editor screen is showing lots of red arrows which say files can't be found, identifiers not declared etc. How do I overcome these given that the code compiles, builds and runs no problem?
[img]
https://ibb.co/Jz6n3Tw
Re: Why am I getting this in the IDE?
Posted: Wed Jun 24, 2020 1:25 am
by DavidGH
Hi,
I had the same issue, with a project that uses Custom build settings. Apparently one way to fix it is to create a file called compile_flags.txt in the root folder of the workspace. That should contain lines like:
-I/path/to/C++/include/folder
-I/myworkspace/source/tree/includes
Another, simpler, solution (the one I used) is to disable the Language Server: Plugins/Language Server/Settings. You'll automatically fall back to the previous, ctags, code-completion.
Regards,
David
Re: Why am I getting this in the IDE?
Posted: Wed Jun 24, 2020 12:23 pm
by makes2330
thanks @DavidDH used same approach as you and no more errors