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

Errors on PHP with Haxe 4.1/development #19

Open
jonasmalacofilho opened this issue Jun 26, 2020 · 5 comments
Open

Errors on PHP with Haxe 4.1/development #19

jonasmalacofilho opened this issue Jun 26, 2020 · 5 comments

Comments

@jonasmalacofilho
Copy link

This is probably related to HaxeFoundation/haxe#9124.

class Test {
	static function main() {
		throw 'Hi there';
	}
}
$ haxe -main Test -php test -lib jstack -D JSTACK_FORCE -D php7
haxe/std/php/_std/haxe/Exception.hx:79: characters 5-73 : Array<haxe.StackItem> should be Null<haxe.CallStack>
haxe/std/php/_std/haxe/Exception.hx:60: characters 27-44 : Class<haxe.CallStack> has no field exceptionToString
haxe/std/php/_std/haxe/Exception.hx:8: lines 8-83 : Field stack has different type than in core type
haxe/std/php/_std/haxe/Exception.hx:8: lines 8-83 : haxe.CallStack should be haxe.CallStack
jonasmalacofilho added a commit to HaxeFoundation/record-macros that referenced this issue Jun 26, 2020
@filt3rek
Copy link

Hej !

Is there any news about haxe 4.1 compatibility please ?

@RealyUniqueName
Copy link
Owner

Not yet

@RealyUniqueName
Copy link
Owner

It requires major refactoring for 4.1 compatibility. I doubt I will have enough time to do it anytime soon.

@jonasmalacofilho
Copy link
Author

@filt3rek,

I can't work on it either, but see if maybe you can contribute the necessary fixes.

It's not a massive library, so you should be able to get up to speed pretty quickly. Then, of course, there's the refactoring @RealyUniqueName mentioned, but if you need this to work with 4.1 and you have some time, it's a worthwhile effort.

P.S. If you decide to pick this task, check with @RealyUniqueName how you should deal with backwards compatibility: can this be a new Haxe 4.1+ only version, or should it keep compatibility with Haxe 4.0 (or even 3.4)?

@filt3rek
Copy link

Thanks guys !

I'll see if I have some time I'll try to make it work and then of course I'll suggest that to Aleksandr

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

3 participants