Skip to content

Instantly share code, notes, and snippets.

@samskivert
Created April 28, 2014 13:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Good morning to you too scalac...
exception when typing new scaled.Loc(scaled.Loc.apply(sym.lineNo(), 0).$asInstanceOf[Long]())/class scala.reflect.internal.Trees$Apply
constructor Loc in class Loc cannot be accessed in anonymous class $anonfun in file /Users/mdb/projects/scaled/codex-mode/src/main/scala/codex/CodexMode.scala
scala.reflect.internal.Types$TypeError: constructor Loc in class Loc cannot be accessed in anonymous class $anonfun
at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:401)
at scala.tools.nsc.typechecker.Infer$Inferencer.issue(Infer.scala:312)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4613)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4613)
at scala.tools.nsc.typechecker.Typers$Typer.onError$3(Typers.scala:4571)
at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4613)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4625)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5530)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5670)
at scala.tools.nsc.typechecker.Typers$Typer.typedPos(Typers.scala:5675)
at scala.tools.nsc.transform.Erasure$Eraser.scala$tools$nsc$transform$Erasure$Eraser$$box1(Erasure.scala:574)
at scala.tools.nsc.transform.Erasure$Eraser.scala$tools$nsc$transform$Erasure$Eraser$$adaptToType(Erasure.scala:693)
at scala.tools.nsc.transform.Erasure$Eraser.adapt(Erasure.scala:816)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5626)
at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:3041)
at scala.tools.nsc.typechecker.Typers$Typer.loop$1(Typers.scala:3068)
at scala.tools.nsc.typechecker.Typers$Typer.typedArgs(Typers.scala:3073)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$handleMonomorphicCall$1(Typers.scala:3330)
at scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3374)
at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4593)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4625)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5530)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2431)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5536)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5811)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2256)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5535)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1918)
at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1758)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5549)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2431)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5536)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:3041)
at scala.tools.nsc.typechecker.Typers$Typer.loop$1(Typers.scala:3068)
at scala.tools.nsc.typechecker.Typers$Typer.typedArgs(Typers.scala:3073)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$handleMonomorphicCall$1(Typers.scala:3330)
at scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3374)
at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4593)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4625)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5530)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2431)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5536)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2432)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5536)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5811)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2256)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5535)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1918)
at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1758)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5549)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5267)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5553)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5670)
at scala.tools.nsc.transform.Erasure$ErasureTransformer$$anonfun$transform$2.apply(Erasure.scala:1291)
at scala.tools.nsc.transform.Erasure$ErasureTransformer$$anonfun$transform$2.apply(Erasure.scala:1287)
at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:207)
at scala.reflect.internal.SymbolTable.afterPhase(SymbolTable.scala:216)
at scala.tools.nsc.transform.Erasure$ErasureTransformer.transform(Erasure.scala:1287)
at scala.tools.nsc.transform.Erasure$ErasureTransformer.transform(Erasure.scala:888)
at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:227)
at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:464)
at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:431)
at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:431)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:431)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1583)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1557)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1553)
at scala.tools.nsc.Global$Run.compile(Global.scala:1662)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:123)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:99)
at xsbt.CompilerInterface.run(CompilerInterface.scala:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:102)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:48)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:159)
at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:97)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:142)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:86)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:38)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:36)
at sbt.inc.Incremental$.cycle(Incremental.scala:73)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:33)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:32)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:41)
at sbt.inc.Incremental$.compile(Incremental.scala:32)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:26)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:150)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70)
at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45)
at sbt.Compiler$.apply(Compiler.scala:70)
at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:736)
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730)
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
[error] unrecoverable error
exception when typing $anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0))
exception when typing {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
}
exception when typing final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
}
exception when typing @SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
}
exception when typing {
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
}
exception when typing CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
})
exception when typing {
CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
exception when typing {
val sym: String = CodexMode.this.wordAt(CodexMode.this.view().point().apply());
{
CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
}
exception when typing @scaled.Fn(value = "Queries the user for the name of a symbol, defaulting to the word at the point. Navigates\n to the definition of said symbol. If Codex is not able to uniquely identify the symbol\n under the point, it will return all symbols with the same name as the queried symbol.\n These matches can be navigated using [[next-error]] and [[previous-error]].") def openSymbol(): Unit = {
val sym: String = CodexMode.this.wordAt(CodexMode.this.view().point().apply());
{
CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
}
exception when typing @scaled.Minor(name = "codex", tags = ["code"], desc = "A minor mode that provides fns to interact with the Codex server.") class CodexMode extends scaled.MinorMode {
<paramaccessor> private[this] val env: scaled.Env = _;
def <init>(env: scaled.Env): codex.CodexMode = {
CodexMode.super.<init>(env);
()
};
override def configDefs(): List = {
<synthetic> val x$1: codex.CodexConfig.type = CodexConfig;
CodexMode.super.configDefs().::(x$1)
};
override def keymap(): Seq = collection.this.Seq.apply(scala.this.Predef.wrapRefArray(Array[Tuple2]{ArrowAssoc.this.->$extension(scala.this.Predef.any2ArrowAssoc("C-c C-j"), "doc-symbol"), ArrowAssoc.this.->$extension(scala.this.Predef.any2ArrowAssoc("C-c C-k"), "open-symbol"), ArrowAssoc.this.->$extension(scala.this.Predef.any2ArrowAssoc("C-c C-i"), "import-symbol")}));
override def dispose(): Unit = ();
case class Match extends Object with Product with Serializable {
<caseaccessor> <paramaccessor> private[this] val lineNo: Int = _;
<stable> <caseaccessor> <accessor> <paramaccessor> def lineNo(): Int = Match.this.lineNo;
<caseaccessor> <paramaccessor> private[this] val name: String = _;
<stable> <caseaccessor> <accessor> <paramaccessor> def name(): String = Match.this.name;
<caseaccessor> <paramaccessor> private[this] val path: String = _;
<stable> <caseaccessor> <accessor> <paramaccessor> def path(): String = Match.this.path;
def <init>($outer: codex.CodexMode, lineNo: Int, name: String, path: String): CodexMode.this.Match = {
Match.super.<init>();
Match.this./*Product$class*/$init$();
()
};
private[this] val compName: String = new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"", " (", "@", ")"})).s(scala.this.Predef.genericWrapArray(Array[Object]{Match.this.name(), Match.this.file(), Match.this.lineNo()}));
<stable> <accessor> def compName(): String = Match.this.compName;
def file(): String = Match.this.path().substring(Match.this.path().lastIndexOf(java.io.File.separator).+(1));
<synthetic> def copy(lineNo: Int, name: String, path: String): codex.CodexMode#Match = new codex.CodexMode#Match(Match.this.codex$CodexMode$Match$$$outer(), lineNo, name, path);
<synthetic> def copy$default$1(): Int = Match.this.lineNo();
<synthetic> def copy$default$2(): String = Match.this.name();
<synthetic> def copy$default$3(): String = Match.this.path();
override <synthetic> def productPrefix(): String = "Match";
<synthetic> def productArity(): Int = 3;
<synthetic> def productElement(x$1: Int): Object = {
case <synthetic> val x1: Int = x$1;
(x1: Int) match {
case 0 => Match.this.lineNo()
case 1 => Match.this.name()
case 2 => Match.this.path()
case _ => throw new IndexOutOfBoundsException(x$1.toString())
}
};
override <synthetic> def productIterator(): Iterator = runtime.this.ScalaRunTime.typedProductIterator(Match.this);
<synthetic> def canEqual(x$1: Object): Boolean = x$1.$isInstanceOf[codex.CodexMode#Match]();
override <synthetic> def hashCode(): Int = {
<synthetic> var acc: Int = -889275714;
acc = Statics.this.mix(acc, lineNo());
acc = Statics.this.mix(acc, Statics.this.anyHash(name()));
acc = Statics.this.mix(acc, Statics.this.anyHash(path()));
Statics.this.finalizeHash(acc, 3)
};
override <synthetic> def toString(): String = ScalaRunTime.this._toString(Match.this);
override <synthetic> def equals(x$1: Object): Boolean = Match.this.eq(x$1.asInstanceOf[Object]()).||({
case <synthetic> val x1: Object = x$1;
case5(){
if (x1.isInstanceOf[codex.CodexMode#Match]().&&((x1.asInstanceOf[codex.CodexMode#Match](): codex.CodexMode#Match).codex$CodexMode$Match$$$outer().eq(Match.this.codex$CodexMode$Match$$$outer())))
matchEnd4(true)
else
case6()
};
case6(){
matchEnd4(false)
};
matchEnd4(x: Boolean){
x
}
}.&&({
<synthetic> val Match$1: codex.CodexMode#Match = x$1.asInstanceOf[codex.CodexMode#Match]();
Match.this.lineNo().==(Match$1.lineNo()).&&(Match.this.name().==(Match$1.name())).&&(Match.this.path().==(Match$1.path())).&&(Match$1.canEqual(Match.this))
}));
<synthetic> <paramaccessor> protected val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$Match$$$outer(): codex.CodexMode = Match.this.$outer
};
<synthetic> object Match extends runtime.AbstractFunction3 with Serializable {
def <init>($outer: codex.CodexMode): CodexMode.this.Match.type = {
Match.super.<init>();
()
};
final override <synthetic> def toString(): String = "Match";
case <synthetic> def apply(lineNo: Int, name: String, path: String): codex.CodexMode#Match = new codex.CodexMode#Match(Match.this.$outer, lineNo, name, path);
case <synthetic> def unapply(x$0: codex.CodexMode#Match): Option = if (x$0.==(null))
scala.this.None
else
new Some(new Tuple3(x$0.lineNo(), x$0.name(), x$0.path()));
<synthetic> private def readResolve(): Object = Match.this.$outer.Match();
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$Match$$$outer(): codex.CodexMode = Match.this.$outer;
case <synthetic> <bridge> def apply(v1: Object, v2: Object, v3: Object): Object = Match.this.apply(v1, v2, v3)
};
@volatile <synthetic> private[this] var Match$module: codex.CodexMode#Match.type = _;
<synthetic> <stable> def Match(): codex.CodexMode#Match.type = {
CodexMode.this.Match$module = new codex.CodexMode#Match.type(CodexMode.this);
CodexMode.this.Match$module
};
def docSymbol(symbol: String): Unit = {
val url: String = new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"", "query/findoc/", "", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{CodexMode.this.config().apply(CodexConfig.codexUrl()), symbol, CodexMode.this.bufpath()}));
CodexMode.this.editor().showURL(url)
};
def findSymbol(loc: ErasedValueType(scaled.Loc), symbol: String): Seq = {
case <synthetic> val x1: Tuple2 = CodexMode.this.post(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"", "query/find/", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{CodexMode.this.config().apply(CodexConfig.codexUrl()), symbol})), new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"", "\\n", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{CodexMode.this.bufpath(), CodexMode.this.buffer().offset(loc)})));
case6(){
if (x1.ne(null))
if (200.==(x1._1$mcI$sp()))
matchEnd5(x1._2().flatMap({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(x$2: String): Iterable = {
case <synthetic> val x1: Array[String] = x$2.split(" ");
case10(){
<synthetic> val o12: Option = scala.Array.unapplySeq(x1);
if (o12.isEmpty().unary_!())
if (o12.get().!=(null).&&(o12.get().lengthCompare(4).==(0)))
if ("match".==(o12.get().apply(0)))
matchEnd9(scala.this.Option.option2Iterable(new Some(new codex.CodexMode#Match($anonfun.this.$outer, scala.this.Predef.augmentString(o12.get().apply(1)).toInt(), o12.get().apply(2), o12.get().apply(3)))))
else
case11()
else
case11()
else
case11()
};
case11(){
<synthetic> val o14: Option = scala.Array.unapplySeq(x1);
if (o14.isEmpty().unary_!())
if (o14.get().!=(null).&&(o14.get().lengthCompare(1).==(0)))
if ("nomatch".==(o14.get().apply(0)))
matchEnd9(scala.this.Option.option2Iterable(scala.None))
else
case13()
else
case13()
else
case13()
};
case13(){
matchEnd9({
$anonfun.this.$outer.editor().emitStatus("Codex parse failure: ${other.toSeq}");
scala.this.Option.option2Iterable(scala.None)
})
};
matchEnd9(x: Iterable){
x
}
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
}, collection.this.Seq.canBuildFrom()))
else
case7()
else
case7()
};
case7(){
if (x1.ne(null))
matchEnd5({
CodexMode.this.editor().emitStatus(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Codex error (", "): ", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{x1._1$mcI$sp(), x1._2().mkString(" ")})));
collection.this.Seq.apply(immutable.this.Nil)
})
else
case8()
};
case8(){
matchEnd5(throw new MatchError(x1))
};
matchEnd5(x: Seq){
x
}
};
def importSymbol(loc: ErasedValueType(scaled.Loc), symbol: String): Unit = ();
@scaled.Fn(value = "Queries the user for the name of a symbol, defaulting to the word at the point.\n Displays the documentation for said symbol. Results are displayed in your web browser.") def docSymbol(): Unit = {
val sym: String = CodexMode.this.wordAt(CodexMode.this.view().point().apply());
{
CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(m: codex.CodexMode#Match): Unit = $anonfun.this.$outer.docSymbol(m.name());
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
};
@scaled.Fn(value = "Queries the user for the name of a symbol, defaulting to the word at the point. Navigates\n to the definition of said symbol. If Codex is not able to uniquely identify the symbol\n under the point, it will return all symbols with the same name as the queried symbol.\n These matches can be navigated using [[next-error]] and [[previous-error]].") def openSymbol(): Unit = {
val sym: String = CodexMode.this.wordAt(CodexMode.this.view().point().apply());
{
CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
};
@scaled.Fn(value = "Locates the class identified by the symbol under the point and inserts an import\n statement for that class in the appropriate position. For Java-like languages.") def importSymbol(): Unit = {
CodexMode.this.buffer().save();
val sym: String = CodexMode.this.wordAt(CodexMode.this.view().point().apply());
{
CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = ();
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
};
private def completeSymbol(): scaled.Completer = {
final class $anon extends scaled.Completer {
def <init>($outer: codex.CodexMode): anonymous class $anon = {
$anon.super.<init>();
()
};
private[this] var _current: String = "";
<accessor> private def _current(): String = $anon.this._current;
<accessor> private def _current_=(x$1: String): Unit = $anon.this._current = x$1;
private[this] var _matches: Seq = collection.this.Seq.apply(immutable.this.Nil);
<accessor> private def _matches(): Seq = $anon.this._matches;
<accessor> private def _matches_=(x$1: Seq): Unit = $anon.this._matches = x$1;
def apply(prefix: String): collection.SortedMap = {
val lprefix: String = prefix.toLowerCase();
if ($anon.this._current().==("").||(lprefix.startsWith($anon.this._current()).unary_!()))
{
$anon.this.$outer.editor().emitStatus(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Completing \'", "\'..."})).s(scala.this.Predef.genericWrapArray(Array[Object]{prefix})));
$anon.this._matches_=($anon.this.$outer.findSymbol($anon.this.$outer.buffer().start(), prefix.+("*")));
$anon.this._current_=(lprefix)
}
else
();
$anon.this.mapBy($anon.this._matches().filter({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: anonymous class $anon): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(x$3: codex.CodexMode#Match): Boolean = x$3.compName().toLowerCase().startsWith(lprefix);
<synthetic> <paramaccessor> private[this] val $outer: anonymous class $anon = _;
<synthetic> <stable> def codex$CodexMode$$anon$$anonfun$$$outer(): anonymous class $anon = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun($anon.this): Function1)
}), {
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: anonymous class $anon): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(x$4: codex.CodexMode#Match): String = x$4.compName();
<synthetic> <paramaccessor> private[this] val $outer: anonymous class $anon = _;
<synthetic> <stable> def codex$CodexMode$$anon$$anonfun$$$outer(): anonymous class $anon = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun($anon.this): Function1)
})
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anon$$$outer(): codex.CodexMode = $anon.this.$outer
};
new anonymous class $anon(CodexMode.this)
};
private def wordAt(loc: ErasedValueType(scaled.Loc)): String = {
val p: ErasedValueType(scaled.Loc) = CodexMode.this.view().point().apply();
val pstart: ErasedValueType(scaled.Loc) = {
val qual$1: scaled.RBuffer = CodexMode.this.buffer();
val x$6: scaled.util.Chars.Pred = scaled.util.Chars.isNotWord();
val x$7: ErasedValueType(scaled.Loc) = p;
val x$8: ErasedValueType(scaled.Loc) = qual$1.scanBackward$default$3();
qual$1.scanBackward(x$6, x$7, x$8)
};
val start: ErasedValueType(scaled.Loc) = if (scaled.util.Chars.isWord().apply(CodexMode.this.buffer().charAt(pstart)))
pstart
else
CodexMode.this.buffer().forward(pstart, 1);
val end: ErasedValueType(scaled.Loc) = if (scaled.util.Chars.isWord().apply(CodexMode.this.buffer().charAt(start)).unary_!())
start
else
{
val qual$2: scaled.RBuffer = CodexMode.this.buffer();
val x$9: scaled.util.Chars.Pred = scaled.util.Chars.isNotWord();
val x$10: ErasedValueType(scaled.Loc) = p;
val x$11: ErasedValueType(scaled.Loc) = qual$2.scanForward$default$3();
qual$2.scanForward(x$9, x$10, x$11)
};
CodexMode.this.buffer().region(start, end).map({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(x$5: scaled.Line): String = x$5.asString();
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
}, collection.this.Seq.canBuildFrom()).mkString()
};
private def post(url: String, body: String): Tuple2 = try {
val conn: java.net.HttpURLConnection = new java.net.URL(url).openConnection().asInstanceOf[java.net.HttpURLConnection]();
conn.setRequestMethod("POST");
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setAllowUserInteraction(false);
conn.connect();
conn.getOutputStream().write(body.getBytes("UTF-8"));
conn.getOutputStream().close();
try {
val code: Int = conn.getResponseCode();
val stream: java.io.InputStream = if (code.>=(400))
conn.getErrorStream()
else
conn.getInputStream();
val encoding: String = scala.Option.apply(conn.getContentEncoding()).getOrElse({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction0 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(): String = "UTF-8";
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(): Object = $anonfun.this.apply()
};
(new anonymous class $anonfun(CodexMode.this): Function0)
});
new Tuple2(code, if (stream.==(null))
immutable.this.Nil
else
scala.io.Source.fromInputStream(stream, encoding).getLines().toList())
} finally conn.disconnect()
} catch {
case (e @ (_: Exception)) => new Tuple2(500, immutable.this.List.apply(scala.this.Predef.wrapRefArray(Array[String]{e.getMessage()})))
};
private def bufpath(): String = CodexMode.this.buffer().file().getAbsolutePath()
}
exception when typing scaled.Loc.None().==(x1)/class scala.reflect.internal.Trees$Apply
constructor Loc in class Loc cannot be accessed in object ScalaIndenter in file /Users/mdb/projects/scaled/scala-mode/src/main/scala/scaled/scala/ScalaIndenter.scala
scala.reflect.internal.Types$TypeError: constructor Loc in class Loc cannot be accessed in object ScalaIndenter
exception when typing package codex {
object CodexConfig extends scaled.Config.Defs {
def <init>(): codex.CodexConfig.type = {
CodexConfig.super.<init>(scaled.this.Config.Defs.<init>$default$1());
()
};
@scaled.Var(value = "The URL via which we communicate with Codex.") private[this] val codexUrl: scaled.Config.Key = CodexConfig.this.key("http://localhost:3003/");
<stable> <accessor> def codexUrl(): scaled.Config.Key = CodexConfig.this.codexUrl;
private[this] val symbolHistory: scaled.Config.Key = CodexConfig.this.fnKey({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>(): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(cfg: scaled.Config): scaled.Ring = new scaled.Ring(cfg.apply(scaled.EditorConfig.historySize()));
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(): Function1)
});
<stable> <accessor> def symbolHistory(): scaled.Config.Key = CodexConfig.this.symbolHistory
};
@scaled.Minor(name = "codex", tags = ["code"], desc = "A minor mode that provides fns to interact with the Codex server.") class CodexMode extends scaled.MinorMode {
<paramaccessor> private[this] val env: scaled.Env = _;
def <init>(env: scaled.Env): codex.CodexMode = {
CodexMode.super.<init>(env);
()
};
override def configDefs(): List = {
<synthetic> val x$1: codex.CodexConfig.type = CodexConfig;
CodexMode.super.configDefs().::(x$1)
};
override def keymap(): Seq = collection.this.Seq.apply(scala.this.Predef.wrapRefArray(Array[Tuple2]{ArrowAssoc.this.->$extension(scala.this.Predef.any2ArrowAssoc("C-c C-j"), "doc-symbol"), ArrowAssoc.this.->$extension(scala.this.Predef.any2ArrowAssoc("C-c C-k"), "open-symbol"), ArrowAssoc.this.->$extension(scala.this.Predef.any2ArrowAssoc("C-c C-i"), "import-symbol")}));
override def dispose(): Unit = ();
case class Match extends Object with Product with Serializable {
<caseaccessor> <paramaccessor> private[this] val lineNo: Int = _;
<stable> <caseaccessor> <accessor> <paramaccessor> def lineNo(): Int = Match.this.lineNo;
<caseaccessor> <paramaccessor> private[this] val name: String = _;
<stable> <caseaccessor> <accessor> <paramaccessor> def name(): String = Match.this.name;
<caseaccessor> <paramaccessor> private[this] val path: String = _;
<stable> <caseaccessor> <accessor> <paramaccessor> def path(): String = Match.this.path;
def <init>($outer: codex.CodexMode, lineNo: Int, name: String, path: String): CodexMode.this.Match = {
Match.super.<init>();
Match.this./*Product$class*/$init$();
()
};
private[this] val compName: String = new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"", " (", "@", ")"})).s(scala.this.Predef.genericWrapArray(Array[Object]{Match.this.name(), Match.this.file(), Match.this.lineNo()}));
<stable> <accessor> def compName(): String = Match.this.compName;
def file(): String = Match.this.path().substring(Match.this.path().lastIndexOf(java.io.File.separator).+(1));
<synthetic> def copy(lineNo: Int, name: String, path: String): codex.CodexMode#Match = new codex.CodexMode#Match(Match.this.codex$CodexMode$Match$$$outer(), lineNo, name, path);
<synthetic> def copy$default$1(): Int = Match.this.lineNo();
<synthetic> def copy$default$2(): String = Match.this.name();
<synthetic> def copy$default$3(): String = Match.this.path();
override <synthetic> def productPrefix(): String = "Match";
<synthetic> def productArity(): Int = 3;
<synthetic> def productElement(x$1: Int): Object = {
case <synthetic> val x1: Int = x$1;
(x1: Int) match {
case 0 => Match.this.lineNo()
case 1 => Match.this.name()
case 2 => Match.this.path()
case _ => throw new IndexOutOfBoundsException(x$1.toString())
}
};
override <synthetic> def productIterator(): Iterator = runtime.this.ScalaRunTime.typedProductIterator(Match.this);
<synthetic> def canEqual(x$1: Object): Boolean = x$1.$isInstanceOf[codex.CodexMode#Match]();
override <synthetic> def hashCode(): Int = {
<synthetic> var acc: Int = -889275714;
acc = Statics.this.mix(acc, lineNo());
acc = Statics.this.mix(acc, Statics.this.anyHash(name()));
acc = Statics.this.mix(acc, Statics.this.anyHash(path()));
Statics.this.finalizeHash(acc, 3)
};
override <synthetic> def toString(): String = ScalaRunTime.this._toString(Match.this);
override <synthetic> def equals(x$1: Object): Boolean = Match.this.eq(x$1.asInstanceOf[Object]()).||({
case <synthetic> val x1: Object = x$1;
case5(){
if (x1.isInstanceOf[codex.CodexMode#Match]().&&((x1.asInstanceOf[codex.CodexMode#Match](): codex.CodexMode#Match).codex$CodexMode$Match$$$outer().eq(Match.this.codex$CodexMode$Match$$$outer())))
matchEnd4(true)
else
case6()
};
case6(){
matchEnd4(false)
};
matchEnd4(x: Boolean){
x
}
}.&&({
<synthetic> val Match$1: codex.CodexMode#Match = x$1.asInstanceOf[codex.CodexMode#Match]();
Match.this.lineNo().==(Match$1.lineNo()).&&(Match.this.name().==(Match$1.name())).&&(Match.this.path().==(Match$1.path())).&&(Match$1.canEqual(Match.this))
}));
<synthetic> <paramaccessor> protected val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$Match$$$outer(): codex.CodexMode = Match.this.$outer
};
<synthetic> object Match extends runtime.AbstractFunction3 with Serializable {
def <init>($outer: codex.CodexMode): CodexMode.this.Match.type = {
Match.super.<init>();
()
};
final override <synthetic> def toString(): String = "Match";
case <synthetic> def apply(lineNo: Int, name: String, path: String): codex.CodexMode#Match = new codex.CodexMode#Match(Match.this.$outer, lineNo, name, path);
case <synthetic> def unapply(x$0: codex.CodexMode#Match): Option = if (x$0.==(null))
scala.this.None
else
new Some(new Tuple3(x$0.lineNo(), x$0.name(), x$0.path()));
<synthetic> private def readResolve(): Object = Match.this.$outer.Match();
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$Match$$$outer(): codex.CodexMode = Match.this.$outer;
case <synthetic> <bridge> def apply(v1: Object, v2: Object, v3: Object): Object = Match.this.apply(v1, v2, v3)
};
@volatile <synthetic> private[this] var Match$module: codex.CodexMode#Match.type = _;
<synthetic> <stable> def Match(): codex.CodexMode#Match.type = {
CodexMode.this.Match$module = new codex.CodexMode#Match.type(CodexMode.this);
CodexMode.this.Match$module
};
def docSymbol(symbol: String): Unit = {
val url: String = new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"", "query/findoc/", "", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{CodexMode.this.config().apply(CodexConfig.codexUrl()), symbol, CodexMode.this.bufpath()}));
CodexMode.this.editor().showURL(url)
};
def findSymbol(loc: ErasedValueType(scaled.Loc), symbol: String): Seq = {
case <synthetic> val x1: Tuple2 = CodexMode.this.post(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"", "query/find/", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{CodexMode.this.config().apply(CodexConfig.codexUrl()), symbol})), new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"", "\\n", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{CodexMode.this.bufpath(), CodexMode.this.buffer().offset(loc)})));
case6(){
if (x1.ne(null))
if (200.==(x1._1$mcI$sp()))
matchEnd5(x1._2().flatMap({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymou at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:401)
at scala.tools.nsc.typechecker.Infer$Inferencer.issue(Infer.scala:312)
s class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(x$2: String): Iterable = {
case <synthetic> val x1: Array[String] = x$2.split(" ");
case10(){
<synthetic> val o12: Option = scala.Array.unapplySeq(x1);
if (o12.isEmpty().unary_!())
if (o12.get().!=(null).&&(o12.get().lengthCompare(4).==(0)))
if ("match".==(o12.get().apply(0)))
matchEnd9(scala.this.Option.option2Iterable(new Some(new codex.CodexMode#Match($anonfun.this.$outer, scala.this.Predef.augmentString(o12.get().apply(1)).toInt(), o12.get().apply(2), o12.get().apply(3)))))
else
case11()
else
case11()
else
case11()
};
case11(){
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4613) <synthetic> val o14: Option = scala.Array.unapplySeq(x1);
if (o14.isEmpty().unary_!())
if (o14.get().!=(null).&&(o14.get().lengthCompare(1).==(0)))
if ("nomatch".==(o14.get().apply(0)))
matchEnd9(scala.this.Option.option2Iterable(scala.None))
else
case13()
else
case13()
else
case13()
};
case13(){
matchEnd9({
$anonfun.this.$outer.editor().emitStatus("Codex parse failure: ${other.toSeq}");
scala.this.Option.option2Iterable(scala.None)
})
};
matchEnd9(x: Iterable){
x
}
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
}, collection.this.Seq.canBuildFrom()))
else
case7()
else
case7()
};
case7(){
if (x1.ne(null))
matchEnd5({
CodexMode.this.editor().emitStatus(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Codex error (", "): ", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{x1._1$mcI$sp(), x1._2().mkString(" ")})));
collection.this.Seq.apply(immutable.this.Nil)
})
else
case8()
};
case8(){
matchEnd5(throw new MatchError(x1)) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4613)
};
matchEnd5(x: Seq){
x
}
};
def importSymbol(loc: ErasedValueType(scaled.Loc), symbol: String): Unit = ();
@scaled.Fn(value = "Queries the user for the name of a symbol, defaulting to the word at the point.\n Displays the documentation for said symbol. Results are displayed in your web browser.") def docSymbol(): Unit = {
val sym: String = CodexMode.this.wordAt(CodexMode.this.view().point().apply());
{
CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
f
inal def apply(m: codex.CodexMode#Match): Unit = $anonfun.this.$outer.docSymbol(m.name());
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
};
@scaled.Fn(value = "Queries the user for the name of a symbol, defaulting to the word at the point. Navigates\n to the definition of said symbol. If Codex is not able to uniquely identify the symbol\n under the point, it will return all symbols with the same name as the queried symbol.\n These matches can be navigated using [[next-error]] and [[previous-error]].") def openSymbol(): Unit = {
val sym: String = CodexMode.this.wordAt(CodexMode.this.view().point().apply());
{
at scala.tools.nsc.typechecker.Typers$Typer.onError$3(Typers.scala:4571) CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = {
$anonfun.this.$outer.editor().visitFile(new java.io.File(sym.path())).point().update(scaled.Loc.apply(sym.lineNo(), 0));
()
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.app
ly(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
};
@scaled.Fn(value = "Locates the class identified by the symbol under the point and inserts an import\n statement for that class in the appropriate position. For Java-like languages.") def importSymbol(): Unit = {
CodexMode.this.buffer().save();
val sym: String = CodexMode.this.wordAt(CodexMode.this.view().point().apply());
{
CodexMode.this.editor().miniRead("Symbol: ", sym, CodexMode.this.config().apply(CodexConfig.symbolHistory()), CodexMode.this.completeSymbol()).onSuccess({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(sym: codex.CodexMode#Match): Unit = ();
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
});
()
}
};
private def completeSymbol(): scaled.Completer = {
final class $anon extends scaled.Completer {
def <init>($outer: codex.CodexMode): anonymous class $anon = {
$anon.super.<init>();
()
};
private[this] var _current: String = "";
<accessor> private def _current(): String = $anon.this._current;
<accessor> private def _current_=(x$1: String): Unit = $anon.this._current = x$1;
private[this] var _matches: Seq = collection.this.Seq.apply(immutable.this.Nil);
<accessor> private def _matches(): Seq = $anon.this._matches;
<accessor> pr at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4613)ivate def _matches_=(x$1: Seq): Unit = $anon.this._matches = x$1;
def apply(prefix: String): collection.SortedMap = {
val lprefix: String = prefix.toLowerCase();
if ($anon.this._current().==("").||(lprefix.startsWith($anon.this._current()).unary_!()))
{
$anon.this.$outer.editor().emitStatus(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Completing
\'", "\'..."})).s(scala.this.Predef.genericWrapArray(Array[Object]{prefix})));
$anon.this._matches_=($anon.this.$outer.findSymbol($anon.this.$outer.buffer().start(), prefix.+("*")));
$anon.this._current_=(lprefix)
}
else
();
$anon.this.mapBy($anon.this._matches().filter({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: anonymou at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4625)
s class $anon): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(x$3: codex.CodexMode#Match): Boolean = x$3.compName().toLowerCase().startsWith(lprefix);
<synthetic> <paramaccessor> private[this] val $outer: anonymous class $anon = _;
<synthetic> <stable> def codex$CodexMode$$anon$$anonfun$$$outer(): anonymous class $anon = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun($anon.this): Function1)
}), {
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction1 with Serializable {
def <init>($outer: anonymous class $anon): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(x$4: codex.CodexMode#Match): String = x$4.compNa at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5530)me();
<synthetic> <paramaccessor> private[this] val $outer: anonymous class $anon = _;
<synthetic> <stable> def codex$CodexMode$$anon$$anonfun$$$outer(): anonymous class $anon = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun($anon.this): Function1)
})
};
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anon$$$outer(): codex.CodexMode = $anon.this.$outer
};
new anonymous class $anon(CodexMode.this)
};
private def wordAt(loc: ErasedValueType(scaled.Loc)): String = {
val p: ErasedValueType(scaled.Loc) = CodexMode.this.view().point().apply();
val pstart: ErasedValueType(scaled.Loc) = {
val qual$1: scaled.RBuffer = CodexMode.this.buffer();
val x$6: scaled.util.Chars.Pred = scaled.util.Chars.isNotWord();
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
val x$7: ErasedValueType(scaled.Loc) = p;
val x$8: ErasedValueType(scaled.Loc) = qual$1.scanBackward$default$3();
qual$1.scanBackward(x$6, x$7, x$8)
};
val start: ErasedValueType(scaled.Loc) = if (scaled.util.Chars.isWord().apply(CodexMode.this.buffer().charAt(pstart)))
pstart
else
CodexMode.this.buffer().forward(pstart, 1);
val end: ErasedValueType(scaled.Loc) = if (scaled.util.Chars.isWord().apply(CodexMode.this.buffer().charAt(start)).unary_!())
start
else
{
val qual$2: scaled.RBuffer = CodexMode.this.buffer();
val x$9: scaled.util.Chars.Pred = scaled.util.Chars.isNotWord();
val x$10: ErasedValueType(scaled.Loc) = p;
val x$11: ErasedValueType(scaled.Loc) = qual$2.scanForward$default$3();
qual$2.scanForward(x$9, x$10, x$11)
};
CodexMode.this.buffer().region(start, end).map({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runt at scala.tools.nsc.typechecker.Typers$Typer.typedIf$1(Typers.scala:4274)ime.AbstractFunction1 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(x$5: scaled.Line): String = x$5.asString();
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(v1: Object): Object = $anonfun.this.apply(v1)
};
(new anonymous class $anonfun(CodexMode.this): Function1)
}, collection.this.Seq.canBuildFrom()).mkString()
};
private def post(url: String, body: String): Tuple2 = try {
val conn: java.net.HttpURLConnection = new java.net.URL(url).openConnection().asInstanceOf[java.net.HttpURLConnection]();
conn.setRequestMethod("POST");
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setAllowUserInteraction(false);
conn.connect();
conn.getOutputStream().write(body.getByte
s("UTF-8"));
conn.getOutputStream().close();
try {
val code: Int = conn.getResponseCode();
val stream: java.io.InputStream = if (code.>=(400))
conn.getErrorStream()
else
conn.getInputStream();
val encoding: String = scala.Option.apply(conn.getContentEncoding()).getOrElse({
@SerialVersionUID(0) final <synthetic> class $anonfun extends runtime.AbstractFunction0 with Serializable {
def <init>($outer: codex.CodexMode): anonymous class $anonfun = {
$anonfun.super.<init>();
()
};
final def apply(): String = "UTF-8";
<synthetic> <paramaccessor> private[this] val $outer: codex.CodexMode = _;
<synthetic> <stable> def codex$CodexMode$$anonfun$$$outer(): codex.CodexMode = $anonfun.this.$outer;
final <bridge> def apply(): Object = $anonfun.this.apply()
};
(new anonymous class $anonfun(CodexMode.this): Function0)
});
new Tuple2(code, if (stream.==(null))
immutable.this.Nil
else
scala.io.Source.fromInputStream(stream, encoding).getLines().toList())
} finally conn.disconnect()
} catch {
case (e @ (_: Exception)) => new Tuple2(500, immutable.this.List.apply(scala.this.Predef.wrapRefArray(Array[String]{e.getMessage()})))
};
private def bufpath(): String = CodexMode.this.buffer().file().getAbsolutePath()
}
} at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5537)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5687)
at scala.tools.nsc.typechecker.Typers$Typer.typedLabelDef(Typers.scala:2342)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5552)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2431)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5536)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5687)
at scala.tools.nsc.typechecker.Typers$Typer.typedIf$1(Typers.scala:4281)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5537)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5811)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2256)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5535)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1918)
at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1758)unhandled exception while transforming CodexMode.scala
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5549)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
[error] uncaught exception during compilation: scala.reflect.internal.FatalError at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031)
at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5267)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5553)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5670)
at scala.tools.nsc.transform.Erasure$ErasureTransformer$$anonfun$transform$2.apply(Erasure.scala:1291)
at scala.tools.nsc.transform.Erasure$ErasureTransformer$$anonfun$transform$2.apply(Erasure.scala:1287)
at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:207)
at scala.reflect.internal.SymbolTable.afterPhase(SymbolTable.scala:216)
at scala.tools.nsc.transform.Erasure$ErasureTransformer.transform(Erasure.scala:1287)
at scala.tools.nsc.transform.Erasure$ErasureTransformer.transform(Erasure.scala:888)
at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:227)
at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:464)
at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:431)
at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:431)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:431)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1583)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1557)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1553)
at scala.tools.nsc.Global$Run.compile(Global.scala:1662)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:123)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:99)
at xsbt.CompilerInterface.run(CompilerInterface.scala:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:102)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:48)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:159)
at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:97)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:142)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:86)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:38)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:36)
at sbt.inc.Incremental$.cycle(Incremental.scala:73)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:33)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:32)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:41)
at sbt.inc.Incremental$.compile(Incremental.scala:32)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:26)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:150)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70)
at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45)
at sbt.Compiler$.apply(Compiler.scala:70)
at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:736)
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730)
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
[error] unrecoverable error
exception when typing if (scaled.Loc.None().==(x1))
matchEnd4({
scala.this.Predef.println(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Missing (object|class) for block on (with|extends) line!"})).s(immutable.this.Nil));
0
})
else
case6()
exception when typing case5(){
if (scaled.Loc.None().==(x1))
matchEnd4({
scala.this.Predef.println(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Missing (object|class) for block on (with|extends) line!"})).s(immutable.this.Nil));
0
})
else
case6()
}
exception when typing {
case <synthetic> val x1: ErasedValueType(scaled.Loc) = buffer.findBackward(ScalaIndenter.this.classOrObjectM(), Loc.this.atCol$extension(pos, 0), buffer.findBackward$default$3());
case5(){
if (scaled.Loc.None().==(x1))
matchEnd4({
scala.this.Predef.println(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Missing (object|class) for block on (with|extends) line!"})).s(immutable.this.Nil));
0
})
else
case6()
};
case6(){
matchEnd4(scaled.util.Indenter.readIndent(buffer, x1))
};
matchEnd4(x){
x
}
}
exception when typing if (scaled.util.Indenter.startsWith(buffer.line(pos), ScalaIndenter.this.extendsOrWithM()))
{
case <synthetic> val x1: ErasedValueType(scaled.Loc) = buffer.findBackward(ScalaIndenter.this.classOrObjectM(), Loc.this.atCol$extension(pos, 0), buffer.findBackward$default$3());
case5(){
if (scaled.Loc.None().==(x1))
matchEnd4({
scala.this.Predef.println(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Missing (object|class) for block on (with|extends) line!"})).s(immutable.this.Nil));
0
})
else
case6()
};
case6(){
matchEnd4(scaled.util.Indenter.readIndent(buffer, x1))
};
matchEnd4(x){
x
}
}
else
scaled.util.Indenter.readIndentSkipArglist(buffer, pos)
exception when typing def readBlockIndent(buffer: scaled.BufferV, pos: ErasedValueType(scaled.Loc)): Int = if (scaled.util.Indenter.startsWith(buffer.line(pos), ScalaIndenter.this.extendsOrWithM()))
{
case <synthetic> val x1: ErasedValueType(scaled.Loc) = buffer.findBackward(ScalaIndenter.this.classOrObjectM(), Loc.this.atCol$extension(pos, 0), buffer.findBackward$default$3());
case5(){
if (scaled.Loc.None().==(x1))
matchEnd4({
scala.this.Predef.println(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Missing (object|class) for block on (with|extends) line!"})).s(immutable.this.Nil));
0
})
else
case6()
};
case6(){
matchEnd4(scaled.util.Indenter.readIndent(buffer, x1))
};
matchEnd4(x){
x
}
}
else
scaled.util.Indenter.readIndentSkipArglist(buffer, pos)
exception when typing object ScalaIndenter extends Object {
def <init>(): scaled.scala.ScalaIndenter.type = {
ScalaIndenter.super.<init>();
()
};
def readBlockIndent(buffer: scaled.BufferV, pos: ErasedValueType(scaled.Loc)): Int = if (scaled.util.Indenter.startsWith(buffer.line(pos), ScalaIndenter.this.extendsOrWithM()))
{
case <synthetic> val x1: ErasedValueType(scaled.Loc) = buffer.findBackward(ScalaIndenter.this.classOrObjectM(), Loc.this.atCol$extension(pos, 0), buffer.findBackward$default$3());
case5(){
if (scaled.Loc.None().==(x1))
matchEnd4({
scala.this.Predef.println(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Missing (object|class) for block on (with|extends) line!"})).s(immutable.this.Nil));
0
})
else
case6()
};
case6(){
matchEnd4(scaled.util.Indenter.readIndent(buffer, x1))
};
matchEnd4(x){
x
}
}
else
scaled.util.Indenter.readIndentSkipArglist(buffer, pos);
private[this] val classOrObjectM: scaled.Matcher = scaled.Matcher.regexp("\\b(class|object)\\b");
<stable> <accessor> private def classOrObjectM(): scaled.Matcher = ScalaIndenter.this.classOrObjectM;
private[this] val extendsOrWithM: scaled.Matcher = scaled.Matcher.regexp("(extends|with)\\b");
<stable> <accessor> private def extendsOrWithM(): scaled.Matcher = ScalaIndenter.this.extendsOrWithM;
class ValueExprBody extends scaled.util.Indenter {
<paramaccessor> private[this] val config: scaled.Config = _;
<paramaccessor> private[this] val buffer: scaled.BufferV = _;
def <init>(config: scaled.Config, buffer: scaled.BufferV): scaled.scala.ScalaIndenter.ValueExprBody = {
ValueExprBody.super.<init>(config, buffer);
()
};
def apply(block: scaled.util.Block, line: scaled.LineV, pos: ErasedValueType(scaled.Loc)): Option = {
val pc: ErasedValueType(scaled.Loc) = (ValueExprBody.super.buffer(): scaled.BufferV).scanBackward(scaled.util.Chars.isNotWhitespace(), pos, block.start());
if (Loc.this.row$extension(pc).!=(Loc.this.row$extension(pos).-(1)).||((ValueExprBody.super.buffer(): scaled.BufferV).charAt(pc).!=('=')))
scala.None
else
{
ValueExprBody.this.debug(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Indenting one step from \'foo =\' @ ", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{pc})));
new Some(ValueExprBody.this.indentFrom(ScalaIndenter.this.readBlockIndent((ValueExprBody.super.buffer(): scaled.BufferV), pc), 1))
}
}
};
class CaseBody extends scaled.util.Indenter {
<paramaccessor> private[this] val config: scaled.Config = _;
<paramaccessor> private[this] val buffer: scaled.BufferV = _;
def <init>(config: scaled.Config, buffer: scaled.BufferV): scaled.scala.ScalaIndenter.CaseBody = {
CaseBody.super.<init>(config, buffer);
()
};
private[this] val caseArrowM: scaled.Matcher = scaled.Matcher.regexp("case\\s.*=>");
<stable> <accessor> private def caseArrowM(): scaled.Matcher = CaseBody.this.caseArrowM;
private[this] val closeB: scaled.Matcher = scaled.Matcher.exact("}");
<stable> <accessor> private def closeB(): scaled.Matcher = CaseBody.this.closeB;
def apply(block: scaled.util.Block, line: scaled.LineV, pos: ErasedValueType(scaled.Loc)): Option = if (scaled.util.Indenter.startsWith(line, CaseBody.this.caseArrowM()).||(scaled.util.Indenter.startsWith(line, CaseBody.this.closeB())))
scala.None
else
{
val caseLine: scaled.LineV = (CaseBody.super.buffer(): scaled.BufferV).line(Loc.this.nextL$extension(block.start()));
if (scaled.util.Indenter.startsWith(caseLine, CaseBody.this.caseArrowM()).unary_!())
scala.None
else
{
CaseBody.this.debug(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Identing one step from \'case\' @ ", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{Loc.this.nextL$extension(block.start())})));
new Some(CaseBody.this.indentFrom(scaled.util.Indenter.readIndent(caseLine), 1))
}
}
};
class Extends extends scaled.util.Indenter {
<paramaccessor> private[this] val config: scaled.Config = _;
<paramaccessor> private[this] val buffer: scaled.BufferV = _;
def <init>(config: scaled.Config, buffer: scaled.BufferV): scaled.scala.ScalaIndenter.Extends = {
Extends.super.<init>(config, buffer);
()
};
private[this] val classObjectM: scaled.Matcher = scaled.Matcher.regexp("\\b(class|object)\\b");
<stable> <accessor> private def classObjectM(): scaled.Matcher = Extends.this.classObjectM;
private[this] val extendsM: scaled.Matcher = scaled.Matcher.regexp("extends\\b");
<stable> <accessor> private def extendsM(): scaled.Matcher = Extends.this.extendsM;
def apply(block: scaled.util.Block, line: scaled.LineV, pos: ErasedValueType(scaled.Loc)): Option = if (line.matches(Extends.this.extendsM(), Loc.this.col$extension(pos)).unary_!())
scala.None
else
{
case <synthetic> val x1: ErasedValueType(scaled.Loc) = (Extends.super.buffer(): scaled.BufferV).findBackward(Extends.this.classObjectM(), pos, block.start());
case5(){
if (scaled.Loc.None().==(x1))
matchEnd4(scala.None)
else
case6()
};
case6(){
matchEnd4({
Extends.this.debug(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Indenting extends relative to class/object @ ", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{x1})));
new Some(Extends.this.indentFrom(scaled.util.Indenter.readIndent((Extends.super.buffer(): scaled.BufferV), x1), 2))
})
};
matchEnd4(x){
x
}
}
};
class Scaladoc extends scaled.util.Indenter {
<paramaccessor> private[this] val config: scaled.Config = _;
<paramaccessor> private[this] val buffer: scaled.BufferV = _;
def <init>(config: scaled.Config, buffer: scaled.BufferV): scaled.scala.ScalaIndenter.Scaladoc = {
Scaladoc.super.<init>(config, buffer);
()
};
private[this] val starM: scaled.Matcher = scaled.Matcher.exact("*");
<stable> <accessor> private def starM(): scaled.Matcher = Scaladoc.this.starM;
def apply(block: scaled.util.Block, line: scaled.LineV, pos: ErasedValueType(scaled.Loc)): Option = if ((Scaladoc.super.buffer(): scaled.BufferV).stylesAt(pos).contains(scaled.major.CodeConfig.docStyle()).unary_!().||(scaled.util.Indenter.startsWith(line, Scaladoc.this.starM()).unary_!()))
scala.None
else
{
var row: Int = scala.math.`package`.max(Loc.this.row$extension(pos).-(1), 0);
while$1(){
if (row.>(0).&&(scaled.util.Indenter.startsWith((Scaladoc.super.buffer(): scaled.BufferV).line(row), Scaladoc.this.starM())))
{
row = row.-(1);
while$1()
}
else
()
};
Scaladoc.this.debug(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Aligning scaladoc * with comment start on row ", "."})).s(scala.this.Predef.genericWrapArray(Array[Object]{row})));
new Some(scaled.util.Indenter.readIndent((Scaladoc.super.buffer(): scaled.BufferV).line(row)).+(2))
}
}
}
exception when typing package scaled.scala {
object ScalaIndenter extends Object {
def <init>(): scaled.scala.ScalaIndenter.type = {
ScalaIndenter.super.<init>();
()
};
def readBlockIndent(buffer: scaled.BufferV, pos: ErasedValueType(scaled.Loc)): Int = if (scaled.util.Indenter.startsWith(buffer.line(pos), ScalaIndenter.this.extendsOrWithM()))
{
case <synthetic> val x1: ErasedValueType(scaled.Loc) = buffer.findBackward(ScalaIndenter.this.classOrObjectM(), Loc.this.atCol$extension(pos, 0), buffer.findBackward$default$3());
case5(){
if (scaled.Loc.None().==(x1))
matchEnd4({
scala.this.Predef.println(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Missing (object|class) for block on (with|extends) line!"})).s(immutable.this.Nil));
0
})
else
case6()
};
case6(){
matchEnd4(scaled.util.Indenter.readIndent(buffer, x1))
};
matchEnd4(x){
x
}
}
else
scaled.util.Indenter.readIndentSkipArglist(buffer, pos);
private[this] val classOrObjectM: scaled.Matcher = scaled.Matcher.regexp("\\b(class|object)\\b");
<stable> <accessor> private def classOrObjectM(): scaled.Matcher = ScalaIndenter.this.classOrObjectM;
private[this] val extendsOrWithM: scaled.Matcher = scaled.Matcher.regexp("(extends|with)\\b");
<stable> <accessor> private def extendsOrWithM(): scaled.Matcher = ScalaIndenter.this.extendsOrWithM;
class ValueExprBody extends scaled.util.Indenter {
<paramaccessor> private[this] val config: scaled.Config = _;
<paramaccessor> private[this] val buffer: scaled.BufferV = _;
def <init>(config: scaled.Config, buffer: scaled.BufferV): scaled.scala.ScalaIndenter.ValueExprBody = {
ValueExprBody.super.<init>(config, buffer);
()
};
def apply(block: scaled.util.Block, line: scaled.LineV, pos: ErasedValueType(scaled.Loc)): Option = {
val pc: ErasedValueType(scaled.Loc) = (ValueExprBody.super.buffer(): scaled.BufferV).scanBackward(scaled.util.Chars.isNotWhitespace(), pos, block.start());
if (Loc.this.row$extension(pc).!=(Loc.this.row$extension(pos).-(1)).||((ValueExprBody.super.buffer(): scaled.BufferV).charAt(pc).!=('=')))
scala.None
else
{
ValueExprBody.this.debug(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Indenting one step from \'foo =\' @ ", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{pc})));
new Some(ValueExprBody.this.indentFrom(ScalaIndenter.this.readBlockIndent((ValueExprBody.super.buffer(): scaled.BufferV), pc), 1))
}
}
};
class CaseBody extends scaled.util.Indenter {
<paramaccessor> private[this] val config: scaled.Config = _;
<paramaccessor> private[this] val buffer: scaled.BufferV = _;
def <init>(config: scaled.Config, buffer: scaled.BufferV): scaled.scala.ScalaIndenter.CaseBody = {
CaseBody.super.<init>(config, buffer);
()
};
private[this] val caseArrowM: scaled.Matcher = scaled.Matcher.regexp("case\\s.*=>");
<stable> <accessor> private def caseArrowM(): scaled.Matcher = CaseBody.this.caseArrowM;
private[this] val closeB: scaled.Matcher = scaled.Matcher.exact("}");
<stable> <accessor> private def closeB(): scaled.Matcher = CaseBody.this.closeB;
def apply(block: scaled.util.Block, line: scaled.LineV, pos: ErasedValueType(scaled.Loc)): Option = if (scaled.util.Indenter.startsWith(line, CaseBody.this.caseArrowM()).||(scaled.util.Indenter.startsWith(line, CaseBody.this.closeB())))
scala.None
else
{
val caseLine: scaled.LineV = (CaseBody.super.buffer(): scaled.BufferV).line(Loc.this.nextL$extension(block.start()));
if (scaled.util.Indenter.startsWith(caseLine, CaseBody.this.caseArrowM()).unary_!())
scala.None
else
{
CaseBody.this.debug(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Identing one step from \'case\' @ ", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{Loc.this.nextL$extension(block.start())})));
new Some(CaseBody.this.indentFrom(scaled.util.Indenter.readIndent(caseLine), 1))
}
}
};
class Extends extends scaled.util.Indenter {
<paramaccessor> private[this] val config: scaled.Config = _;
<paramaccessor> private[this] val buffer: scaled.BufferV = _;
def <init>(config: scaled.Config, buffer: scaled.BufferV): scaled.scala.ScalaIndenter.Extends = {
Extends.super.<init>(config, buffer);
()
};
private[this] val classObjectM: scaled.Matcher = scaled.Matcher.regexp("\\b(class|object)\\b");
<stable> <accessor> private def classObjectM(): scaled.Matcher = Extends.this.classObjectM;
private[this] val extendsM: scaled.Matcher = scaled.Matcher.regexp("extends\\b");
<stable> <accessor> private def extendsM(): scaled.Matcher = Extends.this.extendsM;
def apply(block: scaled.util.Block, line: scaled.LineV, pos: ErasedValueType(scaled.Loc)): Option = if (line.matches(Extends.this.extendsM(), Loc.this.col$extension(pos)).unary_!())
scala.None
else
{
case <synthetic> val x1: ErasedValueType(scaled.Loc) = (Extends.super.buffer(): scaled.BufferV).findBackward(Extends.this.classObjectM(), pos, block.start());
case5(){
if (scaled.Loc.None().==(x1))
matchEnd4(scala.None)
else
case6()
};
case6(){
matchEnd4({
Extends.this.debug(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Indenting extends relative to class/object @ ", ""})).s(scala.this.Predef.genericWrapArray(Array[Object]{x1})));
new Some(Extends.this.indentFrom(scaled.util.Indenter.readIndent((Extends.super.buffer(): scaled.BufferV), x1), 2))
})
};
matchEnd4(x){
x
}
}
};
class Scaladoc extends scaled.util.Indenter {
<paramaccessor> private[this] val config: scaled.Config = _;
<paramaccessor> private[this] val buffer: scaled.BufferV = _;
def <init>(config: scaled.Config, buffer: scaled.BufferV): scaled.scala.ScalaIndenter.Scaladoc = {
Scaladoc.super.<init>(config, buffer);
()
};
private[this] val starM: scaled.Matcher = scaled.Matcher.exact("*");
<stable> <accessor> private def starM(): scaled.Matcher = Scaladoc.this.starM;
def apply(block: scaled.util.Block, line: scaled.LineV, pos: ErasedValueType(scaled.Loc)): Option = if ((Scaladoc.super.buffer(): scaled.BufferV).stylesAt(pos).contains(scaled.major.CodeConfig.docStyle()).unary_!().||(scaled.util.Indenter.startsWith(line, Scaladoc.this.starM()).unary_!()))
scala.None
else
{
var row: Int = scala.math.`package`.max(Loc.this.row$extension(pos).-(1), 0);
while$1(){
if (row.>(0).&&(scaled.util.Indenter.startsWith((Scaladoc.super.buffer(): scaled.BufferV).line(row), Scaladoc.this.starM())))
{
row = row.-(1);
while$1()
}
else
()
};
Scaladoc.this.debug(new StringContext(scala.this.Predef.wrapRefArray(Array[String]{"Aligning scaladoc * with comment start on row ", "."})).s(scala.this.Predef.genericWrapArray(Array[Object]{row})));
new Some(scaled.util.Indenter.readIndent((Scaladoc.super.buffer(): scaled.BufferV).line(row)).+(2))
}
}
}
}
unhandled exception while transforming ScalaIndenter.scala
[error] uncaught exception during compilation: scala.reflect.internal.FatalError
[trace] Stack trace suppressed: run last codex-mode/compile:compile for the full output.
[trace] Stack trace suppressed: run last scala-mode/compile:compile for the full output.
[error] (codex-mode/compile:compile) scala.reflect.internal.FatalError:
[error] while compiling: /Users/mdb/projects/scaled/codex-mode/src/main/scala/codex/CodexMode.scala
[error] during phase: global=erasure, atPhase=posterasure
[error] library version: version 2.10.3
[error] compiler version: version 2.10.3
[error] reconstructed args: -Ydead-code -optimise -deprecation -feature -Yinline -Yclosure-elim -classpath /Users/mdb/projects/scaled/codex-mode/target/classes:/Users/mdb/projects/scaled/scaled/target/classes:/Users/mdb/.ivy2/local/com.samskivert/reactual/1.0-SNAPSHOT/jars/reactual.jar:/Users/mdb/.ivy2/cache/org.ow2.asm/asm/jars/asm-5.0.1.jar:/Users/mdb/.ivy2/cache/com.google.guava/guava/bundles/guava-16.0.1.jar:/Users/mdb/.ivy2/cache/com.googlecode.plist/dd-plist/jars/dd-plist-1.8.jar -Yinline-handlers -unchecked -language:postfixOps -bootclasspath /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/classes:/Users/mdb/.sbt/boot/scala-2.10.3/lib/scala-library.jar
[error]
[error] last tree to typer: TypeTree(class Long)
[error] symbol: class Long in package scala (flags: final abstract)
[error] symbol definition: final abstract class Long extends
[error] tpe: Long
[error] symbol owners: class Long -> package scala
[error] context owners: method apply -> anonymous class $anonfun -> method openSymbol -> class CodexMode -> package codex
[error]
[error] == Enclosing template or block ==
[error]
[error] Apply( // val <error>: <error> in class <error>
[error] new scaled.Loc."<init>" // val <error>: <error> in class <error>, tree.tpe=<error>
[error] Apply( // final def $asInstanceOf[T0 >: ? <: ?](): T0 in class Object, tree.tpe=Long
[error] TypeApply( // final def $asInstanceOf[T0 >: ? <: ?](): T0 in class Object, tree.tpe=()Long
[error] scaled.Loc.apply(sym.lineNo(), 0)."$asInstanceOf" // final def $asInstanceOf[T0 >: ? <: ?](): T0 in class Object, tree.tpe=[T0 >: ? <: ?]()T0
[error] <tpt> // tree.tpe=Long
[error] )
[error] Nil
[error] )
[error] )
[error]
[error] == Expanded type of tree ==
[error]
[error] TypeRef(TypeSymbol(final abstract class Long extends ))
[error]
[error] unrecoverable error
[error] (scala-mode/compile:compile) scala.reflect.internal.FatalError:
[error] while compiling: /Users/mdb/projects/scaled/scala-mode/src/main/scala/scaled/scala/ScalaIndenter.scala
[error] during phase: global=erasure, atPhase=posterasure
[error] library version: version 2.10.3
[error] compiler version: version 2.10.3
[error] reconstructed args: -Ydead-code -optimise -classpath /Users/mdb/projects/scaled/scala-mode/target/classes:/Users/mdb/projects/scaled/textmate-grammar/target/classes:/Users/mdb/projects/scaled/scaled/target/classes:/Users/mdb/.ivy2/local/com.samskivert/reactual/1.0-SNAPSHOT/jars/reactual.jar:/Users/mdb/.ivy2/cache/org.ow2.asm/asm/jars/asm-5.0.1.jar:/Users/mdb/.ivy2/cache/com.google.guava/guava/bundles/guava-16.0.1.jar:/Users/mdb/.ivy2/cache/com.googlecode.plist/dd-plist/jars/dd-plist-1.8.jar -deprecation -feature -Yinline -Yclosure-elim -Yinline-handlers -unchecked -language:postfixOps -bootclasspath /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/classes:/Users/mdb/.sbt/boot/scala-2.10.3/lib/scala-library.jar
[error]
[error] last tree to typer: TypeTree(class Object)
[error] symbol: class Object in package lang (flags: <java>)
[error] symbol definition: class Object extends
[error] tpe: Object
[error] symbol owners: class Object -> package lang
[error] context owners: package <root>
[error]
[error] == Enclosing template or block ==
[error]
[error] Apply( // final def $asInstanceOf[T0 >: ? <: ?](): T0 in class Object, tree.tpe=Object
[error] TypeApply( // final def $asInstanceOf[T0 >: ? <: ?](): T0 in class Object, tree.tpe=()Object
[error] new scaled.Loc(scaled.Loc.None().$asInstanceOf[Long]())."$asInstanceOf" // final def $asInstanceOf[T0 >: ? <: ?](): T0 in class Object, tree.tpe=[T0 >: ? <: ?]()T0
[error] <tpt> // tree.tpe=Object
[error] )
[error] Nil
[error] )
[error]
[error] == Expanded type of tree ==
[error]
[error] TypeRef(TypeSymbol(class Object extends ))
[error]
[error] unrecoverable error
[error] Total time: 48 s, completed Apr 28, 2014 6:12:30 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment