Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field completion with pipe not working #503

Open
mbndr opened this issue Feb 18, 2022 · 2 comments
Open

Field completion with pipe not working #503

mbndr opened this issue Feb 18, 2022 · 2 comments

Comments

@mbndr
Copy link

mbndr commented Feb 18, 2022

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
Copy link
Member

Simn commented Feb 21, 2022

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

@Simn
Copy link
Member

Simn commented Feb 21, 2022

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... HaxeFoundation/haxe@8cff76f

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

@Simn Simn transferred this issue from HaxeFoundation/haxe Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants