- 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 runningbloopInstall
in your build tool. - Install IntelliJ EAP 2018.2 and then enable the nigthly version of the Scala Plugin. Instructions here and picture here:
- Reboot IntelliJ. After the Scala nightly is released, open a normal project in IntelliJ and look for the IntelliJ action "Enable bsp" (usually with Ctrl-Shift-A). The search box will show the full action name: "Enable experimental bsp support". Click on it.
- Close the project you're in and import the project. This time, when IntelliJ shows you the available options for the import, the
bsp
option wi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
- 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 runningbloopInstall
in your build tool. - 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:
- check for updates and download the Scala plugin Nightly release.
- Reboot IntelliJ. The Scala plugin should now have version 2018.2.277 or higher (check in Preferences | Plugins)
- 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 experime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.ivy.core.cache.ArtifactOrigin | |
import sbt.* | |
import sbt.Keys.* | |
import sbt.Project.inConfig | |
import sbt.internal.RemoteCache.* | |
import sbt.internal.inc.{HashUtil, JarUtils} | |
import sbt.internal.librarymanagement.IvyActions.mapArtifacts | |
import sbt.nio.Keys.* | |
import sbt.plugins.SemanticdbPlugin |