Getting This Errors And Unable To Fix Them Need Help.

Hi,

I’m new to this unreal stuff, i setup unreal and vs according to my course and when i try to build it’s giving me build fail error.

Here is the code which was in the course:
// Fill out your copyright notice in the Description page of Project Settings.

include “PrintMessage.h”

// Sets default values
APrintMessage::APrintMessage()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don’t need it.
PrimaryActorTick.bCanEverTick = false;

}

// Called when the game starts or when spawned
void APrintMessage::BeginPlay()
{
Super::BeginPlay();

UE_LOG(LogTemp, Warning, TEXT("Hello, noob"));

}

// Called every frame
void APrintMessage::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);

}

Didn’t Make Any Changes In The h.

And Here Is The Error I’m Getting:

Build started at 1:30 AM…
1>------ Skipped Build: Project: UE5, Configuration: BuiltWithUnrealBuildTool Win64 ------
1>Project not selected to build for this solution configuration
2>------ Build started: Project: FirstUnrealScript, Configuration: Development_Editor x64 ------
3>------ Build started: Project: BuildGraph.Automation, Configuration: Development Any CPU ------
4>------ Build started: Project: AutomationScripts.Automation, Configuration: Development Any CPU ------
2>Using bundled DotNet SDK version: 6.0.302
2>Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” FirstUnrealScriptEditor Win64 Development -Project=“C:\Users\Irshad\Documents\Unreal Projects\FirstUnrealScript\FirstUnrealScript.uproject” -WaitMutex -FromMsBuild
2>Log file: C:\Users\Irshad\AppData\Local\UnrealBuildTool\Log.txt
2>Creating makefile for FirstUnrealScriptEditor (command line arguments changed)
2>Total execution time: 1.65 seconds
2>Unable to build while Live Coding is active. Exit the editor and game, or press Ctrl+Alt+F11 if iterating on code in the editor or game
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ““C:\Program Files\Epic Games\UE_5.3\Engine\Build\BatchFiles\Build.bat” FirstUnrealScriptEditor Win64 Development -Project=“C:\Users\Irshad\Documents\Unreal Projects\FirstUnrealScript\FirstUnrealScript.uproject” -WaitMutex -FromMsBuild” exited with code 6.
2>Done building project “FirstUnrealScript.vcxproj” – FAILED.
3>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs(1640,37,1640,42): error CS8604: Possible null reference argument for parameter ‘other’ in ‘void HashSet.UnionWith(IEnumerable other)’.
4>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\Scripts\CheckForHacks.cs(87,26,87,45): error CA2017: Number of parameters supplied in the logging message template do not match the number of named placeholders (CA2017: Parameter count mismatch (code analysis) - .NET | Microsoft Learn)
3>Done building project “BuildGraph.Automation.csproj” – FAILED.
4>Done building project “AutomationScripts.Automation.csproj” – FAILED.
========== Build: 0 succeeded, 3 failed, 45 up-to-date, 1 skipped ==========
========== Build completed at 1:30 AM and took 03.244 seconds ==========

1 Like

Greetings @IrshadKhan12

Welcome to the Unreal Engine Community Forums! In regards to the error you’re seeing, live coding will block you from building outside of the editor if you have an instance running. You’ll have to close the edit before you build from VS code. Give that a try and let me know if it resolves it. Thanks!