Skip to content

Issues with Haxe compilation server #7

@zommerfelds

Description

@zommerfelds

First of all, thanks for providing this library! The API is very nice to use.

This might be a Haxe issue rather than this library's. When working in vscode with the Haxe compilation server turned on (so compiling uses the ---connect argument), I often get the compiler stuck with messages like this:

C:\HaxeToolkit\haxe\lib\heaps/1,9,1/hxd/fs/Convert.hx:269: characters 17-76 : Uncaught exception Stack overflow
C:\HaxeToolkit\haxe\lib\heaps/1,9,1/hxd/fs/Convert.hx:1: character 1 : Called from here
C:\HaxeToolkit\haxe\lib\heaps/1,9,1/hxd/fs/Convert.hx:269: characters 34-75 : Called from here
C:\HaxeToolkit\haxe\std/haxe/macro/Context.hx:425: characters 10-39 : Called from here
C:\HaxeToolkit\haxe\std/haxe/macro/ComplexTypeTools.hx:49: characters 29-73 : Called from here
C:\HaxeToolkit\haxe\lib\echoes/git/src/echoes/core/macro/MacroTools.hx:76: characters 16-43 : Called from here
C:\HaxeToolkit\haxe\lib\echoes/git/src/echoes/core/macro/SystemBuilder.hx:122: characters 43-66 : Called from here
C:\HaxeToolkit\haxe\std/Lambda.hx:158: characters 4-8 : Called from here
C:\HaxeToolkit\haxe\lib\echoes/git/src/echoes/core/macro/SystemBuilder.hx:116: lines 116-140 : Called from here
game/src/systems/GrenadeSystem.hx:12: character 1 : Called from here
C:\HaxeToolkit\haxe\std/haxe/macro/Context.hx:519: characters 3-46 : Called from here
C:\HaxeToolkit\haxe\lib\echoes/git/src/echoes/core/macro/ComponentBuilder.hx:81: characters 17-40 : Called from here
C:\HaxeToolkit\haxe\lib\echoes/git/src/echoes/core/macro/ComponentBuilder.hx:99: characters 16-66 : Called from here
C:\HaxeToolkit\haxe\lib\echoes/git/src/echoes/core/macro/ViewBuilder.hx:96: characters 98-126 : Called from here
C:\HaxeToolkit\haxe\lib\echoes/git/src/echoes/core/macro/ViewBuilder.hx:96: characters 54-157 : Called from here
C:\HaxeToolkit\haxe\lib\echoes/git/src/echoes/core/macro/ViewBuilder.hx:37: characters 16-71 : Called from here
... more messages omitted ...

Also, auto-completion and jump to reference often breaks due to this.

When I restart the compilation server (Ctrl+Shift+P -> Haxe: Restart Language Server) everything compiles fine though. This happens so often I considering to switch to a non-macro based library. :( Or I guess I could disable the compilation server and deal with slower compilation times and no auto-completion.

I'm using Haxe 4.2.5 and the JS target.

Did anybody ever experience this?

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