Skip to content

Instantly share code, notes, and snippets.

@njbartlett
Created March 5, 2012 19:06
Show Gist options
  • Save njbartlett/1980400 to your computer and use it in GitHub Desktop.
Save njbartlett/1980400 to your computer and use it in GitHub Desktop.
How scalac reports that joda-time is missing from the classpath...
[scalac] exception when typing net.liftweb.util.Helpers.bind
[scalac] exception when typing net.liftweb.util.Helpers.bind("calc", xhtml, scala.this.Predef.wrapRefArray(Array[net.liftweb.util.BindHelpers#BindParam]{net.liftweb.util.Helpers.strToSuperArrowAssoc("equals").->({
[scalac] {
[scalac] var $md: scala.xml.MetaData = scala.xml.Null;
[scalac] $md = new scala.xml.UnprefixedAttribute("onclick", net.liftweb.http.SHtml.ajaxCall(new net.liftweb.http.js.JE#ValById("screen"), {
[scalac] {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction1 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(str: java.lang.String): net.liftweb.http.js.JsCmd = js.this.JsCmds.jsExpToJsCmd($anonfun.this.$outer .calculate(str));
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(v1: java.lang.Object): java.lang.Object = $anonfun.this.apply(v1)
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function1)
[scalac] }
[scalac] })._2().toString(), $md);
[scalac] $md = new scala.xml.UnprefixedAttribute("class", new scala.xml.Text("button equals"), $md);
[scalac] new scala.xml.Elem(null, "button", $md, scala.this.Predef.$scope(), {
[scalac] val $buf: scala.xml.NodeBuffer = new scala.xml.NodeBuffer();
[scalac] $buf.&+(new scala.xml.Text("="));
[scalac] $buf
[scalac] })
[scalac] }
[scalac] }), net.liftweb.util.Helpers.strToSuperArrowAssoc("load").->(net.liftweb.http.js.JsCmds.Script.apply(net.liftweb.http.js.JsCmds.OnLoad.apply(js.this.JsCmds.jsExpToJsCmd(net.liftweb.http.SHtml.ajaxInvoke({
[scalac] {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction0 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(): net.liftweb.http.js.JsCmd = $anonfun.this.$outer .refresh();
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(): java.lang.Object = $anonfun.this.apply()
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function0)
[scalac] }
[scalac] })._2()))))}))
[scalac] exception when typing def calc(xhtml: scala.xml.NodeSeq): scala.xml.NodeSeq = net.liftweb.util.Helpers.bind("calc", xhtml, scala.this.Predef.wrapRefArray(Array[net.liftweb.util.BindHelpers#BindParam]{net.liftweb.util.Helpers.strToSuperArrowAssoc("equals").->({
[scalac] {
[scalac] var $md: scala.xml.MetaData = scala.xml.Null;
[scalac] $md = new scala.xml.UnprefixedAttribute("onclick", net.liftweb.http.SHtml.ajaxCall(new net.liftweb.http.js.JE#ValById("screen"), {
[scalac] {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction1 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(str: java.lang.String): net.liftweb.http.js.JsCmd = js.this.JsCmds.jsExpToJsCmd($anonfun.this.$outer .calculate(str));
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(v1: java.lang.Object): java.lang.Object = $anonfun.this.apply(v1)
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function1)
[scalac] }
[scalac] })._2().toString(), $md);
[scalac] $md = new scala.xml.UnprefixedAttribute("class", new scala.xml.Text("button equals"), $md);
[scalac] new scala.xml.Elem(null, "button", $md, scala.this.Predef.$scope(), {
[scalac] val $buf: scala.xml.NodeBuffer = new scala.xml.NodeBuffer();
[scalac] $buf.&+(new scala.xml.Text("="));
[scalac] $buf
[scalac] })
[scalac] }
[scalac] }), net.liftweb.util.Helpers.strToSuperArrowAssoc("load").->(net.liftweb.http.js.JsCmds.Script.apply(net.liftweb.http.js.JsCmds.OnLoad.apply(js.this.JsCmds.jsExpToJsCmd(net.liftweb.http.SHtml.ajaxInvoke({
[scalac] {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction0 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(): net.liftweb.http.js.JsCmd = $anonfun.this.$outer .refresh();
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(): java.lang.Object = $anonfun.this.apply()
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function0)
[scalac] }
[scalac] })._2()))))}))
[scalac] exception when typing class CalcSnippet extends java.lang.Object with ScalaObject {
[scalac] def this(): code.snippet.CalcSnippet = {
[scalac] CalcSnippet.super.this();
[scalac] ()
[scalac] };
[scalac] def calculate(str: java.lang.String): net.liftweb.http.js.JE#Call = {
[scalac] <synthetic> val temp1: Option = code.model.BinopTracker.eval(str);
[scalac] if (temp1.isInstanceOf[Some]())
[scalac] {
[scalac] new net.liftweb.http.js.JE#Call("setResult", scala.this.Predef.wrapRefArray(Array[net.liftweb.http.js.JsExp]{js.this.JsExp.strToJsExp(temp1.asInstanceOf[Some]().x())}))
[scalac] }
[scalac] else
[scalac] if (scala.this.None.==(temp1))
[scalac] {
[scalac] new net.liftweb.http.js.JE#Call("setError", scala.this.Predef.wrapRefArray(Array[net.liftweb.http.js.JsExp]{}))
[scalac] }
[scalac] else
[scalac] throw new MatchError(temp1)
[scalac] };
[scalac] def refresh(): net.liftweb.http.js.JsCmd = {
[scalac] val loadCmd: net.liftweb.http.js.JsCmd = js.this.JsCmds.jsExpToJsCmd(new net.liftweb.http.js.JE#Call("removeAllOps", scala.this.Predef.wrapRefArray(Array[net.liftweb.http.js.JsExp]{})));
[scalac] {
[scalac] <synthetic> val x$1: net.liftweb.http.js.JsCmd = loadCmd;
[scalac] code.model.BinopTracker.binops()./:(x$1, {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction2 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(cmds: net.liftweb.http.js.JsCmd, op: code.model.OSGiBinaryOp): net.liftweb.http.js.JsCmd = cmds.&(op.toAddJS());
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(v1: java.lang.Object, v2: java.lang.Object): java.lang.Object = $anonfun.this.apply(v1, v2)
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function2)
[scalac] })
[scalac] }
[scalac] };
[scalac] def calc(xhtml: scala.xml.NodeSeq): scala.xml.NodeSeq = net.liftweb.util.Helpers.bind("calc", xhtml, scala.this.Predef.wrapRefArray(Array[net.liftweb.util.BindHelpers#BindParam]{net.liftweb.util.Helpers.strToSuperArrowAssoc("equals").->({
[scalac] {
[scalac] var $md: scala.xml.MetaData = scala.xml.Null;
[scalac] $md = new scala.xml.UnprefixedAttribute("onclick", net.liftweb.http.SHtml.ajaxCall(new net.liftweb.http.js.JE#ValById("screen"), {
[scalac] {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction1 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(str: java.lang.String): net.liftweb.http.js.JsCmd = js.this.JsCmds.jsExpToJsCmd($anonfun.this.$outer .calculate(str));
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(v1: java.lang.Object): java.lang.Object = $anonfun.this.apply(v1)
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function1)
[scalac] }
[scalac] })._2().toString(), $md);
[scalac] $md = new scala.xml.UnprefixedAttribute("class", new scala.xml.Text("button equals"), $md);
[scalac] new scala.xml.Elem(null, "button", $md, scala.this.Predef.$scope(), {
[scalac] val $buf: scala.xml.NodeBuffer = new scala.xml.NodeBuffer();
[scalac] $buf.&+(new scala.xml.Text("="));
[scalac] $buf
[scalac] })
[scalac] }
[scalac] }), net.liftweb.util.Helpers.strToSuperArrowAssoc("load").->(net.liftweb.http.js.JsCmds.Script.apply(net.liftweb.http.js.JsCmds.OnLoad.apply(js.this.JsCmds.jsExpToJsCmd(net.liftweb.http.SHtml.ajaxInvoke({
[scalac] {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction0 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(): net.liftweb.http.js.JsCmd = $anonfun.this.$outer .refresh();
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(): java.lang.Object = $anonfun.this.apply()
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function0)
[scalac] }
[scalac] })._2()))))}))
[scalac] }
[scalac] exception when typing package code.snippet {
[scalac] class CalcSnippet extends java.lang.Object with ScalaObject {
[scalac] def this(): code.snippet.CalcSnippet = {
[scalac] CalcSnippet.super.this();
[scalac] ()
[scalac] };
[scalac] def calculate(str: java.lang.String): net.liftweb.http.js.JE#Call = {
[scalac] <synthetic> val temp1: Option = code.model.BinopTracker.eval(str);
[scalac] if (temp1.isInstanceOf[Some]())
[scalac] {
[scalac] new net.liftweb.http.js.JE#Call("setResult", scala.this.Predef.wrapRefArray(Array[net.liftweb.http.js.JsExp]{js.this.JsExp.strToJsExp(temp1.asInstanceOf[Some]().x())}))
[scalac] }
[scalac] else
[scalac] if (scala.this.None.==(temp1))
[scalac] {
[scalac] new net.liftweb.http.js.JE#Call("setError", scala.this.Predef.wrapRefArray(Array[net.liftweb.http.js.JsExp]{}))
[scalac] }
[scalac] else
[scalac] throw new MatchError(temp1)
[scalac] };
[scalac] def refresh(): net.liftweb.http.js.JsCmd = {
[scalac] val loadCmd: net.liftweb.http.js.JsCmd = js.this.JsCmds.jsExpToJsCmd(new net.liftweb.http.js.JE#Call("removeAllOps", scala.this.Predef.wrapRefArray(Array[net.liftweb.http.js.JsExp]{})));
[scalac] {
[scalac] <synthetic> val x$1: net.liftweb.http.js.JsCmd = loadCmd;
[scalac] code.model.BinopTracker.binops()./:(x$1, {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction2 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(cmds: net.liftweb.http.js.JsCmd, op: code.model.OSGiBinaryOp): net.liftweb.http.js.JsCmd = cmds.&(op.toAddJS());
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(v1: java.lang.Object, v2: java.lang.Object): java.lang.Object = $anonfun.this.apply(v1, v2)
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function2)
[scalac] })
[scalac] }
[scalac] };
[scalac] def calc(xhtml: scala.xml.NodeSeq): scala.xml.NodeSeq = net.liftweb.util.Helpers.bind("calc", xhtml, scala.this.Predef.wrapRefArray(Array[net.liftweb.util.BindHelpers#BindParam]{net.liftweb.util.Helpers.strToSuperArrowAssoc("equals").->({
[scalac] {
[scalac] var $md: scala.xml.MetaData = scala.xml.Null;
[scalac] $md = new scala.xml.UnprefixedAttribute("onclick", net.liftweb.http.SHtml.ajaxCall(new net.liftweb.http.js.JE#ValById("screen"), {
[scalac] {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction1 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(str: java.lang.String): net.liftweb.http.js.JsCmd = js.this.JsCmds.jsExpToJsCmd($anonfun.this.$outer .calculate(str));
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(v1: java.lang.Object): java.lang.Object = $anonfun.this.apply(v1)
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function1)
[scalac] }
[scalac] })._2().toString(), $md);
[scalac] $md = new scala.xml.UnprefixedAttribute("class", new scala.xml.Text("button equals"), $md);
[scalac] new scala.xml.Elem(null, "button", $md, scala.this.Predef.$scope(), {
[scalac] val $buf: scala.xml.NodeBuffer = new scala.xml.NodeBuffer();
[scalac] $buf.&+(new scala.xml.Text("="));
[scalac] $buf
[scalac] })
[scalac] }
[scalac] }), net.liftweb.util.Helpers.strToSuperArrowAssoc("load").->(net.liftweb.http.js.JsCmds.Script.apply(net.liftweb.http.js.JsCmds.OnLoad.apply(js.this.JsCmds.jsExpToJsCmd(net.liftweb.http.SHtml.ajaxInvoke({
[scalac] {
[scalac] @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction0 with Serializable {
[scalac] def this($outer: code.snippet.CalcSnippet): anonymous class $anonfun = {
[scalac] $anonfun.super.this();
[scalac] ()
[scalac] };
[scalac] final def apply(): net.liftweb.http.js.JsCmd = $anonfun.this.$outer .refresh();
[scalac] <synthetic> <paramaccessor> private[this] val $outer: code.snippet.CalcSnippet = _;
[scalac] <synthetic> <stable> def code$snippet$CalcSnippet$$anonfun$$$outer(): code.snippet.CalcSnippet = $anonfun.this.$outer;
[scalac] final <bridge> def apply(): java.lang.Object = $anonfun.this.apply()
[scalac] };
[scalac] (new anonymous class $anonfun(CalcSnippet.this): Function0)
[scalac] }
[scalac] })._2()))))}))
[scalac] }
[scalac] }
[scalac] error: class file needed by TimeHelpers is missing.
[scalac] reference value joda of package org refers to nonexisting symbol.
[scalac] one error found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment