-
Notifications
You must be signed in to change notification settings - Fork 28
scala library doesn't show up in intellij #246
Comments
Hey @joprice you shouldn't have to include the Scala standard library as a dependency. How are you binding Also, what version of the IntelliJ plugin are you using? |
I am using Intelij 2019.2.4 and Bazel plugin 2019.11.14.0.1. I'm configuring it like this: bind(
name = "default_scala",
actual = "@rules_scala_annex//src/main/scala:zinc_2_12_8",
) |
I've seen this issue when a custom
|
I poked around a bit more. This is an odd bug. If Specifying your own ScalaConfiguration would make the issue go away because it specifies a e.g.
|
I'm also having this issue when using multiple scala versions, and the workaround doesn't seem to help. I have some projects on 2.12 and others on 2.11. Both projects seem to think they have some scala version available, as I can jump to source, but there is always a banner up top saying "No Scala SDK in module". When clicking Setup Scala SDK, it offers an incorrect version from the local ivy cache. For scala 2.12 projects, newer features like |
I was not able to get intellij to recognize my scala library version until I added the scala library to the runtime_deps of the scala_library (adding it to deps caused buildozer to request removing it):
Not sure whether this is expected, or if an issue with how the rules are defined or something with my setup.
The text was updated successfully, but these errors were encountered: