Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8997675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:55:17+00:00 2026-06-15T23:55:17+00:00

PROBLEM: When I’m working with a Scala Play 2.0.4 application from within IntelliJ IDEA

  • 0

PROBLEM:

When I’m working with a Scala Play 2.0.4 application from within IntelliJ IDEA 12, I’m getting a lot of red syntax highlighting errors that don’t show up as errors when I run the application from within Play! at the command line.

QUESTION:

Are there others who are successfully running Scala Play 2.0 applications from within IntelliJ IDEA 12? If so, can you give me some suggestions as to how I might do this as well.

BACKGROUND INFO:

When I create a new project within IntelliJ, I set Play 2 home to ~/bin/opt/play-2.0.4, it creates the project and then a dialog box appears titled “Project Files Changed” which says that “Project file …/.idea/misc.xml has been changed externally. It is recommended to reload project for changes to take effect.” If I ignore the prompt to reload the project, and I ctl-ins on app/, I get the following options:

  1. Java Class
  2. Scala Class
  3. File
  4. Package

I then create a package ‘models’, and a scala file ‘Models.scala’ with the code shown below, ‘Hello’ is syntax-highlighted as red and when I hover over the code, IDEA indicates that it can’t find ‘Hello’ within the object MyDB:

package models

case class Hello(id: Int, name: String)

object MyDB {
  val hellos: List[Hello] = List(Hello(1, "Foo"), Hello(2, "Bar"))
}

I can now create create app/models/Models.scala with the code above and there are no highlighting errors. However, when I go to project settings -> Modules -> Dependencies, it says that ‘sbt-and-plugins’ has a broken path and “Module ‘untitled’: invalid item ‘scala-2.9.1’ in the dependencies list”

On the other hand, if I click ‘ok’ to reload the project for the changes to take effect, then if I I ctl-ins on app/, I get the following options:

  1. File
  2. Directory

This second option occurs also if I generate idea from within play at the command line (as well, with-sources), and also if I compile the project (either before or after I run idea).

As a further hint the app directory is colored blue if I don’t reload the project, but once I reload it, then the app directory icon is brownish (like the others).

It is the same whether I use play-2.0.4 that I downloaded myself or whether I ask IntelliJ to download it when I create the new project. It also is the same whether I have the playframework with Play 2.0 Support or just the Play 2.0 Support by itself.

For further information, I’m running Arch Linux, Oracle Java 1.7.0_09, scala-2.9.1.final, Play 2.0.4, IntelliJ 12.0 IU-123.72. Plugins: Scala (0.6.371), Play 2.0 Support (0.1.86), Playframework Support (both with and without this, I get the same error).

UPDATE:

Here’s the stacktrace http://pastebin.com/uWEpv5Gd, which shows that IDEA throws an exception when creating the project, as follows:

[  87553]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.progress.util.ProgressWindow$MyDialog$1@3b5a26d6,notifier=null,catchExceptions=false,when=1355073846201] on sun.awt.X11.XToolkit@1bd172ba
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:55:18+00:00Added an answer on June 15, 2026 at 11:55 pm

    The problem was not the JVM, the problem is with the Play 2.0 plugin. I tested it with various JVMs in 1.7 and 1.6 and was still getting the same problem. I tried a fresh install of Intellij IDEA 12 by deleting the configuration directory, and it was doing the same thing. When I create a new project with IDEA 12, here’s what the directory structure of target looks like:

    [ambantis@okosmos target]$ tree
    .
    ├── scala-2.9.1
    │   └── cache
    │       └── update
    │           ├── inputs
    │           └── output
    └── streams
        └── $global
            ├── ivy-configuration
            │   └── $global
            │       └── out
            ├── ivy-sbt
            │   └── $global
            │       └── out
            ├── project-descriptors
            │   └── $global
            │       └── out
            └── update
                └── $global
                    └── out
    
    13 directories, 6 files
    

    what’s missing are /target/scala-2.9.1/classes and /target/scala-2.9.1/classes_managed. The solution is as follows:

    After the build process, if you see a dialog box that says, “Project Files Changed”, like this: enter image description here

    do not click OK, instead escape. Then open the play console and compile the application. At this point it will work. You will only see errors that there are unused jar files, but otherwise everything will work fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem I have a Silverlight 5 application using the treeview from the SDK. Now
Problem: I've written State Machine for my android application. It is separate class, extension
Problem: I'm streaming my video from a php file with stream_get_contents(); using Flowplayer as
PROBLEM : I am having problems getting socket.IO to connect in some circumstances, so
Problem: Sometimes you will want to access a component from javascript with getElementById ,
Problem Not solved although one answer was accepted: We are working to get Jonah's
Problem: I'm working on a website where there is a dial that displays a
Problem! I Have the following input (rules) from a flat file (talking about numeric
Problem Description I am writing Android application and I need to add to my
Problem: I need to retrieve the language of a given cell from the cube.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.