Haxe 4.0 introduces a new way of communicating IDE and the compiler.
Here's what an IDE needs to do:
- start a TCP server on some port (can pass
0
to bind to any available one) - start
haxe --server-connect <port>
where<port>
is replaced with the port number the started TCP server was bound to. - haxe will connect to that server and await requests, ensure that happens
- send messages of the following structure:
- 32-bit little endian signed int with length of the following message body
- body
- expect response messages of the same structure
(this length-prefixed message format is the same as with --wait-stdio
)