HaxeFoundation / HaxeManual

The official Haxe manual
https://haxe.org/manual/
Creative Commons Attribution 4.0 International
218 stars 154 forks source link

Field completion with pipe not working #503

Open mbndr opened 2 years ago

mbndr commented 2 years ago

Hey, I wanted to use the field completion compiler service (https://haxe.org/manual/cr-completion-field-access.html) and just copied the example with use of pipe. My code:

class Main {
  public static function main() {
    trace("Hello".|
  }
}

Command: haxe --display Main.hx@0

That should print the correct output (see link above), but instead I get:

class
<il>
<i k="keyword">package</i><i k="keyword">import</i><i k="keyword">using</i><i k="keyword">private</i><i k="keyword">extern</i><i k="keyword">class</i><i k="keyword">interface</i><i k="keyword">enum</i><i k="keyword">abstract</i><i k="keyword">typedef</i><i k="keyword">final</i></il>

When I call haxe --display Main.hx@65 I get desired output, so I guess only something went wrong with the pipe? Or am I missing something?

I'm using Haxe 4.2.4 Also checked with the latest build (20220217191237_46096c3)

Simn commented 2 years ago

We should remove any mention of that pipe-completion from documentation. This was a debug feature and should never have been officially documented.

Simn commented 2 years ago

I just dug up the commit, which gave me some trouble because I was somehow surprised by the fact that 2018 was almost four years ago... https://github.com/HaxeFoundation/haxe/commit/8cff76fd23537176387da8df9de63e2d2bad513d

So yeah, this should be removed from the HaxeManual documentation.