scala - corrupt resolve for Play 2 framework support in IntelliJ IDEA -


i need opening play project in idea.

i've got plugins (scala, play support, play 2.0...) installed , when open new project resolves fine.

however, if open project has been created play, create .idea files either gen-idea or play idea following error:

      play2:        have useless source roots may corrupt resolve play 2 framework in project:        /.../target/scala-2.10/src_managed/main        /.../target 

if i'm reading correctly, means idea treating compiled play classes 'useless'. can still run project idea (by adding new run config , removing make part of it) code full of 'cannot resolve' errors.

ignore message, go project structure, select modules on left, module, , on right-hand side of screen should see tree.

the following should listed source: /app, /conf, target/scala-2.10/src-managed

the following should excluded: (everything in target except src-managed), maybe /.idea , .idea_modules

note src-managed not there unless compiled application before running 'gen-idea' sbt or idea play. personally, prefer use (from command line):

% sbt "gen-idea no-sbt-build-module"

over play idea because gen-idea gives me sources in idea

note if run server while in interactive-mode command-line, play! compile instantly refresh browser , change code, develop more rapidly if not have idea compile project.

this video shows live-coding play, showing http://www.youtube.com/watch?v=8z3h4uv9ybe

update

with play 2.2.x, have gone using idea with-sources=yes no-sbt-build-module because include sources correctly.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -