llvm / llvm/vscode-mlir

Standalone project cannot find reference in ".td" file.

Open
#7 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
71
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I followed this page https://github.com/llvm/llvm-project/tree/main/mlir/examples/standalone, use "Building - Component Build" to build my out-of-tree project. I copy example/standalone to other folder as my template project and successfully configure and build it.

But the ".td" file in new folder project cannot find reference and definition in vscode. Should I specific something like include path in MLIR extension's setting? By the way, .cpp files go to definition function is ok.

1. Standalone copy to new folder cannot go to definition.
![image](https://github.com/user-attachments/assets/2a57bfa2-b0ab-47f1-97de-4879553099e9)

2. Standalone inside llvm-project mlir/example is ok.
![image](https://github.com/user-attachments/assets/35abbc27-d5bc-4484-8e1d-2aa7a37ee139)

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare the copied out-of-tree standalone project with llvm-project/mlir/examples/standalone, focusing on the .td files and the VS Code MLIR extension behavior. Start from the extension's settings or definition-provider entry points, then verify the result by checking whether references and definitions resolve in the copied project's .td files as they do in the in-tree example.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.