HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] Completion server #60

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Completion server - Haxe - The Cross-platform Toolkit

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

https://haxe.org/manual/cr-completion-server.html

nanjizal commented 4 years ago

trace( s.read() ); is not tracing anything, is there a more complete example with expected output, so I can check that I am using it correctly?

I wanted to try formatting compiler error messages but the documentation above does not seem to be simple enough for me to understand if that is feasible, or how to best debug connection aspects.

Perhaps this is just an old snippit I can't really check against a known expectation.

Has anyone got some tests examples on github I can look through?

RichardBray commented 4 years ago

I've created a short video on how to use the server here https://www.youtube.com/watch?v=3crCJlVXy-8

nanjizal commented 4 years ago

I don't think it really addressed my question, it did not do anything with s.read and it used npm and all sorts of extras that really seem to obscure rather than clarify, an example with out a game engine or npm with s.read would be more useful, but thanks for trying.

RichardBray commented 4 years ago

Ah fair enough, I misread your question I'll take another look.

cedx commented 2 years ago

The compilation server can have some side effects on macro execution.

It would be nice to know what these side effects are. Currently, they are not explained.

zommerfelds commented 2 years ago

The compilation server can have some side effects on macro execution.

Is it possible to let the compiler know to recompile a file if it contains a macro that loads from a file? I'm doing something similar to Strictly Typed JSON but my problem is the compiler doesn't pick up changes to non-Haxe files and my output stays out of date.

Simn commented 2 years ago

https://api.haxe.org/haxe/macro/Context.html#registerModuleDependency