coc-java icon indicating copy to clipboard operation
coc-java copied to clipboard

cannot jump to .proto file if symbols is generated from a protobuf file

Open yimingwangdell opened this issue 1 year ago • 2 comments

gd cannot jump to .proto file if symbol is generated from a protobuf file

yimingwangdell avatar Feb 07 '24 08:02 yimingwangdell

protobuf and java are two different languages.

I have this problem too at work. Creating the bridge between both languages is the issue. How I've seen this solved in Ruby land is that there's some auto-generated source file backed by the .proto definition. gd can then link to that auto-generated file.

If the above is your case, be sure to add the path to the auto-generated source files in your java.project.referencedLibraries in your :CocLocalConfig. Then ensure you <build-system> build to generate these source files. gd should be able to jump to them since its referenced.

igbanam avatar Feb 29 '24 03:02 igbanam

@igbanam thanks for your information, but I just want to jump to .proto file. jumping to source file is meaningless for me. because .java file is too big and I can't read it. and this function is implemented in intelliJ. I hope we can have this too on vim.

yimingwangdell avatar Feb 29 '24 05:02 yimingwangdell