-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix proto imports cannot see other proto folders #111
Comments
There might be 2-3 related problems. Have a multi-module sbt project with few services sharing a domain model, The first issue is making the dependency work for both Had to use symbolic links to the shared domain model proto file. Using these settings
Second issue: this is how generated code looks like: The third issue : Scala classes generated from shared module are not visible to sbt build (getting compile errors; Intellij sees them).
UPDATE : this is how the correct generated service should look like
@AdrianRaFo this is the only blocking issue; Is this a plugin issue or a Used |
I guess is a skeuomorph one but people in charge of this could verify it |
I'm taking a look at this. My first impression for imports is that we need to pipe |
Ok, I have located the place where slash should be replaced with dots (or whatever other adjustments that we may need to do): https://github.com/higherkindness/skeuomorph/blob/master/src/main/scala/higherkindness/skeuomorph/protobuf/ParseProto.scala#L117 Let me test a bit more and I will open a PR fixing these bugs. |
@bilki thanks - please also check if these soft links can be avoided. Cannot see how unless |
@SemanticBeeng I don't think we could get rid of those soft links :( Anyway, check the new PRs that solve the problem of the nested folders containing imported proto files. |
Closed by #115 |
@SemanticBeeng discovered an issue on the
Protobuf
imports where if we have 2 folders withproto
files even on the same module we are not able to import from one folder to another (you can see the diff here ).The real problem is we are facing here is that we are missing the
-I
argument on theProtobuf
compilation which should allow us to add the other folder on our compilation AFAIK.The text was updated successfully, but these errors were encountered: