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
Why am I getting this in the IDE?
-
- CodeLite Curious
- Posts: 2
- Joined: Tue Jun 23, 2020 7:24 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Why am I getting this in the IDE?
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
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
-
- CodeLite Curious
- Posts: 2
- Joined: Tue Jun 23, 2020 7:24 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Why am I getting this in the IDE?
thanks @DavidDH used same approach as you and no more errors