Code Monkey home page Code Monkey logo

Comments (4)

tcripps avatar tcripps commented on July 24, 2024

IIRC, there's no compile option when right clicking on a .proto file. You'd normally just invoke the compilation automagically when compiling your module or project. However, let's just ignore that for the moment..

There are a couple of things that could go wrong.

The biggest one right now is that the plugin's initial support for IDEA 12 did not include using the plugin with the external compiler, which is the default compiler option starting with version 12. That may be why you're not seeing any results. The upcoming release of the plugin, 0.5.3 supports using the external compiler. I'm trying to get it out in the next few days.

Another problem could be that you haven't yet set up a facet for your module(s) that contain .proto files. If you have set up a facet, you still might need to specify the output directory for each of them.

It's a little hard to say what the problem is without seeing your setup, but I hope these suggestions will help.

from idea-plugin-protobuf.

tcripps avatar tcripps commented on July 24, 2024

I double-checked with my test project and I was incorrect about the compile option in the menu. I don't normally keep my .proto files in a source root, but if it's in a source root, you can choose to compile it directly. So, then, it's probably one of the other potential issues I mentioned.

from idea-plugin-protobuf.

keithlea avatar keithlea commented on July 24, 2024

Thanks for the response!

I never would have guessed that I had to add a Facet, and I've been an IntelliJ user for 8 years. Couldn't there be a dialog box that pops up after I install the plugin? Or could it auto-detect proto files and add the facet automatically?

from idea-plugin-protobuf.

tcripps avatar tcripps commented on July 24, 2024

No problem. Among other things in the upcoming release is a reworked detector for .proto files that will prompt to set up a facet for the containing module. The process should be a little easier soon.

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.