ksprojects / protobuf-jetbrains-plugin

Protobuf Support for JetBrains IDEs
https://plugins.jetbrains.com/plugin/8277
Apache License 2.0
259 stars 45 forks source link

Is it possible to use plain imports in protobuf files and resolving them by custom import paths? #158

Closed lolgear closed 3 years ago

lolgear commented 3 years ago

Is your feature request related to a problem? Please describe. I have a project with protobuf files. Of course. Some of these files depend on others.

import "custom/import/file.proto"

My target is a binary library with protobuf files as interfaces (to generate bindings to this library). When I build a release of library, I also include all protobuf files with its raw ( project-oriented ) paths. I would like to change imports either at build phase or even in project.

Describe the solution you'd like I would like to know if this plugin support custom imports for this case. If I import only folders of protobuf files, could I change import statements to include only these files? If no, it would be nice to have this option.

For example, it would be possible:

import "file.proto"

To achieve that you should add import path ( folder ).

  1. Add import path. "custom/import"
  2. Change proto.

Of course, this solution should support navigation via IDE. So, import statements in protos should be resolved to project-structured paths.

jvolkman commented 3 years ago

@lolgear are you sure this is the plugin you're using? It's been unsupported for a while.

lolgear commented 3 years ago

Not sure, I followed a link from google search results.

kshchepanovskyi commented 3 years ago

This plugin is not supported anymore. Please switch to https://github.com/jvolkman/intellij-protobuf-editor/