Compile error on a Scala project: object _ is not a member of package _
<p>I got seemingly simple problem.. and usually I could find a solution easily from stackoverflow, but I had no luck this time.</p>

<p>Here's problem. I have created a object in a package called <code>com.kwoolytech.scalacommon</code>. </p>

<pre><code>package com.kwoolytech.scalacommon

object Syslog {

  def emergency(s: String) = { println("[Emergency] " + s) }
  def alert(s: String)     = { println("[Alert] "     + s) }
  def critical(s: String)  = { println("[Critical] "  + s) }
  def error(s: String)     = { println("[Error] "     + s) }
  def warning(s: String)   = { println("[Warning] "   + s) }
  def notice(s: String)    = { println("[Notice] "    + s) }
  def debug(s: String)     = { println("[Debug] "     + s) }
  def info(s: String)      = { println("[Info] "      + s) }

}
</code></pre>

<p>All I want is to use this object in another package I've created.</p>

<pre><code>package com.kwoolytech.kwoolybot

import com.kwoolytech.scalacommon.Syslog

class Dice(command: List[String], callback: List[String] =&gt; Unit) extends Bot {

  override def run() = {
    command.head match {
      case "roll" =&gt; roll(command.tail, callback)
      case _ =&gt; Syslog.debug(getClass + " Invalid command.")
    }
  }
</code></pre>

<p>I got a compile erorr,
<code>object scalacommon is not a member of package com.kwoolytech</code></p>

<p>Both source files are located under a same project.</p>

<ul>
<li>Syslog.scala : src/scalacommon/syslog/Syslog.scala </li>
<li>Dice.scala : src/main/dice/Dice.scala</li>
</ul>

<p>Appreciate on your advice.</p>