title: Scala eclipse IDE not recognizing package import statements
body: <p>I'm trying to build a simple chat scalatra file as an exercise, and was having some frustrating packaging problems. (I'm using Eclipse Indigo's Scala IDE)  </p>
  
  <p>This is my file hierarchy:</p>
  
  <ol>
  <li><p>ScalaChat (project folder)</p>
  
  <ul>
  <li>src/main/scala
  <ul>
  <li>(default)</li>
  <li>com.example.chat
  <ul>
  <li>ChatController.scala  &lt;--</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>. .
  .</p>
  
  <ul>
  <li>src/main/webapp/WEB_INF/view/pages
  <ul>
  <li>show.ssp &lt;--</li>
  </ul></li>
  </ul></li>
  </ol>
  
  <p>Chat.controller is packaged with:</p>
  
  <pre><code>package com.example.chat
  </code></pre>
  
  <p>and contains the case class:</p>
  
  <pre><code>case class Page(slug: String, title: String, summary: String, body: String)
  </code></pre>
  
  <p>and yet, when show.ssp calls:</p>
  
  <pre><code>&lt;%@ import val page: com.example.chat.Page %&gt;
  </code></pre>
  
  <p>sbt consistently gives the error:</p>
  
  <pre><code>type Page is not a member of package com.example.chat
  </code></pre>
  
  <p>I'm sort of at my wits end.  I can't see an error in the way I'm packaging, but I can't think of what else is wrong with the code.  Could this be a problem with the Scala IDE?</p>