Hi - Trying out Java with Pants for the first time...
# development
a
Hi - Trying out Java with Pants for the first time. Is it a pre-requisite to have Scala code in the project for the BSP integration to work in Intellij? I started with java-only and nothings shows up. The example project works fine, but as soon as I convert the Scala code to Java, it's more or less dead. The docs say the Scala plugin in Intellij speaks to Pants, so maybe it's needed to get it going?
h
I don't think it's a prerequisite to have scala code, but possibly the scala backend needs to be enabled? I'm not sure (cc @witty-crayon-22786, @fast-nail-55400 who might know more)
w
The Scala plugin is needed in IntelliJ yea, at least as of last year. It contains/ed the BSP client. They were working on moving BSP into the core, but not sure what has happened with that.
👍 1
f
relatedly, I discovered the
intellij-bsp
plugin for IntelliJ today: https://github.com/JetBrains/intellij-bsp
It seemingly supports JVM and Python (although Pants only supports JVM)
🤘 1
although it does not appear to be published on the JetBrains Marketplace yet
so it would need to be manually built and installed (and treated as an alpha version)