JetBrains / RiderSourceCodeAccess

Plugin for UE4 to user Rider for Unreal Engine as code editor
Apache License 2.0
112 stars 21 forks source link

Unreal Engine 5.0.1 LNK1104 Cannot open file UnrealEditor-[ProjectName].dll #18

Open HouseIsKing opened 2 years ago

HouseIsKing commented 2 years ago

When I'm trying to build the C++ code, while Unreal Engine is running it says this. Of course when I close UE it works perfectly. But is there no option for building while UE is open? Do I have to use the UE interface for building? Will it be planned for the future?

image

picture for ref.

Thanks for any help.

DecoyRS commented 2 years ago

Are you using Hot Reload or Live Coding? Sine UE5 Live Coding is used by default and you need to either compile in Unreal Editor, or use "compile file" action in Rider instead of building whole project

HouseIsKing commented 2 years ago

Hey, I've disabled Live Coding. It doesn't let you compile with it as far as I know. I'm not entirely sure how to disable Hot reload, but I can confirm I've disabled Live Coding before. The thing is it compiles the project it just fails to link because the file is in use I bet. Since when I close UE it works completely fine so I'm certain it's something with trying to modify the project file while it's being used by UE.

paper-krane commented 2 years ago

Any luck on this? Having this exact same issue.

DecoyRS commented 2 years ago

You probably have either LiveCoding enabled or both LiveCoding and HotReload disabled. It basically says "smth is holding this dll, can't overwrite it" hence why it doesn't want to be built. If you have HotReload enabled, building from Rider should work as expected (creating new dll near an old dll, UE hot reloading new dll instead of an old one). If you have LiveCoding enabled, either use UE to compile, or action inside Rider "compile file"