I’m trying the giter8 project template instead, and notice that it generates the counter_api.proto in the root folder, not under /api (unlike counter_domain.proto which is under /domain), so I tried doing that with the quickstart but not difference.
Sorry to hear that it was a bumpy ride, but thanks for letting us know of your troubles getting started with the Scala Kalix samples.
For the sbt plugins, there is a separate repository at https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases. sbt comes pre-configured with this resolver, so not sure why you could not resolve the plugins. Maybe your machine has some overrides or you are on a corporate network with a proxy in-between that does not let you resolve the plugins?
As far as I know IntelliJ does not figure out and mark up directories specifically as generated sources, but if I download the Customer Registry quickstart or sbt new the g8 value entity template, first compile it with sbt and then open the project with IntelliJ 2022.2.2 it finds all generated sourced and I get no squiggly lines, without any manual marking directories up as generated sources.
Could it be that you are on an older version of IntelliJ that does not behave as well?
Thanks Jonathan!.. and happy to see your quick response, I wasn’t sure how much support I’d get since posts here are few lately, makes me feel better about betting on this platform.
Hmm I’m on a fresh machine with no previous dev toolkits, just installed sbt too, and not in a corporate network. Do you see any issue with leaving the “resolvers += Classpaths.sbtPluginReleases” in plugins.sbt?
Using latest version of IntelliJ, but I did load the project before running sbt compile, so that’s a good suggestion I can try for a clean setup, though the way I got it now I think is fine.
Hmm tried doing a fresh project from the g8 template, compiled it, then import into IntelliJ… all source files disappear. Might be good to add a video of that to your YT channel, maybe there’s some setting on import that i’m doing wrong. Sorry i’m a sbt newbie, been using Gradle.
Going to continue with my previously loaded project that I got working by marking the output dir as sources root.