HaxeFoundation / HaxeFoundation/haxe

[display] No completion on macro instance fields

Open
#9,837 0 comments 0 reactions 0 assignees View on GitHub
bug feature-ide platform-macro
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

If there's a macro function on an instance, completion for that field fails with
```
Message: Invalid macro access
Code: -32603
```

For example, in the following program, completion fails when typing `m.example(`

```haxe
import haxe.macro.Expr.ExprOf;

class Main {

static function main() {
var m = new Main();
var m.example(| // expected "(param: Float) -> Any"
// get no response and an error message in vshaxe output
}

function new() { }

macro static function example(x: ExprOf, param: Float) {
trace(param);
return macro null;
}

}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.