Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jastice/212227aa5fc29426aeea3b93280bcd8a to your computer and use it in GitHub Desktop.
Save jastice/212227aa5fc29426aeea3b93280bcd8a to your computer and use it in GitHub Desktop.
Instructions to try the BSP IntelliJ-Bloop integration out.

Installation instructions

  1. Install bloop 1.0.0-M11 by following the Bloop installation instructions. Then, make sure you start up the bloop server on the background and to generate the configuration files by running bloopInstall in your build tool.
  2. Install IntelliJ 2018.2 EAP and then enable the nightly version of the Scala Plugin by opening Preferences | Languages & Frameworks | Scala | Updates tab and selecting the Nightly plugin update channel: intellij-eap
  3. check for updates and download the Scala plugin Nightly release.
  4. Reboot IntelliJ. The Scala plugin should now have version 2018.2.277 or higher (check in Preferences | Plugins)
  5. Open the "Find Action" search box (usual hotkey Shift+Ctrl+A or shift+cmd+A) and search for "bsp". The search box will show the full action name: "Enable experimental bsp support". Click on it.
  6. Import a project that has been previously exported to Bloop by selecting "Import Project" and opening the project directory. When IntelliJ shows you the available options for the import, the bsp option will show up in the list.
  7. On macOS and Windows, you may need to provide the path to the bloop executable. In the import dialog, open "Global bsp settings" and enter the path in the "Bloop executable" setting.
  8. Click Finish. IntelliJ will then load the project.

bloop-install

@manodupont
Copy link

Do we need to always bloopInstall for every new dependency ?!?

@Bunyod
Copy link

Bunyod commented Jun 28, 2019

IntelliJ does not run bloopInstall whenever it detects a change in sbt build files like Metals does.
https://scalacenter.github.io/bloop/docs/ides/intellij#manual-bloop-export-project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment