Skip to content
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

Add Kotlin-specific data in BSP build targets #3644

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

alexarchambault
Copy link
Contributor

This PR adds Kotlin-specific data in BSP build targets of KotlinModules. This is meant to comply with how intellij-bsp seems to expect Kotlin details. If the IntelliJ version we talk to via BSP doesn't seem to support such data (that is, it doesn't claim to support Kotlin via BSP), we keep trying to have intellij-scala handle Kotlin modules, like done in #3643.

@alexarchambault
Copy link
Contributor Author

Includes #3608 and #3643 for now

Just in case, I'm not sure Metals uses that. Don't know about IntelliJ.
Ideally, I'd like to pass the whole InitializeBuildParams here, but
scalalib doesn't pull bsp4j (not sure if there's a reason for that)
But keep advertizing Kotlin modules as Scala ones to IntelliJ when it
doesn't claim supporting Kotlin via BSP
@alexarchambault
Copy link
Contributor Author

alexarchambault commented Oct 17, 2024

On hold because:

  • this breaks binary compatibility (although this could be overcome with some refactoring)
  • IntelliJ doesn't use the extra data we add in BSP responses yet, so there's no hurry to have them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant