intel / intel/dml-language-server

DLS will fail to bind methods to default declarations when they contain invalid defaults

Open
#207 0 comments 0 reactions 1 assignee Claimed by @JonatanWaern View on GitHub
bug Medium Priority
Dominant language
Rust
Stars
9
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Replicates via

```
template foo {
method foo_method() default {
default(); // invalid, but should not break overrides from below code
}
}

template foo_2 is foo {
method foo_method() {
default(); // goto-def here should find foo_method in foo template, but does not
}
}

is foo_2;
```

Removing the 'default' decl in foo_method fixes the issue. From logs the difference is that we fail to map the cursor position to a symbol in the failing case.

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.