No IntelliSense CLion(v)2019.1 UE(v)4.22.1

Hello,

I am attempting to use CLion for UE cpp development. I can get a project to build through CLion, however, there is no form of error checking or autocomplete.

It appears to lack all proper suggestions. Note for the below code, I have included the Actor header.

275909-fe7vwwu-imgur.png

I have found and followed every tutorial I can find- that said, I have found the most success with this here [jollymonsterstudio.com][2]

I would assume there is some issue with the CMakeLists.txt but I honestly have no clue where to start with that. I am currently using the generated one from the Editor.

Here is the view of the files:

I am running Windows 10 and compiling the project in Debug mode(Release made no difference) and Visual Studio Build Tools as the build solution. I have attempted using the UE4 plugin for CLion with no difference.

If any other info would be helpful, let me know. Any assistance would be much appreciated!

Having the same issue as well. Noticed quite a few people mentioned this being an issue since 4.22 (on the UE Slackers Discord).

I tried CLion versions going back to 2018.1.7 and it did not fix the intellisense.
However creating a project with UE4.21 did. Therefore I am fairly sure it is a regression on the Unreal (CMake) side rather than with CLion.

We should gather more detailed findings if possible to report it over at the UE4 issue tracker.

I had the same issue (also running 4.22). I’m running in Linux so this might not apply to you.

Basically I removed the directory

/Path/To/Project/Intermediate/Build/Linux/B4D820EA/UE4Editor/Inc

then re-built the project in CLion. That resolved the intellisense issues for me. Not sure if there is an analogous solution for Windows.

@brad_sheppard
Very interesting that this works on Linux, I have only mixed success on Mac (CLion 2020.3 UE4 4.25.4)

When I delete the Inc folder and rebuild my ${PROJECTNAME}_API macro is found (!) but then my .generated.h files can not be found anymore (which makes sense as it is deleted. When I build the project to get the generated files back, CLion still doesn’t find them. Then when I remake the CMake project, we’re back to the old state, where my ${PROJECTNAME}_API macro is no longer found, but my .generated.h are back :S