Resharper not indexing plugins with Unreal Engine

Hello,

I'm using Resharper and since I had to use a new pc, it's never indexing Plugin code even if I enable it in the extension menu, it never retrieve symbol even from the most basic function/macro:

I don't know what to do, I reinstalled it three times in a row, cleared caches, lost myself in the options but nothing worked,

Any help ?

Thanks,

Vincent

0
14 comments

Still trying to figure out, I might have an idea:

 

It seems he doesn't look in the Unreal Engine sources

Any idea on how to add the unreal path ?

0

Hello,

Just to confirm, do you have “Index plugins” enabled? If R# can't find UE headers this probably means that something is wrong with the project files. Try regenerating the project.

0

I already tried but nothing happened

0

What configuration do you use,  are you sure that the plugin is included into this configuration? Does this happen in other plugins or only in this specific plugin?

0

Plugin is included into the configuration but it's the only one I'm using

0

Is this plugin located in the game code or in the engine?
Are there any errors from UnrealBuildTool (in the “Output” tool windows set “Show output from” to “UnrealBuildTool”)?
Is the plugin added to your uproject and is it enabled there ("Enabled": true)?

0

The plugin is located IN the game code and the UnrealBuildTool don't show anything. I don't know how and why but if I launch the windows debugger from visual studio, add a breakpoint in a file which isn't indexed, at this moment it index the file.

0

It's strange the UBT log is empty. Do you have “Use Unreal Engine project model enabled”? 

In the file with red code, could you please press Alt+Enter, type “/all dump project model” and save the output. Also grab the log from “ReSharper | Help | Show log” and the .json file from “GAMEFOLDER\Intermediate\ProjectFiles\.Rider\PLATFORM\CONFIGURATION\TARGET\GAMENAME.json”. Upload all the files to https://uploads.jetbrains.com/ .

Thanks!

0

Alt+Enter only add forward declaration at the top of my file.

Here are the upload IDs: 

2023_10_26_DyGyu8zsG3WrJSPLB6u7wq (file: ACFSample.json)
2023_10_26_MeYSQwpzXSYfCFRZmFYuij (file: JetBrainsLog.JetBrains.2023-10-26T09-55-41.devenv#7524.log)

0

After retrying to clear cache, regenarates project files and all that stuff, UBT show this:

Exception while generating include data for Target:UnrealEditor, Platform: Win64, Configuration: DebugGame
09:56:09.184: System.ArgumentNullException: Value cannot be null. (Parameter 'element')
09:56:09.184:    at System.Attribute.GetCustomAttributes(MemberInfo element, Type attributeType, Boolean inherit)
09:56:09.184:    at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](MemberInfo element)
09:56:09.184:    at UnrealBuildTool.ModuleRules.IsValidForTarget(Type ModuleType, ReadOnlyTargetRules TargetRules, String& InvalidReason) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\ModuleRules.cs:line 1623
09:56:09.184:    at UnrealBuildTool.UEBuildTarget.AddAllValidModulesToTarget(ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 3886
09:56:09.184:    at UnrealBuildTool.UEBuildTarget.PreBuildSetup(ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 3354
09:56:09.184:    at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bUsePrecompiled, UnrealIntermediateEnvironment IntermediateEnvironment, ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 1366
09:56:09.184:    at UnrealBuildTool.RiderProjectFile.WriteProjectFile(List`1 InPlatforms, List`1 InConfigurations, PlatformProjectGeneratorCollection PlatformProjectGenerators, JsonWriterStyle Minimize, ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\Rider\RiderProjectFile.cs:line 110
0

So UBT fails to output project information for some reason. We've had a similar report recently -  https://youtrack.jetbrains.com/issue/RIDER-100275, we'll investigate.

Could you please also share the C:\Users\USERNAME\AppData\Local\UnrealBuildTool\Log_GPF.txt file?

0

Here it is:

Upload id: 2023_10_26_TAiuUcKMi8oJzZJkMrupF2 (file: Log_GPF.txt)

When do you think I could get some help?

0

The problem is on the Unreal side, so it's not clear. Check out this thread - https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875/1

Do you have any plugins installed into the engine? Maybe try to remove them and check if this helps?

0

Thanks for the update, I didn't have many plugins installed into the engine so I tried to uninstall all and added the plugin directly into the project and it fixed my issue, 

Thanks for your time !

0

Please sign in to leave a comment.