0

I just upgraded IntelliJ community edition to latest version 2020.1 as of today. All my SBT run/debug configurations are broken and currently show Unknown under Edit configuration.

I have checked the workspace.xml and configuration seems correct.

I have also checked I've got the latest SBT plugin.

Any help or pointers will be much appreciated as I have dozens of projects with lots of configurations so will be annoying to have to create them again.

velval
  • 3,072
  • 36
  • 45

1 Answers1

1

After a couple of hours finally figure out how to fix the configuration and made them re-appear. I had to change the workspace.xml under the .idea folder. Look for your run configuration under the:

<component name="RunManager">

Seems the previous Intellij version used: factoryName="sbt Task". Note the lower case sbt.

New version uses upper case: factoryName="SBT Task"

After changing this on all my configurations it worked again.

velval
  • 3,072
  • 36
  • 45
  • Yup, this fixed it for me. – Ahmad Ragab Apr 24 '20 at 22:47
  • Can you provide any insight into the way to set this up for new projects without any old configurations? See my question https://stackoverflow.com/questions/61442430/intellij-2020-1-sbt-mainrunner-configuration – Michael West Apr 26 '20 at 14:28
  • @MichaelWest, you just need to make sure you have installed the sbt/scala plugin in intellij, then simply go the edit configurations and click the + button and you should see the SBT task – velval Apr 27 '20 at 08:25