JetBrains / UnrealLink

Apache License 2.0
128 stars 24 forks source link

HElp,Failed to build RiderLink plugin at E:\UE_5.3." #278

Open hypoxiastars opened 3 months ago

hypoxiastars commented 3 months ago

Running AutomationTool... Using bundled DotNet SDK version: 6.0.302 Starting AutomationTool... Parsing command line: BuildPlugin -Unversioned -Plugin=C:\Users\27149\AppData\Local\Temp\UnrealLink\Kiboxub\RiderLink.uplugin -Package=C:\Users\27149\AppData\Local\Temp\UnrealLink\Jirakaf Initializing script modules... Unhandled exception: System.Exception: Script module "E:\UE_5.3\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\CookedEditor\CookedEditor.Automation.dll" not found for record "E:\UE_5.3\Engine\Intermediate\ScriptModules\CookedEditor.Automation.json" at UnrealBuildBase.CompileScriptModule.Build(RulesFileType RulesFileType, HashSet1 FoundProjects, IEnumerable1 BaseDirectories, IEnumerable1 DefineConstants, BuildFlags BuildFlags, Boolean& bBuildSuccess, Action1 OnBuildingProjects, ILogger Logger) in E:\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Build\System\CompileScriptModules.cs:line 350 at UnrealBuildBase.CompileScriptModule.InitializeScriptModules(RulesFileType RulesFileType, String ScriptsForProjectFileName, List1 AdditionalScriptsFolders, Boolean bForceCompile, Boolean bNoCompile, Boolean bUseBuildRecords, Boolean& bBuildSuccess, Action1 OnBuildingProjects, ILogger Logger) in E:\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Build\System\CompileScriptModules.cs:line 196 at AutomationToolDriver.Program.MainProc() in E:\UE_5.3\Engine\Source\Programs\AutomationTool\Program.cs:line 478 AutomationTool executed for 0h 0m 0s AutomationTool exiting with ExitCode=1 (Error_Unknown) BUILD FAILED 无法为 E:\UE_5.3 构建 RiderLink 插件 Failed to build RiderLink plugin

linqen commented 2 months ago

Same here, and I see there is a lot of people with this issue...

linqen commented 2 months ago

My workaround is (Unreal 5.3):

  1. Settings -> Unreal Engine -> Extract Rider Link in Game
  2. Compile game, so plugin gets compiled. Be sure to have Development Editor configuration
  3. Cut the plugin from YourGameFolder -> Plugins -> Deverloper to -> F:\UE\UE_5.3\Engine\Plugins\Marketplace\Developer
  4. Restart Rider

Looks like they have an issue in the way they tell the UnrealBuildTool to build the plugin, wrong parameters.

omgAyane commented 3 weeks ago

Getting the same thing in 5.4. Honestly have never had the rider plugin ever just be able to install after a fresh install of the ide. It either gives me this same error message or gets stuck at 73% when installing for hours. idea.log

DecoyRS commented 3 weeks ago

@linqen unfortunately, we use officially provided tools by Epic Games and use their recommended arguments :( Starting with UE 5.3+, UBT changed the way it processes and compiles managed dependencies (aka build.cs and target.cs files), but this issue doesn't look like it.

DecoyRS commented 3 weeks ago

@hypoxiastars what's your version of Rider? Would you be so kind as to try verifying UE installation and trying again? Epic Games Launcher > UE 5.3 >... > Verify And try to install it once again?

DecoyRS commented 3 weeks ago

@omgAyane in your case, you get an internal compiler crash (the message should be visible in the RiderLink installation panel). It's either:

omgAyane commented 3 weeks ago

Oh interesting okay. I'm using ue5.4 and have VS2022 17.9.5. VS and Rider were both installed on my C drive. Which has 712gb free of 930gb.

DecoyRS commented 3 weeks ago

@omgAyane huh... Do you have swap enabled and what's your RAM size? I used to see the message with VC internal crash all the time during UE4.20-4.22 era, but I thought it became much better lately. It was mostly because UE is trying to compile all the files in a single pass using Unity blobs, and we were working this around with decreasing the size of the blob.

omgAyane commented 2 weeks ago

64gb of RAM. Where can I check for the disk swap is enabled? Is that a page file thing?