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

[hl] Move hl.Format into lib format/heaps #1250

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

yuxiaomao
Copy link
Contributor

@skial skial mentioned this pull request Dec 11, 2024
1 task
@yuxiaomao yuxiaomao merged commit e982664 into HeapsIO:master Dec 12, 2024
@yuxiaomao yuxiaomao deleted the dev-hlformatsplit branch December 12, 2024 07:54
@gakadam
Copy link

gakadam commented Jan 18, 2025

This commit is causing following errors:

 *  Executing task: haxe --connect 127.0.0.1:6000 compile.hxml -D message.log-file=/tmp/vshaxe-HelloHashlink-active configuration-errors.log -D message.log-format=indent 

/home/user/haxe/lib/heaps/git/hxd/res/Image.hx:464: characters 12-40 : Type not found : format.hl.Native
/home/user/haxe/lib/heaps/git/hxd/res/Image.hx:494: characters 8-24 : Type not found : format.hl.Native
/home/user/haxe/lib/heaps/git/hxd/res/Image.hx:447: characters 12-40 : Type not found : format.hl.Native
/home/user/haxe/lib/heaps/git/hxd/res/Image.hx:456: characters 8-24 : Type not found : format.hl.Native
/home/user/haxe/lib/heaps/git/hxd/Pixels.hx:400: characters 9-29 : Type not found : format.hl.Native
/home/user/haxe/lib/heaps/git/hxd/BitmapData.hx:100: characters 3-19 : Type not found : format.hl.Native

I was following instructions here:

https://heaps.io/documentation/hello-hashlink.html

My set up:

$ hl
HL/JIT 1.14.0 (c)2015-2023 Haxe Foundation
  Usage : hl [--debug <port>] [--debug-wait] <file>
$ haxe --version
4.3.6

I undid the commit to previous code in BitmapData.hx and the error went away. I am not very well versed with Haxe to debug this.

CC: @yuxiaomao Thanks.

@yuxiaomao
Copy link
Contributor Author

Thank you for reporting this. Indeed, you'll need to add -lib format now (install with haxelib git format https://github.com/HaxeFoundation/format before new release), because some functions API are moved from haxe std (for haxe 5.0) to lib format (image conversions are not really meaningful for std).
I just updated the doc, should be sync to wiki / heaps.io soon!

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 this pull request may close these issues.

2 participants