简体   繁体   中英

Intellij 13.1.3 import project from sbt not working

I have followed the instructions , attempting to either import from build.sbt or open project from build.sbt.

The end result is that the scala libraries are not imported as shown in the screenshot.

I have also tried sbt gen-idea from the command line.

This is just a problem that keeps surfacing.. 在此处输入图片说明

If you are using Intellij, why don't you create scala sbt project? Then just add the libraries in the build.sbt and refresh the project or re-run the sbt gen-idea. The libraries will appear. See this link: http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+SBT

I STILL have not figured out what the "magic" sequence of actions to follow in order to have a reliable sbt build.

This time around the following worked:

TWICE running

sbt gen-idea
  • and then import'ing the build.sbt as a new scala project

What did not work

  • Import project from build.sbt (without sbt gen-idea)
  • Open project from build.sbt (ditto)
  • Open build.sbt from Explorer (selecting IJ to open it)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM