Skip to content

Name resolution does not match language guide #75

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

Open
doctorstal opened this issue May 2, 2025 · 0 comments
Open

Name resolution does not match language guide #75

doctorstal opened this issue May 2, 2025 · 0 comments

Comments

@doctorstal
Copy link

Language guide defines name resolution as follows:

Packages and Name Resolution
Type name resolution in the protocol buffer language works like C++: first the innermost scope is searched, then the next-innermost, and so on, with each package considered to be “inner” to its parent package. A leading ‘.’ (for example, .foo.bar.Baz) means to start from the outermost scope instead.

In other words models.CompanyResponse should be resolved same as prototes.models.CompanyResponse when called within a scope of prototest package.

Here is a minimal example:
https://github.com/doctorstal/nvim-protols-test/tree/main/prototest

CompanyService and CompanyServiceRelative should be the same, and they are compiled the same by protoc.

However, when I'm using protols and try Go to Definition or References - only CompanyService is working as expected

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

No branches or pull requests

1 participant