Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA: Cannot import SBT project

I'm completely new to development using Play or IntelliJ for that matter. I've created a simple HelloWorld application using Activator, and this is an sbt project.

I've been trying to import this to IntelliJ and this is the screen I'm stuck at: https://www.dropbox.com/s/we1a4a3184sojvb/Screenshot%202014-07-24%2016.57.11.png

In almost all tutorials I've been through online, I've seen people using an sbt option on the import screen. I've installed the SBT plugin as well, but that hasn't helped. I've restarted IntelliJ several times to no avail.

Where am I going wrong? I'm running 13.1.4 with the SBT plugin installed.

like image 661
Ashesh Avatar asked Jul 24 '14 15:07

Ashesh


People also ask

Why sbt shell not showing in IntelliJ?

In Intellij 2018, under Preferences - Build, Execution, Deployment - Build Tools - sbt , check " Use sbt shell for build and import (requires sbt 0.13. 5+) ". Then restart Intellij. The sbt shell tool window tab will appear in the bottom pane (if not, select it from View - Tool Windows - sbt shell ).


1 Answers

I had this error when importing a new module from existing sources.

  • On the right-hand side of your IntelliJ window, you will see a list of vertical tabs, open the SBT tab.
  • Select the module that's causing trouble, right click on it, select "Detach external project"
  • Try to import the module again.
like image 79
Zoltán Avatar answered Oct 21 '22 09:10

Zoltán