proletariatgames / unreal.hx

Unreal.hx: Haxe Integration for Unreal
MIT License
424 stars 43 forks source link

Error baking externs #140

Closed peteshand closed 4 years ago

peteshand commented 4 years ago

Hi there

I'm running into an error while baking externs and am wondering if anyone else has run into this issue or has some insight into what might be causing it.

I'm using: Haxe 4.1.1 Mac Catalina Unreal 4.19 (Also tried 4.22 but it seem there is some incompatibility with Mac Catalina)

Also worth noting I'm compiling via the Unreal Editor UI

Running Mono...

Setting up Mono
/Users/Shared/Epic Games/UE_4.19/Engine /Users/Shared/Epic Games/UE_4.19/Engine/Binaries/Mac
Using 'git status' to determine working set for adaptive non-unity build.
Creating makefile for hot reloading MyProject (no existing makefile)
Compiling game modules for hot reload
Performing full C++ include scan (no include cache file)
BuildApi.Build.cs: Using Haxe
Calling Haxe
Calling the build tool with arguments --cwd "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/BuildTool" compile-project.hxml  -D "EngineDir=/Users/Shared/Epic Games/UE_4.19/Engine" -D ProjectDir=/Users/user/Projects/2020/personal/UE4/unrealhx_test1 -D TargetName=MyProjectEditor -D TargetPlatform=Mac -D TargetConfiguration=Development -D TargetType=Editor -D ProjectFile=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/MyProject.uproject -D PluginDir=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx  -D "RootDir=/Users/Shared/Epic Games/UE_4.19" -D UE_BUILD_CS
Building Haxe through the Build.cs file
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/UhxBuild/UhxBuild projectFile=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/MyProject.uproject customPaths=false projectDir=/Users/user/Projects/2020/personal/UE4/unrealhx_test1 targetName=MyProjectEditor engineDir=/Users/Shared/Epic Games/UE_4.19/Engine targetType=Editor ueEditorCompile=false targetPlatform=Mac ueEditorRecompile=false skipBake=false pluginDir=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx rootDir=/Users/Shared/Epic Games/UE_4.19 targetConfiguration=Development prebuild=false cppiaRecompile=false numProcessors=6
InitPlugin.hx:54: Updating game project...
InitPlugin.hx:72: No Build.hx / Target.hx files found. Skipping their compilation
haxe -version
4.1.1
Haxe/BuildTool/interp/uhx/build/UhxBuild.hx:953: baking externs
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-3.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-3.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-3.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-3.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-1.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-1.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-1.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-1.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-2.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-2.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-2.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-2.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-0.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-0.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-0.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-0.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-4.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-4.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-4.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-4.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-5.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-5.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-5.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-5.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common/unreal/FRealCurve_Extra.hx:1: character 1 : null
Error :  -> returned with exit code 1
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-6.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-6.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-6.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-6.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
Error : Build failed: Haxe compilation failed
Error : *** BUILD FAILED ***
Error :  -> returned with exit code 255
Error : Build failed: Build failed
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common/unreal/UGameInstanceSubsystem_Extra.hx:1: character 1 : null
ERROR: Error: Haxe compilation failed
ERROR: Unable to instantiate module 'MyProject': System.Exception: Haxe compilation failed
         at HaxeModuleRules.callHaxe (UnrealBuildTool.ModuleRules rules, HaxeCompilationInfo info, HaxeConfigOptions options, Boolean throwOnError, System.String command) [0x00000] in <filename unknown>:0
         at HaxeModuleRules.setupHaxeTarget (UnrealBuildTool.ModuleRules rules, Boolean forceHaxeCompilation, Boolean manualDependencies, HaxeConfigOptions options) [0x00000] in <filename unknown>:0
         at HaxeModuleRules.run () [0x00000] in <filename unknown>:0
         at BaseModuleRules..ctor (UnrealBuildTool.ReadOnlyTargetRules target) [0x00000] in <filename unknown>:0
         at HaxeModuleRules..ctor (UnrealBuildTool.ReadOnlyTargetRules target) [0x00000] in <filename unknown>:0
         at MyProject..ctor (UnrealBuildTool.ReadOnlyTargetRules Target) [0x00000] in <filename unknown>:0
         at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
         at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
       (referenced via MyProject.Target.cs)

