rdeioris / LuaMachine

Unreal Engine Plugin for Lua APIs implementation
MIT License
581 stars 120 forks source link

Missing includes when packaging plugin but does not affect source build #52

Closed Astaelan closed 1 year ago

Astaelan commented 1 year ago

Reproduction:

Solution:

Git Diff (didn't feel like forking for a 2 line PR):

diff --git a/Source/LuaMachine/Public/LuaCommandExecutor.h b/Source/LuaMachine/Public/LuaCommandExecutor.h
index 6956cb5..8864a5c 100644
--- a/Source/LuaMachine/Public/LuaCommandExecutor.h
+++ b/Source/LuaMachine/Public/LuaCommandExecutor.h
@@ -5,6 +5,7 @@
 #include "CoreMinimal.h"
 #include "HAL/IConsoleManager.h"
 #include "Framework/Commands/InputChord.h"
+#include "Runtime/Launch/Resources/Version.h"

 class ULuaState;

diff --git a/Source/LuaMachine/Public/LuaMultiLineEditableTextBox.h b/Source/LuaMachine/Public/LuaMultiLineEditableTextBox.h
index 6661fcd..96a9ad2 100644
--- a/Source/LuaMachine/Public/LuaMultiLineEditableTextBox.h
+++ b/Source/LuaMachine/Public/LuaMultiLineEditableTextBox.h
@@ -5,6 +5,7 @@
 #include "CoreMinimal.h"
 #include "Components/TextWidgetTypes.h"
 #include "Components/MultiLineEditableTextBox.h"
+#include "Runtime/Launch/Resources/Version.h"
 #include "LuaMultiLineEditableTextBox.generated.h"

 USTRUCT(BlueprintType)
Olathuss commented 1 year ago

Which version of Unreal are you using? Are you using a source build?

Astaelan commented 1 year ago

I think it was 5.1.x, it's been a few months so I can't be certain at this point. And no, I wasn't using a custom source build, just launcher version.

Olathuss commented 1 year ago

Yup, can confirm was able to replicate the issue.

Olathuss commented 1 year ago

Do you want to submit your fix as a pull request?

Astaelan commented 1 year ago

It's been a while, I don't think I have the actual code kicking around anymore (recent PC crash, new PC, lost some local work). But I at least had the foresight to post the diff above, feel free to apply it and make a new PR per your preferred workflow.