Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cppia extraClasspaths broken? #132

Open
datee opened this issue Jun 28, 2019 · 2 comments
Open

Cppia extraClasspaths broken? #132

datee opened this issue Jun 28, 2019 · 2 comments

Comments

@datee
Copy link

datee commented Jun 28, 2019

So testing out the latest versions it seems to be some issue with cppia compilation and extraClasspaths:

in UhxConfig.hx:
config.extraStaticClasspaths = ['C:/dev/UE4Libs/haxe'];

in TestActor.hx (example)

import com.testproject.TestUtils;
|
|
TestUtils.testFunc();

Compiling cppia only
Compilation error: Type not found: com.testproject.TestUtils

Haxe/BuildTool/interp/uhx/build/MacroHelper.hx:62: Error while parsing "extraStaticClasspaths" [C:/dev/UE4Libs/haxe] : Invalid char 67 at position 1

Compiling cppia only

Static compilation works fine for all files including the ones in "script" - the problem only happens with "Compiling cppia only"

[EDIT] :
I have tested this on 2 different computers - UE4.22 and UE4.21 [Windows 10]
Haxe 4 rc3 / hxcpp 4.0.19 and Haxe 4 rc2 / hxcpp 4.0.8
Also happening on Haxe 3.4.7 / hxcpp 4.0.8

Same error on all tests.

@datee datee changed the title [4.22] Cppia compilation problem with extra classpaths [Haxe4] - Cppia compilation seems broken Jun 29, 2019
@datee datee changed the title [Haxe4] - Cppia compilation seems broken [Haxe4] - Cppia compilation broken? Jun 29, 2019
@datee datee changed the title [Haxe4] - Cppia compilation broken? Cppia compilation broken? Jun 29, 2019
@datee datee changed the title Cppia compilation broken? Cppia extraClasspaths broken? Jun 29, 2019
@datee
Copy link
Author

datee commented Jul 2, 2019

Just to verify : Moving the external classes to Haxe/Static fixes the error and everything compiles as normal.
Any idea whats causing this @waneck ?

@datee
Copy link
Author

datee commented Aug 2, 2019

So, since things have been quiet here for a while, i fixed this issue myself.

It seems for some reason when including an external classpath in uhxconfig like this :
config.extraStaticClasspaths = ['C:/dev/UE4Libs/haxe']; the modulepaths array in uhxbuild.hx will have the string path with WITH quotes in it, thereby breaking the external classpath string. So the fix is to remove quotes from the string using a simple replace in uhxbuild.hx when the modulepath is setup ...and it compiles with no errors.

Though - that is very strange.. Not sure whats causing this. Haxe 4 issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant