# Live Coding cannot be enabled after hot-reload has been used

**URL:** <https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599>\
**Category:** Mobile\
**Tags:** UE4-22, unreal-engine, editor, question, hot-reload, compile-editor\
**Created:** [April 4, 2019, 11:32am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599 "2019-04-04T11:32:32Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubacek.jakub](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hubacek.jakub](https://forums.unrealengine.com/u/hubacek.jakub)\
**Post date:** [April 4, 2019, 11:32am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/1 "2019-04-04T11:32:32Z")

</div>

Hi,

after project upgrade from 4.20 to 4.22 I was looking forward to try live coding feature, but so far I was unable to make it work.

When I launch editor ( without debugger ) and enable experimental live coding feature, then after I pressed Compile in editor I got this message:

```
Live Coding cannot be enabled after hot-reload has been used. Please restart the editor.

```

I restarted editor several times, but so far nothing changed, do I need delete some hot reload cache?

Any help is appreciated.

Thank you,  
Jakub.

---

<div class="post-metadata">

**Author:** ![Acriax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/acriax/32/472400_2.png) [@Acriax](https://forums.unrealengine.com/u/Acriax)\
**Post date:** [April 4, 2019, 1:24pm UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/2 "2019-04-04T13:24:30Z")

</div>

Same issue here.

---

<div class="post-metadata">

**Author:** ![Acriax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/acriax/32/472400_2.png) [@Acriax](https://forums.unrealengine.com/u/Acriax)\
**Post date:** [April 4, 2019, 1:34pm UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/3 "2019-04-04T13:34:22Z")

</div>

Try closing the editor and deleting the UE4Editor-MyGame-####.pdb and .dll files in Bin/Win64. When you start the project again, it will want to recompile. After it has done so, it should be possible to start a Live Coding session.

---

<div class="post-metadata">

**Author:** ![hubacek.jakub](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hubacek.jakub](https://forums.unrealengine.com/u/hubacek.jakub)\
**Post date:** [April 4, 2019, 2:53pm UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/4 "2019-04-04T14:53:00Z")

</div>

I deleted all from \MyProject\Binaries\Win64, pop up window with message about missing modules jump up.  
I confirmed rebuild of those modules. Editor window appeared, but still with same message about hot-reload beeing used.

---

<div class="post-metadata">

**Author:** ![Seluciel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Seluciel](https://forums.unrealengine.com/u/Seluciel)\
**Post date:** [April 4, 2019, 9:56pm UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/5 "2019-04-04T21:56:40Z")

</div>

I could reliably replicate the issue by simply hitting compile within the editor, so I guess just avoid doing that.

For me, the solution was the following:

1. Open the UE4 editor via the .uproject as well as the .sln file
2. Disable the Live Coding feature (under the dropdown next to ‘Compile’)
3. Close the UE4 editor
4. Build the solution (ctrl + shift + B by default for VS2017 at least)
5. Open UE4 editor again through the .uproject

I doubt it matters, but I’m using Development Editor for the solution configuration.

Hope that fixes it for you too.

---

<div class="post-metadata">

**Author:** ![ahmadsy1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ahmadsy1](https://forums.unrealengine.com/u/ahmadsy1)\
**Post date:** [April 5, 2019, 1:57am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/6 "2019-04-05T01:57:37Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![ChiefOfMischief](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChiefOfMischief](https://forums.unrealengine.com/u/ChiefOfMischief)\
**Post date:** [April 5, 2019, 2:24am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/7 "2019-04-05T02:24:35Z")

</div>

Now I know I am interjecting here, but why do you launch the editor threw the uproject instead of running it threw the compiler (visual studio)?

---

<div class="post-metadata">

**Author:** ![Seluciel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Seluciel](https://forums.unrealengine.com/u/Seluciel)\
**Post date:** [April 5, 2019, 7:26am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/8 "2019-04-05T07:26:15Z")

</div>

I tend to always load projects through the .uproject file because I don’t like waiting for the editor to load each time - old habits die hard I guess 🙂 If things aren’t working as I expect, I will fall back to launching the project through the compiler (F5).

With that being said, if the steps work through using F5 rather than opening through the .uproject then that’s great, but I haven’t had to test it like that just yet.

---

<div class="post-metadata">

**Author:** ![ChiefOfMischief](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChiefOfMischief](https://forums.unrealengine.com/u/ChiefOfMischief)\
**Post date:** [April 7, 2019, 12:47am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/9 "2019-04-07T00:47:51Z")

</div>

when you need to rebuild your project, instead of relaunching it with f5, right click the game project and choose build, you should get a notification that the build was successful from the uproject, although this can sometimes desync and a restart of the uproject is required. This is what I do at least

---

<div class="post-metadata">

**Author:** ![hubacek.jakub](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hubacek.jakub](https://forums.unrealengine.com/u/hubacek.jakub)\
**Post date:** [April 7, 2019, 6:23am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/10 "2019-04-07T06:23:41Z")

</div>

First time I tried this, it doesn’t work so I was looking for another solution. And in the end I think what saved me was:

( Similar to what you have suggested )

1. Enable live coding in editor ( for me it was in attached editor)
2. Recompile with this new setting
3. Start editor again.

Now I’m facing some errors in live coding console, but that’s probably for another task ☹

Error I’m facing when I try recompile via live coding is:

```
Error 0xEA while reading from pipe. Size: 260, read: 260
```

---

<div class="post-metadata">

**Author:** ![mxnko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mxnko](https://forums.unrealengine.com/u/mxnko)\
**Post date:** [April 27, 2019, 10:03pm UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/11 "2019-04-27T22:03:54Z")

</div>

Did not work for me. Still the same error when I “Start Session”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_640bfbb4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_640bfbb4](https://forums.unrealengine.com/u/anonymous_user_640bfbb4)\
**Post date:** [June 19, 2019, 11:44am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/12 "2019-06-19T11:44:42Z")

</div>

For all of you to whom deleting intermediate/binaries and/or re-compile the entire solution didn’t work: you might have the same misleading error as me.

**Context** : I upgraded the engine (source c++ version) from 4.22.1 to 4.22.2 and Live++ stopped working. Didn’t matter the configuration used for compiling the engine, all tested ones failed (DebugGame Editor, Development Editor). `CTRL+ALT+F11` didn’t open any console window. When using the option next to the compile button in Editor (Start Session), I got this error

![280197-unknown.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/a/24a7a6f88fccc4ae0c71198b360b71cc6d2c0be6.png)

I never use hot reload. It’s a big no no for me, so I didn’t believe that error. Also, I cleaned and re-compiled the entire solution before, so no hot reload binaries anywhere. I checked the logs and I found this line:

```
LogLiveCoding: Error: Unable to start live coding session. Missing executable 'P:/Perforce/Engine/UE-MyProject/Engine/Binaries/Win64/LiveCodingConsole.exe'. Use the LiveCoding.ConsolePath console variable to modify.

```

Turns out that, during the upgrade (and, if not, during the solution re-build), the LiveCodingConsole.exe was removed. All I had to do was to re-compile that program and everything was back to normal again.

I have the feeling that, that window, is a default error. A misleading one.

**Extra tip** : if you are one of those that adds c++ classes from within the editor, disable _Automatically Compile Newly added C++ Classes_ in the **Editor Preferences** or you will have this problem for real.

 ![280198-unknown-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/1/c71dd37fc9568811cda609028df7afccd0a4cee7.png)

Cheers and good luck!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dc060ced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dc060ced](https://forums.unrealengine.com/u/anonymous_user_dc060ced)\
**Post date:** [August 29, 2022, 3:26pm UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/13 "2022-08-29T15:26:34Z")

</div>

thanks, deleting .dll files worked\<3

---

<div class="post-metadata">

**Author:** ![alaurent4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alaurent4](https://forums.unrealengine.com/u/alaurent4)\
**Post date:** [February 8, 2023, 1:13am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/14 "2023-02-08T01:13:12Z")

</div>

Super helpful! Thx!

---

<div class="post-metadata">

**Author:** ![Noweed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/noweed/32/477944_2.png) [@Noweed](https://forums.unrealengine.com/u/Noweed)\
**Post date:** [November 1, 2023, 12:52pm UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/15 "2023-11-01T12:52:11Z")

</div>

Didn’t work for me. still the same problem

---

<div class="post-metadata">

**Author:** ![chikamichi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chikamichi/32/871749_2.png) [@chikamichi](https://forums.unrealengine.com/u/chikamichi)\
**Post date:** [December 18, 2023, 4:47am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/16 "2023-12-18T04:47:32Z")

</div>

Hi. Anonymous user said: “Turns out that, during the upgrade (and, if not, during the solution re-build), the LiveCodingConsole.exe was removed. All I had to do was to re-compile that program and everything was back to normal again.”

Does someone know how to do just that, recompile LiveCodingConsole.exe?  
I’m using a compiled UE version, building it from scratch doesn’t seem to reify that exe unfortunately ☹

---

<div class="post-metadata">

**Author:** ![skokonXD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skokonXD](https://forums.unrealengine.com/u/skokonXD)\
**Post date:** [January 29, 2024, 4:38am UTC](https://forums.unrealengine.com/t/live-coding-cannot-be-enabled-after-hot-reload-has-been-used/446599/17 "2024-01-29T04:38:19Z")

</div>

Assuming you run a raw source build run this command in cmd

`EngineFolderName\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe LiveCodingConsole Win64 Development`

it will compile the LiveCodingConsole
