Hello,
I am trying to debug my project using Visual Studio Code on Windows. However, there seem to be an issue inside UBT when it comes to resolve paths:
Executing task: Engine\Build\BatchFiles\Build.bat HeroGame Win64 Debug "C:\Users\brain\Documents\Unreal Projects\HeroGame\HeroGame.uproject" -waitmutex <
Creating makefile for HeroGame (no existing makefile)
ERROR: System.IO.DirectoryNotFoundException: Ein Teil des Pfades "G:\UE_4.18\Engine\Source\Projects\HeroGame\HeroGame.uproject" konnte nicht gefunden werden.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boole
an bFromProxy, Boolean useLongPath, Boolean checkHost)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
bei System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
bei System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
bei Tools.DotNETCommon.JsonObject.Read(FileReference File)
bei UnrealBuildTool.ProjectDescriptor.FromFile(FileReference FileName)
bei UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly(FileReference ProjectFileName)
bei UnrealBuildTool.UEBuildTarget.CreateTarget(TargetDescriptor Desc, String[] Arguments, Boolean bCompilingSingleFile)
bei UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile)
Der Terminalprozess wurde mit folgendem Exitcode beendet: 1
As you can see, it tries to find the uproject file in a path relative to the Engine Install path, even though the correct path gets passed to UBT as an argument.
Is there an easy fix for that?