Code Monkey home page Code Monkey logo

Comments (11)

tcripps avatar tcripps commented on July 24, 2024

Just for reference, from https://developers.google.com/protocol-buffers/docs/proto?hl=en:

The protocol compiler searches for imported files in a set of directories specified on the protocol compiler command line using the -I/--proto_path flag. If no flag was given, it looks in the directory in which the compiler was invoked. In general you should set the --proto_path flag to the root of your project and use fully qualified names for all imports.

from idea-plugin-protobuf.

ajefferson avatar ajefferson commented on July 24, 2024

I agree with mwtaylor.
It's legitimate to specify more than one path using the -I/--proto_path flag. A use case for this is if you need to import google/protobuf/descriptor.proto in order to create custom options and don't want to put the protocol compiler in your project.

from idea-plugin-protobuf.

bwill avatar bwill commented on July 24, 2024

this is also a problem for us. In our project, we're grouping .proto files into folders. When building the project, we build with the proto_path set to the root proto folder, but the plugin always uses the current directory, so it's not possible to get the paths right in the import statement so that both build.

from idea-plugin-protobuf.

sivasankariit avatar sivasankariit commented on July 24, 2024

+1. This creates problems when grouping the .proto files based on package hierarchy.

from idea-plugin-protobuf.

yasserg avatar yasserg commented on July 24, 2024

+1

from idea-plugin-protobuf.

tcripps avatar tcripps commented on July 24, 2024

This was added at the project level by Boris Byk. Thanks, Boris!

from idea-plugin-protobuf.

ehoule avatar ehoule commented on July 24, 2024

Hi, if I got this right, it seems this feature is completed... Would it be possible to make a release so this would be available (without having to do a local build)? Thanks a lot!

from idea-plugin-protobuf.

dattanchu avatar dattanchu commented on July 24, 2024

It has been a month, can we release this fix onto IntelliJ plugin repo please?

from idea-plugin-protobuf.

tcripps avatar tcripps commented on July 24, 2024

There's a release in progress. When the other issues targeted for that release are resolved, we'll ship a new plugin version.

from idea-plugin-protobuf.

joeaniu avatar joeaniu commented on July 24, 2024

waiting the "proto_path setting" feature too. 👍

from idea-plugin-protobuf.

51gordon avatar 51gordon commented on July 24, 2024

waiting the "proto_path setting" feature too.

from idea-plugin-protobuf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.