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

Haxe error Invalid_argument("index out of bounds") on JS project compile with --connect #11589

Closed
yuxiaomao opened this issue Feb 21, 2024 · 4 comments · Fixed by #11617
Closed
Assignees

Comments

@yuxiaomao
Copy link
Contributor

Recently (bisect tell me this is the first bad commit 30a0163), when I build a JS project such as hide for the second time and above (with --connect), it fail with Invalid_argument("index out of bounds").

This complicates development with VSCode.

@Simn
Copy link
Member

Simn commented Feb 21, 2024

Could you define the environment variable OCAMLRUNPARAM=b and post the printed stack trace?

@yuxiaomao
Copy link
Contributor Author

It does not show more information

$ OCAMLRUMPARAM=b haxe.exe --connect 127.0.0.1:6001 hide.hxml
Invalid_argument("index out of bounds")

@kLabz
Copy link
Contributor

kLabz commented Feb 21, 2024

Can repro locally

@kLabz kLabz self-assigned this Feb 22, 2024
@kLabz kLabz closed this as completed in 9aae69c Feb 23, 2024
@yuxiaomao
Copy link
Contributor Author

yuxiaomao commented Mar 20, 2024

The issue is fixed for hide, but not for https://github.com/vshaxe/hashlink-debugger (Build with OCAMLRUMPARAM=b haxe.exe --connect 127.0.0.1:6000 build.hxml)
Same error, no additional print with OCAMLRUMPARAM=b, same bad commit.
@kLabz Could you please check?

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

Successfully merging a pull request may close this issue.

3 participants