Every time I reload my UE5 project in Rider it forces a recompile of the whole project on Mac OS
- Load Rider
- Select UE project in the open project window on Rider
- Project finishes loading
- Press the run button
- Project compiles, UE editor loads
- Close UE editor
- Press the run button again, UE editor loads no compile needed
- Close UE editor
- Close Rider
- Load Rider, Load project, press run
- Project recompiles again even tough no code changes are made
This doesn't happen on Windows, is this expected behavior on Mac OS?
Thanks!
Please sign in to leave a comment.
May I know if you are using
.slnor.uprojectto open the project on Windows?Use
.slnwill relay on MSBuild generated project index, use.uprojectopen the project, Rider will invoke UBT to generate the project index.On Mac only the
.uprojectis supported, thus you will see the recompile on opening the project. It should not take too much time as it's not fully compilation, just generating project index for Rider. Have a check on this documentation to get more details about how it works.Hello, thanks for your reply.
I'm using uproject on both Windows and Mac. In my case it does trigger a full recompile of the project source on Mac, for my project right now that's around 5 minutes. Tried on 2 different Macs and the behavior is consistent.
It takes a bit to index on both Windows and Mac when I open the project, but after that's done and I press Run to launch the Unreal Editor from Rider, that's when the recompile happens on Mac.
I may have a bit confused about the recompile here: it happens on opening the UE or opening the project? If recompiling happens when you open the project in Rider, it's for building the project index. If it happens when you open UE, it's for loading the UE required resources.
Could you share the build log during recompiling in Rider to help me understand what is happening? Rider UnrealLink tool should also show the related information.
You can share the related logs to our server and share the ID.
I'm seeing this too on Mac, Rider, UE5.
It doesn't appear to be indexing the project, that happens on startup. I'm not sure what loading the UE required resources means either. But if you close and re-open Rider on Mac, hitting the Build button will rebuild your full project and all plugins. Goes through each .cpp file and recompiles them for some reason.
Until Rider is restarted, subsequent builds only rebuild changed files. Does Rider automatically run a clean build every startup?
Hello Matt,
This is a known issue. We have it registered on our tracker: RIDER-131152 MacOS. Project rebuilds upon reopening it in Rider.
You can try the workaround described there to see if that helps.
Have a nice day!