Skip to content

Compilation problems on async example #6

Description

@IBwWG

I tried to use moon-core straight out of the box to convert a function of mine to async, so that it could show a loading indicator while loading. I got some compiler errors.

So I tried to just compile the sugared async example, and got the same errors. Maybe my haxe 3.2.1 for win7x64 is the wrong environment? Or am I missing something else?

Here's trying to compile the example from the command line:

C:\HaxeToolkit\haxe\lib\moon-core\1,0,0\test>haxe -lib moon-core -main AsyncSuga
redExamples AsyncSugaredExamples.hx
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:20
: characters 22-42 : Class<haxe.macro.Context> has no field getLocalType
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:58
: characters 22-40 : Class<haxe.macro.Context> has no field currentPos
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:60
: characters 25-47 : Class<haxe.macro.Context> has no field getBuildFields
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:12
5: characters 12-30 : Class<haxe.macro.Context> has no field defineType
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:20
: characters 22-42 : Class<haxe.macro.Context> has no field getLocalType
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncMacroTools.hx
:121: characters 27-41 : Class<haxe.macro.Context> has no field typeof
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:70: characters 29-52 : Class<haxe.macro.Context> has no field getExpectedType
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:79: characters 30-43 : Class<haxe.macro.Context> has no field error
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:90: characters 25-39 : Class<haxe.macro.Context> has no field typeof
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:121: characters 26-39 : Class<haxe.macro.Context> has no field error
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:200: characters 15-37 : Class<haxe.macro.Context> has no field getLocalModule
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:648: characters 34-47 : Class<haxe.macro.Context> has no field error
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:654: characters 30-43 : Class<haxe.macro.Context> has no field error
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:1173: characters 32-34 : Class<haxe.macro.Context> has no field makeExpr
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:1273: characters 48-50 : Class<haxe.macro.Context> has no field makeExpr
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:1307: characters 38-40 : Class<haxe.macro.Context> has no field makeExpr
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:1313: characters 36-38 : Class<haxe.macro.Context> has no field makeExpr
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:1339: characters 43-45 : Class<haxe.macro.Context> has no field makeExpr
C:\HaxeToolkit\haxe\lib\moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.h
x:1353: characters 51-53 : Class<haxe.macro.Context> has no field makeExpr

And here's from my project:

C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:20: characters 22-42 : Class<haxe.macro.Context> has no field getLocalType
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:58: characters 22-40 : Class<haxe.macro.Context> has no field currentPos
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:60: characters 25-47 : Class<haxe.macro.Context> has no field getBuildFields
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:125: characters 12-30 : Class<haxe.macro.Context> has no field defineType
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/signal/SignalMacro.hx:20: characters 22-42 : Class<haxe.macro.Context> has no field getLocalType
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncMacroTools.hx:121: characters 27-41 : Class<haxe.macro.Context> has no field typeof
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:70: characters 29-52 : Class<haxe.macro.Context> has no field getExpectedType
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:79: characters 30-43 : Class<haxe.macro.Context> has no field error
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:90: characters 25-39 : Class<haxe.macro.Context> has no field typeof
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:121: characters 26-39 : Class<haxe.macro.Context> has no field error
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:200: characters 15-37 : Class<haxe.macro.Context> has no field getLocalModule
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:648: characters 34-47 : Class<haxe.macro.Context> has no field error
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:654: characters 30-43 : Class<haxe.macro.Context> has no field error
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:1173: characters 32-34 : Class<haxe.macro.Context> has no field makeExpr
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:1273: characters 48-50 : Class<haxe.macro.Context> has no field makeExpr
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:1307: characters 38-40 : Class<haxe.macro.Context> has no field makeExpr
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:1313: characters 36-38 : Class<haxe.macro.Context> has no field makeExpr
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:1339: characters 43-45 : Class<haxe.macro.Context> has no field makeExpr
C:/HaxeToolkit/haxe/lib/moon-core/1,0,0/src/moon/macros/async/AsyncTransformer.hx:1353: characters 51-53 : Class<haxe.macro.Context> has no field makeExpr

(...plus a few others specific to my project)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions