zac
zac

Reputation: 4918

In UE 5 I keep getting this error Unable to build while Live Coding is active

Since I upgraded to UE 5 I keep getting this error

Error 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

Any solution ?

Upvotes: 6

Views: 27792

Answers (3)

Jaime Medina
Jaime Medina

Reputation: 61

I ran into this issue as well while trying to build from Visual Studio Code by selecting run build task from the Terminal menu while having UE 5 Editor running. The solution for me was as simple as following the error suggestion.

  1. First, go to Edit > Editor Preferences > General > Source Code and make sure Visual Studio Code is selected.
  2. While in Editor Preferences, go to Live Coding and make sure Enable Live Coding is enabled.
  3. Make any code changes in VS Code and safe the file
  4. Build from the UE Editor and not Visual Studio code by pressing Ctrl+Alt+F11 in UE Editor

Upvotes: 6

zac
zac

Reputation: 4918

Maybe this is a solution, I choose DebugGame Editor profile

For error live coding not enabled for project dll you can try deleting the Binaries, DerivedDataCache, and Intermediate folders.

Upvotes: 17

Nadav Ruskin
Nadav Ruskin

Reputation: 192

Live coding is enabled on EU5 by default. This feature requires building from Unreal instead of from the IDE.

To initiate a build with live coding enabled, press CTRL+ALT+F11.

Source: https://docs.unrealengine.com/5.0/en-US/using-live-coding-to-recompile-unreal-engine-applications-at-runtime/

Upvotes: 9

Related Questions