dotBunny / CLionSourceCodeAccess

A CLion Plugin for Unreal Engine
136 stars 26 forks source link

Not compatible with current engine version (4.17) #75

Open zygopleural opened 7 years ago

zygopleural commented 7 years ago

When opening project I get this error:

This project requires the 'CLionSourceCodeAccess' plugin, which is not compatible with the current engine version

It then asks if you would like to disable it, but you'll no longer be able to open any assets created using it.

clionsourcecodeaccess

I build UE4 from source, version 4.17

Is there a list of versions this supports?

RicardoEPRodrigues commented 7 years ago

Hello,

When I'm able I'll try to recreate the problem. I do believe that 4.17 is not yet supported (in theory it should be, but there may be new stuff that breaks it).

Additionally could you show us the errors it emits on the terminal?

fbuether commented 7 years ago

I stumbled upon the same error. When including the accessor into the Engine itself (subdirectory Engine/Plugins/Developer, compare e.g. https://github.com/fire/SensibleEditorSourceCodeAccess) and recompiling the editor, I got more expressive error messages:

/home/fbuether/devel/UnrealEngine/Engine/Plugins/Developer/CLionSourceCodeAccess/Source/CLionSourceCodeAccess/Private/CLionSourceCodeAccessModule.cpp(1): error: Expected CLionSourceCodeAccessModule.h to be first header included.
/home/fbuether/devel/UnrealEngine/Engine/Plugins/Developer/CLionSourceCodeAccess/Source/CLionSourceCodeAccess/Private/CLionSourceCodeAccessor.cpp(1): error: Expected CLionSourceCodeAccessor.h to be first header included.
[...]

When shuffling the header includes around, the error went away and I successfully managed to enable CLion as my source code editor. Pull request #76 documents my changes.

S-Marais commented 6 years ago

this is a per project plugin, meaning you should only place it in ${PROJECT_DIR}/Plugins/ and not in the engine itself. as for the engine version, you should be able to edit the CLionSourceCodeAccess.uplugin and remove the line: "EngineVersion" : "4.18.0", That should fix your issue but I have not tested it

lxs-dump commented 6 years ago

Off-topic, but what is the theme used in the OP? My mind says it's an OS theme, but that dialogue opens with the UE4 UI.

RicardoEPRodrigues commented 6 years ago

@Lexeon Are you talking about the Ubuntu OS theme?

Ubuntu Desktop

lxs-dump commented 6 years ago

@RicardoEPRodrigues That's it! I thought I recognized the theme, but I misinterpreted it as one I used a couple years ago. Sometimes I forget Ubuntu is a thing...