HeapsIO / hide

Heaps IDE
BSD 2-Clause "Simplified" License
529 stars 61 forks source link

haxe hide.hxml fails #227

Open kgish opened 1 year ago

kgish commented 1 year ago

When I follow th readme instructions and try and run the command haxe hide.hxml I get the following errors:

hide/view/l3d/Gizmo.hx:408: characters 32-41 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/l3d/Gizmo.hx:408: characters 48-63 : Unknown identifier : AbsoluteUnbound
hide/view/l3d/Gizmo.hx:408: characters 72-80 : Unknown identifier : Absolute
hrt/prefab/l3d/MeshSpray.hx:217: characters 10-29 : Null<h3d.scene.MeshBatch> has no field alwaysSyncAnimation
hrt/prefab/l3d/MeshSpray.hx:246: characters 10-29 : h3d.scene.Object has no field alwaysSyncAnimation
hrt/prefab/l3d/Spray.hx:85: characters 10-29 : h3d.scene.Object has no field alwaysSyncAnimation
hrt/prefab/fx/FX.hx:112: characters 37-56 : Unknown identifier : alwaysSyncAnimation
hrt/prefab/fx/Emitter.hx:552: characters 10-20 : h3d.scene.MeshBatch has no field calcBounds
hrt/prefab/Light.hx:146: characters 63-74 : h3d.scene.Object should be Null<h3d.Vector>
hrt/prefab/Light.hx:146: characters 63-74 : ... For optional function argument 'dir'
hrt/prefab/Light.hx:176: characters 31-56 : Type not found : h3d.pass.CascadeShadowMap
hide/view/CameraController.hx:42: characters 33-42 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/CameraController.hx:42: characters 45-60 : Unknown identifier : AbsoluteUnbound
hide/view/CameraController.hx:49: characters 34-43 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/CameraController.hx:49: characters 46-54 : Unknown identifier : Absolute
hide/view/CameraController.hx:88: characters 33-42 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/CameraController.hx:88: characters 45-53 : Unknown identifier : Absolute
hide/view/l3d/Gizmo.hx:406: characters 63-72 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/l3d/Gizmo.hx:406: characters 76-84 : Unknown identifier : Absolute
Speedphoenix commented 1 year ago

are you up to date on your heaps version? https://github.com/HeapsIO/heaps

ernesernesto commented 11 months ago

Also fails using latest heaps from git (1.10.0), will show this errors


hrt/prefab/fx/BaseFX.hx:196: characters 24-54 : Module hxsl.Cache does not define type BatchInstanceParams
hrt/prefab/fx/BaseFX.hx:197: characters 12-27 : Null<h3d.scene.MeshBatch> has no field instancedParams
hrt/prefab/l3d/Trails.hx:739: characters 16-28 : h3d.Buffer has no field uploadFloats
hrt/prefab/fx/Emitter.hx:1295: characters 20-32 : Field addBoundsRec is declared 'override' but doesn't override any field (Suggestion: getBoundsRec)
hrt/prefab/l3d/HeightMap.hx:1166: characters 4-36 : Type not found : hxd.BufferFormat
hrt/prefab/l3d/HeightMap.hx:1168: characters 4-33 : Type not found : hxd.BufferFormat
hrt/prefab/l3d/HeightMap.hx:1170: characters 4-29 : Type not found : hxd.BufferFormat
hrt/prefab/l3d/HeightMap.hx:1172: characters 4-26 : Type not found : hxd.BufferFormat
hrt/prefab/l3d/HeightMap.hx:1165: characters 7-13 : Variables of type Void are not allowed
hrt/prefab/l3d/HeightMap.hx:1173: characters 70-76 : Void has no field stride
hrt/prefab/l3d/HeightMap.hx:1173: characters 33-76 : Float should be Int
hrt/prefab/l3d/HeightMap.hx:1173: characters 33-76 : ... For optional function argument 'length'
hrt/prefab/l3d/HeightMap.hx:1190: characters 37-43 : Void should be Int
hrt/prefab/l3d/HeightMap.hx:1190: characters 37-43 : ... For function argument 'stride'
hrt/prefab/l3d/Trails.hx:433: characters 13-45 : Type not found : hxd.BufferFormat
hrt/prefab/l3d/SplineMesh.hx:107: characters 26-42 : Type not found : hxd.BufferFormat```
andresmakesgames commented 10 months ago

I was also experiencing this same issue. Pulling the heaps repo from git to a local directory and targeting that directory for my heaps library (haxe dev heaps my/directory) resolved the issue. Decent enough workaround.

saklis commented 10 months ago

I'm getting different error while building: haxe/lib/heaps/git/hxd/res/Image.hx:318: characters 22-29 : Class<format.png.Tools> has no field extract (Suggestion: extract32)

kLabz commented 10 months ago

You need git version of format lib (https://github.com/HaxeFoundation/format)

saklis commented 10 months ago

You need git version of format lib (https://github.com/HaxeFoundation/format)

Works! Missed it because it wasn't mentioned in readme.

Thank you!

melMass commented 9 months ago

Hi, this is still an issue when using:

haxelib git heaps https://github.com/HeapsIO/heaps.git

As haxelib installs the non git version of format (3.6)

Running

haxelib git format https://github.com/HaxeFoundation/format
haxelib update

Does fix it.

rbobka commented 8 months ago

I attempted to build HIDE using the instructions. I was given the error message:

hrt/impl/Gradient.hx:5: characters 8-19 : Type not found : h3d.Vector4

Is there a library that I'm missing? I thought that h3d had a Vector but I don't know where to find a Vector4.

ncannasse commented 8 months ago

You need latest heaps master to compile hide.

Le lun. 18 déc. 2023 à 02:48, rbobka @.***> a écrit :

I attempted to build HIDE using the instructions. I was given the error message:

hrt/impl/Gradient.hx:5: characters 8-19 : Type not found : h3d.Vector4

Is there a library that I'm missing? I thought that h3d had a Vector but I don't know where to find a Vector4.

— Reply to this email directly, view it on GitHub https://github.com/HeapsIO/hide/issues/227#issuecomment-1859414223, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQGNTPV5BE5TU2KCZD3YJ6OFLAVCNFSM6AAAAAASRBEQ6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGQYTIMRSGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rbobka commented 8 months ago

Thank you Nicolas, after I posted this I did a deep dive and saw that you had made some changes to Heaps in the past month including vectors. I guess my real problem is that haxelib update does not seem to be updating my libraries (even though it says it is).

ncannasse commented 8 months ago

I haven't made a haxelib release recently. Will do later this year or early next year.

Le lun. 18 déc. 2023 à 14:25, rbobka @.***> a écrit :

Thank you Nicolas, after I posted this I did a deep dive and saw that you had made some changes to Heaps in the past month including vectors. I guess my real problem is that haxelib update does not seem to be updating my libraries (even though it says it is).

— Reply to this email directly, view it on GitHub https://github.com/HeapsIO/hide/issues/227#issuecomment-1860492930, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQFXCBL7SRWZQDXZ6XTYKA723AVCNFSM6AAAAAASRBEQ6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRQGQ4TEOJTGA . You are receiving this because you commented.Message ID: @.***>

yz-xlame commented 7 months ago
  1. remove all package
    haxelib remove heaps
    haxelib remove castle
    haxelib remove hxbit
    haxelib remove hscript
    haxelib remove hxnodejs
    haxelib remove domkit
    haxelib remove hx3compat
  2. install all package
    haxelib git heaps https://github.com/HeapsIO/heaps
    haxelib git castle https://github.com/ncannasse/castle
    haxelib git hxbit https://github.com/ncannasse/hxbit
    haxelib git hscript https://github.com/HaxeFoundation/hscript
    haxelib git hxnodejs https://github.com/HaxeFoundation/hxnodejs
    haxelib git domkit https://github.com/HeapsIO/domkit
    haxelib git hx3compat https://github.com/HaxeFoundation/hx3compat

    work for me

kLabz commented 7 months ago

Yeah works again since format 3.7.0 has been released since then