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

Symbol detection gives incorrect locations #64

Open
TheGag96 opened this issue Apr 18, 2022 · 3 comments
Open

Symbol detection gives incorrect locations #64

TheGag96 opened this issue Apr 18, 2022 · 3 comments

Comments

@TheGag96
Copy link

Using Ctrl+R to search through symbols in a given file seems to yield not the actual definition site of a symbol, but just a random place where it happens to be mentioned. Try searching for Feature in target.zig to see what I mean.

@Manuzor
Copy link

Manuzor commented Aug 9, 2022

It appears declarations aren't picked up as such. I believe what's missing is meta.struct.zig.

Here's target.zig as op described.
image

Here's a struct definition in a cpp file.
image

@gwenzek
Copy link
Contributor

gwenzek commented Sep 2, 2022

can you try #67 ?

@TheGag96
Copy link
Author

TheGag96 commented Sep 5, 2022

can you try #67 ?

With just a quick test, this seems to work a lot better!

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

Successfully merging a pull request may close this issue.

3 participants