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

Static Extension failing in nightly builds (Flixel CI error) #11353

Closed
Geokureli opened this issue Oct 31, 2023 · 12 comments
Closed

Static Extension failing in nightly builds (Flixel CI error) #11353

Geokureli opened this issue Oct 31, 2023 · 12 comments

Comments

@Geokureli
Copy link

Geokureli commented Oct 31, 2023

Flixel CI has been failing nightly builds as of late:

> haxelib run openfl build coverage html5 -Dcoverage2
/flixel/FlxSprite.hx:999: characters 19-33 : openfl.geom.ColorTransform has no field setMultipliers (Suggestion: redMultiplier)
/flixel/FlxSprite.hx:1001: characters 19-33 : openfl.geom.ColorTransform has no field setMultipliers (Suggestion: redMultiplier)

the issue is that the static extender class, FlxColorTransformUtil seems to be ignored, despite being used

Note this only happens in the coverage test with coverage2 enabled which is defined here, it simply enables debug mode

It's hard to create a more simplified repro, but if there's anything else you need, I will try

@kLabz
Copy link
Contributor

kLabz commented Oct 31, 2023

Sounds like a problem with the coverage macro. Where is it from?

@Simn
Copy link
Member

Simn commented Oct 31, 2023

Would be good to know which change broke this. It's probably module resolution, but static extensions shouldn't really be affected by it much, so I'm a bit curious.

@kLabz
Copy link
Contributor

kLabz commented Oct 31, 2023

I suspect the error position is not the actual position, but a macro using that position and using some "deprecated" module resolution

@Geokureli
Copy link
Author

Geokureli commented Oct 31, 2023

I see this in BOTH the earliest failing and latest succeeding CI jobs:

Resolved to nightly build 53e7a9f. Downloading ...

Earlier jobs have a different value. I assumed this would be some commit hash but the fact that it appears in both failing and succeeding jobs makes me think that perhaps this started happening when I changed a secondary flixel repo, like flixel-ui or flixel-addons, or maybe a change to lime or openfl.

@Geokureli
Copy link
Author

Sounds like a problem with the coverage macro. Where is it from?

coverage "macro"? I don't understand, I link the coverage test's project.xml in the original post, if that helps

@Gama11
Copy link
Member

Gama11 commented Nov 9, 2023

That project uses --macro include('flixel', true, ['flixel.system.macros']) to make sure everything is compiled.

@Geokureli
Copy link
Author

Geokureli commented Nov 14, 2023

That project uses --macro include('flixel', true, ['flixel.system.macros']) to make sure everything is compiled.

@Gama11 I don't understand the implication of your post. Is there anything I need to do in order to fix Flixel CI or help fix this issue?

@Gama11
Copy link
Member

Gama11 commented Nov 15, 2023

That was more directed towards @kLabz' "what macro" question.

@kLabz
Copy link
Contributor

kLabz commented Nov 15, 2023

Yeah I expected some macro doing "real coverage" instead of an "import all" thing.
Could be a typing order issue?

@Simn
Copy link
Member

Simn commented Nov 18, 2023

The -Dcoverage1 version does not reproduce this for me:

C:\git\flixel\tests>haxelib run openfl build coverage neko -Dcoverage1
C:/git/spinehaxe/spinehaxe/atlas/Format.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/attachments/AttachmentType.hx:28: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/animation/EventType.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/TransformMode.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/PositionMode.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/SpacingMode.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/RotateMode.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/BlendMode.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/atlas/TextureFilter.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/atlas/TextureWrap.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/spinehaxe/spinehaxe/animation/TimelineType.hx:33: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
C:/git/flixel-addons/flixel/addons/nape/FlxNapeSpace.hx:67: characters 3-39 : Warning : (WDeprecated) FlxG.plugins.add is deprecated, use `addIfUniqueType` or `addPlugin`, instead.
C:/git/flixel-addons/flixel/addons/nape/FlxNapeSpace.hx:67: characters 3-39 : ... Note: In a later version `add` will be changed to behave like `addPlugin`
C:\git\haxe\std/haxe/macro/Compiler.hx:396: characters 6-17 : Warning : (WDeprecated) Usage of this field is deprecated
C:\git\haxe\std/haxe/macro/Compiler.hx:408: characters 6-17 : Warning : (WDeprecated) Usage of this field is deprecated
C:\git\haxe\std/haxe/macro/Compiler.hx:423: characters 6-18 : Warning : (WDeprecated) Usage of this field is deprecated

C:\git\flixel\tests>echo %ERRORLEVEL%
0

With -Dcoverage2 I do see it though:

C:/git/flixel/flixel/FlxSprite.hx:998: characters 19-33 : openfl.geom.ColorTransform has no field setMultipliers (Suggestion: redMultiplier

I don't know why that's the case and what it means.

@Simn
Copy link
Member

Simn commented Nov 18, 2023

And yes I confirm that this was caused by #11168.

@Simn
Copy link
Member

Simn commented Nov 18, 2023

Fixed by #11388.

@Simn Simn closed this as completed Nov 18, 2023
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

No branches or pull requests

4 participants