-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Nightly Haxe issues #1763
Comments
Also note: haxe.Timer is also shadowed, according to Zeta: "the proper way to make Timer work would be to integrate the haxe event loop into the Lime event loop." here's how heaps does it |
I noticed this one recently too. In fact, I discovered that Lime's custom In Flash, you can set the stage frame rate to a low value, like 1 FPS, but then call |
So I think the immediate problem is that Lime's I went back to when Lime's version of the class was added. The commit |
I went through the various versions of
That leaves WebAssembly as the tricky part. If not for that, we could simply remove Lime's version of the file. Perhaps we could override Bytes.hx specifically for that target? Point to "templates/webassembly/src" as an additional source directory, and add a custom haxe/io/Bytes.hx in there? Not a huge fan of the idea, though. We'd probably forget it was there, and it'd fall even further behind. |
There was a change to the macro context just a couple days ago. Something to do with caching. Perhaps you were never supposed to be able to check |
in the short term, does this mean that a quick fix is to change AssetMacro's #if html to #js? would this create issues for other js targets like node or something? |
It turns out that won't work. See my PR for details. |
Actually it seems we can't. Classes marked If we wait until runtime, there's an alternate technique that does work. That said, I'm starting to doubt that |
Merged. If you set up the tests to get |
Seems Flixel CI is still failing with nightly haxe even with lime 8.1.2
|
I can't reproduce this locally, can you? |
I wonder if it's linux specific, since Flixel CI uses linux. I'll try on my dual-boot laptop |
I run Linux. |
Just to be certain, can you check this and call out any differences or mistakes? also are you using the develop branch or the actual release? I'll report back after trying nightly with lime 8.1.2, in a bit |
Oh interesting, there's still a difference between Haxe 4.3.4 and nightly. I'll keep digging. |
Ok, I don't fully understand what's going wrong, but the nightly build definitely changes something. I tried hard-coding different #1765 fixes the issue by removing our version of the class and falling back to the standard library's version. Fortunately, though unsurprisingly, the Haxe devs made sure the standard library works. We'll have to merge that PR by the time Haxe 5 comes out. |
Thanks for all you've done! |
Just mentioning this here in case it doesn't solve itself.
Flixel CI has started failing on nightly haxe versions due to lime's shadowed implementation of haxe.io.Bytes with the following errors:
Cpp/Neko:
HL:
HTML5:
the OG haxe.io.Bytes was changed for the first time in 5 years, all they did was remove
#if cs
sections, so I'm not sure why that would cause these specific errorsMy main concern is that we don't really know why lime has it's own Bytes class, so if things do change with Bytes, lime will need to manually make those same changes. I wonder if it's simply better to create a lime.io.Bytes and use that? I also don't see why lime's Bytes has a different constructor for js
The text was updated successfully, but these errors were encountered: