-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
ScalaPB + Intellij #120
Comments
Hi Nykolas, IntelliJ should be able to see the files in the default place where ScalaPB scalaSource in PB.protobufConfig <<= (sourceManaged in Compile) { _ / " or scalaSource in PB.protobufConfig := file("path/to/somewhere") On Wed, May 18, 2016 at 3:45 PM, Nykolas Laurentino de Lima <
|
@nadavsr thank you very much! I was already posting the solution because I saw it on another issue, thank you anyway!
|
Had the same problem, IntelliJ won't see the generated proto classes. Used the following trick:
@nadavsr You mentioned IntelliJ should see the generated classes, why do we need to add this? I'm using IntelliJ 2016.1.2 with ScalaPB 0.5.27. Thanks |
IntelliJ should see the files in the right place even if you don't add On Tue, May 31, 2016 at 11:54 AM, Martin Tapp notifications@github.com
-Nadav |
By default, my setup doesn't work with IntelliJ. I see the files generated What can I check? Thanks On Wed, Jun 1, 2016 at 12:54 AM, Nadav Samet notifications@github.com
|
Can you try to 'rm -rf .idea' and reimport the project into IntelliJ? On Wed, Jun 1, 2016 at 4:33 AM, Martin Tapp notifications@github.com
|
Thanks, but that didn't work. Seems anything under target/ is not If you know of a better trick or that would embed this within ScalaPB, that Martin On Wed, Jun 1, 2016 at 9:28 AM, Nadav S. Samet notifications@github.com
|
how can I change the output path now? Thanks |
import sbtprotoc.ProtocPlugin.ProtobufConfig And then scalaSource in ProtobufConfig <<= (sourceDirectory in Compile)(_ / "generated-proto") |
For those having an error with SBT compilation, this line did the job for me (based on @rafaparadela's answer, but with the new syntax) scalaSource in sbtprotoc.ProtocPlugin.ProtobufConfig := sourceDirectory.value / "generated-proto" |
The default ScalaPB configuration only generated the
.class
into the output dir.I need to have the generated
.scala
classes in order to Intellij see it. How can I configure the.scala
classes output dir?The text was updated successfully, but these errors were encountered: