akka / akka-grpc

Akka gRPC
https://doc.akka.io/docs/akka-grpc/
Other
432 stars 123 forks source link

sbt plugin considers `src/main/protobuf` a test-resources folder. #234

Open ignasi35 opened 6 years ago

ignasi35 commented 6 years ago

Users see a "test resources root" folder marked in green under src/main on the IDE which is confusing:

screen shot 2018-06-08 at 14 33 10

This could be just an IDE issue, but I suspect the projectSettings added by the sbt-plugin are not correct.

(This is way over my head, could be a false positive and all is good)

johanandren commented 6 years ago

Was that in a vanilla project where you just added the plugin and imported in IntelliJ?

johanandren commented 6 years ago

Verified that it is an issue with a vanilla project.

johanandren commented 6 years ago

I'm not working on this currently, but what I gathered while looking into it was that I think we do some really weird stuff with unmanagedResourceDirectories depending on resourceDirectories across scopes in weird ways. Could be a mistake or it could be a needed hack, not sure. I think this leads to how IntelliJ mistakes the directory for a test resource directory.