IntelliJ IDEA doesn't load Lift libraries from a SBT project
Asked Answered
A

1

7

I've created a blank project via sbt using the most basic guide, specifically:

> cd xyz
> sbt # here we create a new project w/ Scala 2.8.1
> *lift is org.lifty lifty 1.6.1
> lift create project-blank

however when I open the project in IntelliJ, it doesn't correctly recognize .jars downloaded via sbt. All imports are red

red imports

and when I go to project settings (Ctrl + Alt + Shift + S) in Libraries section, they are all greyed out.

greyed out libraries

Apart from that, the project sources are correctly recognized as Scala project with a Web facet

project structure

Did I forget to configure something? I've already tried to create a project via maven using this guide, but I'd very much prefer to use SBT instead of maven.

Acanthopterygian answered 9/10, 2011 at 11:13 Comment(1)
Do you have these libraries added to the module dependencies? See jetbrains.com/idea/webhelp/….Jap
P
9

Use sbt-idea to create the IntelliJ project structure. Re-run this each time you change the project structure or the library dependencies in your SBT build definition.

Instructions: SBT 0.10.x 0.11.x, SBT 0.7.x

Puritanism answered 9/10, 2011 at 13:10 Comment(1)
with SBT 0.12.x you should use" gen-ideaFerullo

© 2022 - 2024 — McMap. All rights reserved.