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

Go to definition not implemented #3

Closed
rustand2 opened this issue Oct 10, 2023 · 4 comments
Closed

Go to definition not implemented #3

rustand2 opened this issue Oct 10, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@rustand2
Copy link

rustand2 commented Oct 10, 2023

Hello, I'm trying to use this in emacs, but I'm getting an error saying that the server does not support the method textDocument/definition. I feel like this is the main feature needed by a language server for bitbake, to avoid constantly needing to use ag/grep to find package definitions.

@Freed-Wu
Copy link
Owner

Yes, It need more works to make it available.

Currently, this LS uses tree-sitter-bitbake to parse bitbake to get AST. Perhaps oelint-parser will be a better choice. In conclusion, perhaps there will be a large change in the future.

@Freed-Wu Freed-Wu pinned this issue Oct 10, 2023
@Freed-Wu
Copy link
Owner

BTW, if anyone is curious how to realize goto defintion/references, here is a reference.

@Freed-Wu
Copy link
Owner

Freed-Wu commented Nov 8, 2023

Related issue: priv-kweihmann/oelint-parser#127

@Freed-Wu
Copy link
Owner

I've refactored the code. This is a demo video: https://asciinema.org/a/628560

628560

Is it you need?

@Freed-Wu Freed-Wu unpinned this issue Mar 1, 2024
@Freed-Wu Freed-Wu added the enhancement New feature or request label Mar 1, 2024
@Freed-Wu Freed-Wu self-assigned this Mar 1, 2024
Freed-Wu added a commit that referenced this issue Mar 25, 2024
Add Function to definition, fix #3
Fix Line with InFileLine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants