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

neko Exception not catched #9780

Closed
AdrianV opened this issue Jul 29, 2020 · 7 comments
Closed

neko Exception not catched #9780

AdrianV opened this issue Jul 29, 2020 · 7 comments
Assignees
Milestone

Comments

@AdrianV
Copy link
Contributor

AdrianV commented Jul 29, 2020

In the following neko code the exception thrown from DateTime.format is not catched

class Main {
	static function main() {
		try {
			trace(DateTools.format(Date.now(), "%d.%m.%y %T"));
		} catch (e: Dynamic) {
			trace(e); // This line is never reached
		}
		trace("Hello, world!"); // This line is never reached
	}
}
@AdrianV
Copy link
Contributor Author

AdrianV commented Jul 29, 2020

Oops - it depends on the neko version. Must have an older neko on my machine. It works on another machine as expected

@RealyUniqueName RealyUniqueName self-assigned this Jul 29, 2020
@RealyUniqueName RealyUniqueName added this to the Release 4.2 milestone Jul 29, 2020
@RealyUniqueName
Copy link
Member

Is it catchable on that older version with Haxe 4.0 or Haxe 3.4.7?

@AdrianV
Copy link
Contributor Author

AdrianV commented Jul 29, 2020

I will try

@AdrianV
Copy link
Contributor Author

AdrianV commented Jul 29, 2020

no I have the same problem with haxe 4 and haxe 3.4.
Maybe its a problem of neko 32bit and jit, vs neko 64bit. On my linux with neko 64bit it works. On my windows I have neko in 32bit - but self compiled.
I will check again.

@RealyUniqueName
Copy link
Member

Related Neko change, which is probably the reason why older Neko crash: HaxeFoundation/neko#195

@AdrianV
Copy link
Contributor Author

AdrianV commented Jul 29, 2020

I checked with 32 bit and 64 bit on windows. Both work. It is my self compiled neko version. Sorry for the noice.

@AdrianV
Copy link
Contributor Author

AdrianV commented Jul 29, 2020

It seems to be a neko problem on windows. I opened an issue there HaxeFoundation/neko#211

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

No branches or pull requests

2 participants