After seeing this error I tried deleting the FRealCurve_Extra.hx extern to see what would happen, but this simply results in the same error on another extern.

I'm not really sure what the compiler is saying here:

FRealCurve_Extra.hx:1: character 1 : null
Error :  -> returned with exit code 1
peteshand commented 4 years ago

Ok, so for anyone else trying to use 4.19 it seems like there are two missing externs that are in the directory: Plugins/UnrealHx/Haxe/Externs/UE4.22

So copying these to: Plugins/UnrealHx/Haxe/Externs/UE4.19/unreal/USubsystem and Plugins/UnrealHx/Haxe/Externs/UE4.19/unreal/significancemanager/USignificanceManager Seems to get past the error outlined above.

That being said I'm now getting the following error:


Running Mono...

Setting up Mono
/Users/Shared/Epic Games/UE_4.19/Engine /Users/Shared/Epic Games/UE_4.19/Engine/Binaries/Mac
Using 'git status' to determine working set for adaptive non-unity build.
WARNING: Failed to read makefile: Object reference not set to an instance of an object
Creating makefile for hot reloading MyProject (couldn't read existing makefile)
Compiling game modules for hot reload
BuildApi.Build.cs: Using Haxe
Calling Haxe
Calling the build tool with arguments --cwd "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/BuildTool" compile-project.hxml  -D "EngineDir=/Users/Shared/Epic Games/UE_4.19/Engine" -D ProjectDir=/Users/user/Projects/2020/personal/UE4/unrealhx_test1 -D TargetName=MyProjectEditor -D TargetPlatform=Mac -D TargetConfiguration=Development -D TargetType=Editor -D ProjectFile=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/MyProject.uproject -D PluginDir=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx  -D "RootDir=/Users/Shared/Epic Games/UE_4.19" -D UE_BUILD_CS
Building Haxe through the Build.cs file
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/UhxBuild/UhxBuild projectFile=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/MyProject.uproject customPaths=false projectDir=/Users/user/Projects/2020/personal/UE4/unrealhx_test1 targetName=MyProjectEditor engineDir=/Users/Shared/Epic Games/UE_4.19/Engine targetType=Editor ueEditorCompile=false targetPlatform=Mac ueEditorRecompile=false skipBake=false pluginDir=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx rootDir=/Users/Shared/Epic Games/UE_4.19 targetConfiguration=Development prebuild=false cppiaRecompile=false numProcessors=6
InitPlugin.hx:54: Updating game project...
InitPlugin.hx:72: No Build.hx / Target.hx files found. Skipping their compilation
haxe -version
4.1.4
Haxe/BuildTool/interp/uhx/build/UhxBuild.hx:953: baking externs
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-0.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-0.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19 -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs -D use-rtti-doc -D bake-externs -D UE_VER=4.19 -D UE_PATCH=2 -D UHX_STATIC_BASE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac --no-output --macro uhx.compiletime.main.ExternBaker.process(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/Common", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Externs/UE4.19", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/GeneratedExterns", "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Externs"], "/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-part-0.deps","/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Data/Extern_Editor_Mac-0.files") -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D PLATFORM_MAC -D BUILDTOOL_VERSION_LEVEL=12
Haxe/BuildTool/interp/uhx/build/UhxBuild.hx:1204: compiling Haxe
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe arguments.hxml -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Static -main UnrealInit -D static_link -D destination=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/libhaxeruntime.a -D UHX_UNREAL_SOURCE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Source/MyProject -D UHX_PLUGIN_PATH=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx -D UHX_UE_CONFIGURATION=Development -D UHX_UE_TARGET_TYPE=Editor -D UHX_UE_TARGET_PLATFORM=Mac -D UHX_BAKE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac -D UHX_BUILD_NAME=MyProject-Mac-Development-Editor -D HXCPP_DLL_EXPORT -D UE_VER=4.19 -D UE_PATCH=2 -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Static --macro uhx.compiletime.main.CreateGlue.run(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Static"], ["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Scripts"]) -D WITH_SERVER_CODE -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D UE_EDITOR -D UE_BUILD_DEVELOPMENT -D PLATFORM_MAC -dce no -debug -D HXCPP_M64 -D HXCPP_DEBUG_LINK -D scriptable -D WITH_CPPIA --macro uhx.compiletime.main.Env.set(["UHX_EXTRA_COMPILERFLAGS="]) -D toolchain=mac-libc -D BUILDTOOL_VERSION_LEVEL=12 -D use-rtti-doc
haxe --cwd /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe arguments.hxml -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx/Haxe/Static -cp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Static -main UnrealInit -D static_link -D destination=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/libhaxeruntime.a -D UHX_UNREAL_SOURCE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Source/MyProject -D UHX_PLUGIN_PATH=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Plugins/UnrealHx -D UHX_UE_CONFIGURATION=Development -D UHX_UE_TARGET_TYPE=Editor -D UHX_UE_TARGET_PLATFORM=Mac -D UHX_BAKE_DIR=/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac -D UHX_BUILD_NAME=MyProject-Mac-Development-Editor -D HXCPP_DLL_EXPORT -D UE_VER=4.19 -D UE_PATCH=2 -cpp /Users/user/Projects/2020/personal/UE4/unrealhx_test1/Intermediate/Haxe/MyProject-Mac-Development-Editor/Static --macro uhx.compiletime.main.CreateGlue.run(["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Static"], ["/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Scripts"]) -D WITH_SERVER_CODE -D WITH_EDITOR -D WITH_EDITORONLY_DATA -D UE_EDITOR -D UE_BUILD_DEVELOPMENT -D PLATFORM_MAC -dce no -debug -D HXCPP_M64 -D HXCPP_DEBUG_LINK -D scriptable -D WITH_CPPIA --macro uhx.compiletime.main.Env.set(["UHX_EXTRA_COMPILERFLAGS="]) -D toolchain=mac-libc -D BUILDTOOL_VERSION_LEVEL=12 -D use-rtti-doc
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FLogCategoryBase.hx:37: characters 5-169 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FSHA256Signature.hx:34: characters 5-138 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FArchive.hx:25: characters 5-114 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FFileStatData.hx:60: characters 5-129 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FLifetimeProperty.hx:83: characters 5-172 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FModuleStatus.hx:37: characters 5-129 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FSetElementId.hx:25: characters 5-129 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FTimerHandle.hx:57: characters 5-126 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FURL.hx:105: characters 5-133 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FVector.hx:131: characters 5-142 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FVector_NetQuantize10.hx:92: characters 5-153 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FParticleSysParam.hx:95: characters 5-141 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FDelegateHandle.hx:25: characters 5-135 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FPlane.hx:54: characters 5-128 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FVector2D.hx:87: characters 5-137 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FVector_NetQuantize.hx:94: characters 5-147 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FHitResult.hx:206: characters 5-129 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FCollisionQueryParams.hx:61: characters 5-162 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FCollisionResponseParams.hx:29: characters 5-171 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FTraceHandle.hx:25: characters 5-126 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FTransform.hx:67: characters 5-120 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FOverlapResult.hx:75: characters 5-132 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FTraceDatum.hx:29: characters 5-123 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FMulticastScriptDelegate.hx:25: characters 5-162 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputKeyBinding.hx:43: characters 5-158 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputBinding.hx:35: characters 5-129 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputTouchUnifiedDelegate.hx:29: characters 5-168 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputTouchBinding.hx:36: characters 5-153 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputAxisBinding.hx:49: characters 5-150 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputAxisUnifiedDelegate.hx:29: characters 5-165 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputAxisKeyBinding.hx:49: characters 5-159 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputVectorAxisUnifiedDelegate.hx:29: characters 5-183 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputVectorAxisBinding.hx:49: characters 5-168 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputGestureUnifiedDelegate.hx:29: characters 5-174 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputGestureBinding.hx:42: characters 5-159 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FScriptDelegate.hx:32: characters 5-135 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputActionUnifiedDelegate.hx:25: characters 5-171 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FInputActionBinding.hx:48: characters 5-167 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FVector4.hx:68: characters 5-156 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FRadialDamageEvent.hx:51: characters 5-144 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FAttachmentTransformRules.hx:33: characters 5-207 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FOutBunch.hx:32: characters 5-117 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FReplicationFlags.hx:51: characters 5-141 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FCollisionResponseContainer.hx:317: characters 5-180 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FMatrix.hx:64: characters 5-153 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FTimespan.hx:74: characters 5-159 : Cannot return a value from constructor
/Users/user/Projects/2020/personal/UE4/unrealhx_test1/Haxe/Generated/Extern_Editor_Mac/unreal/FFrame.hx:57: characters 5-161 : Cannot return a value from constructor
Error :  -> returned with exit code 1
Error : Build failed: Haxe compilation failed
Error : *** BUILD FAILED ***
Error :  -> returned with exit code 1
Error : Build failed: Build failed
ERROR: Error: Haxe compilation failed
ERROR: Unable to instantiate module 'MyProject': System.Exception: Haxe compilation failed
         at HaxeModuleRules.callHaxe (UnrealBuildTool.ModuleRules rules, HaxeCompilationInfo info, HaxeConfigOptions options, Boolean throwOnError, System.String command) [0x00000] in <filename unknown>:0
         at HaxeModuleRules.setupHaxeTarget (UnrealBuildTool.ModuleRules rules, Boolean forceHaxeCompilation, Boolean manualDependencies, HaxeConfigOptions options) [0x00000] in <filename unknown>:0
         at HaxeModuleRules.run () [0x00000] in <filename unknown>:0
         at BaseModuleRules..ctor (UnrealBuildTool.ReadOnlyTargetRules target) [0x00000] in <filename unknown>:0
         at HaxeModuleRules..ctor (UnrealBuildTool.ReadOnlyTargetRules target) [0x00000] in <filename unknown>:0
         at MyProject..ctor (UnrealBuildTool.ReadOnlyTargetRules Target) [0x00000] in <filename unknown>:0
         at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
         at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
       (referenced via MyProject.Target.cs)

Seems like the main issue here is: Cannot return a value from constructor

Looking at one of the generated file it does appear that the constructor is trying to return a value.

public function new(CategoryName : unreal.TCharStar, InDefaultVerbosity : unreal.ELogVerbosity, InCompileTimeVerbosity : unreal.ELogVerbosity) : unreal.FLogCategoryBase {
    #if cppia
    throw "The function new was not compiled into Unreal.hx. C++ recompilation is needed";
    #else
    var uhx_arg_0:unreal.UIntPtr = uhx.internal.HaxeHelpers.dynamicToPointer( CategoryName );
    var uhx_arg_1:Int = unreal.ELogVerbosity.ELogVerbosity_EnumConv.unwrap(InDefaultVerbosity);
    var uhx_arg_2:Int = unreal.ELogVerbosity.ELogVerbosity_EnumConv.unwrap(InCompileTimeVerbosity);
    return ( @:privateAccess unreal.FLogCategoryBase.fromPointer( uhx.glues.FLogCategoryBase_Glue.glueNew(uhx_arg_0, uhx_arg_1, uhx_arg_2) ) : unreal.FLogCategoryBase );

    #end

  }

Is this intentional?

peteshand commented 4 years ago

Bit of an update for anyone else experiencing this issue in the future.

I still haven't resolved the issue, but I've now tested 4.22, 4.21 and 4.19 on MacOS, all have the same issue. I've also tested on Windows and everything compiles fine there, so the issue must be related to the OS, or some underlying library or SDK.

It feels like it might be falling over in a macro somewhere.

@waneck do you know if any OS specific calls are being make during the baking phase?

peteshand commented 4 years ago

I tracked this baking issue down to the 'getModule' method within ExternBaker.hx. When trying to create "_Extra" classes that don't exist the code is expected the try catch to throw ""Type not found :", however it seems with new haxe compilers e always == null