java.lang.UnsupportedOperationException: tail of empty list

grzegorzbalcerek.net | 4 months ago
  1. 0

    UnsupportedOperationException: tail of empty list in 0.13.6-M1

    GitHub | 2 years ago | puffnfresh
    java.lang.UnsupportedOperationException: tail of empty list
  2. 0

    peristAll throws when nil

    GitHub | 1 year ago | ahjohannessen
    java.lang.UnsupportedOperationException: tail of empty list
  3. 0

    Metody kolekcji

    grzegorzbalcerek.net | 4 months ago
    java.lang.UnsupportedOperationException: tail of empty list
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The following compiles under Scala 2.10.x but fails under 2.11.x: {code} import org.scalacheck.Gen object Example { type S[A] = String val genRollupKey: Gen[String] = Gen.containerOfN[S, Char](8, Gen.numChar) } {code} build.sbt only has Scala version and: {code} libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.11.5" % "test" {code} Here is the stack trace: {noformat} java.lang.UnsupportedOperationException: tail of empty list at scala.collection.immutable.Nil$.tail(List.scala:422) at scala.collection.immutable.Nil$.tail(List.scala:417) at scala.reflect.internal.tpe.TypeMaps$SubstSymMap.subst(TypeMaps.scala:745) at scala.reflect.internal.tpe.TypeMaps$SubstSymMap.substFor(TypeMaps.scala:747) at scala.reflect.internal.tpe.TypeMaps$SubstSymMap.apply(TypeMaps.scala:753) at scala.reflect.internal.Types$Type.substSym(Types.scala:715) at scala.reflect.internal.Symbols$class.deriveType2(Symbols.scala:3535) at scala.reflect.internal.SymbolTable.deriveType2(SymbolTable.scala:16) at scala.reflect.internal.Types$ExistentialType.skolemizeExistential(Types.scala:2629) at scala.reflect.internal.Types$Type.skolemizeExistential(Types.scala:481) at scala.reflect.internal.tpe.TypeComparers$class.secondTry$1(TypeComparers.scala:445) at scala.reflect.internal.tpe.TypeComparers$class.firstTry$1(TypeComparers.scala:411) at scala.reflect.internal.tpe.TypeComparers$class.isSubType2(TypeComparers.scala:552) at scala.reflect.internal.tpe.TypeComparers$class.isSubType1(TypeComparers.scala:320) at scala.reflect.internal.tpe.TypeComparers$class.isSubType(TypeComparers.scala:278) at scala.reflect.internal.SymbolTable.isSubType(SymbolTable.scala:16) at scala.reflect.internal.Types$class.isSubArg$1(Types.scala:4116) at scala.reflect.internal.Types$$anonfun$isSubArgs$2.apply(Types.scala:4120) at scala.reflect.internal.Types$$anonfun$isSubArgs$2.apply(Types.scala:4120) at scala.reflect.internal.util.Collections$class.corresponds3(Collections.scala:24) at scala.reflect.internal.SymbolTable.corresponds3(SymbolTable.scala:16) at scala.reflect.internal.Types$class.isSubArgs(Types.scala:4120) at scala.reflect.internal.SymbolTable.isSubArgs(SymbolTable.scala:16) at scala.reflect.internal.tpe.TypeComparers$class.firstTry$1(TypeComparers.scala:402) at scala.reflect.internal.tpe.TypeComparers$class.isSubType2(TypeComparers.scala:552) at scala.reflect.internal.tpe.TypeComparers$class.isSubType1(TypeComparers.scala:320) at scala.reflect.internal.tpe.TypeComparers$class.isSubType(TypeComparers.scala:278) at scala.reflect.internal.SymbolTable.isSubType(SymbolTable.scala:16) at scala.reflect.internal.Types$Type.$less$colon$less(Types.scala:779) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.loop$1(Implicits.scala:557) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.checkCompatibility(Implicits.scala:559) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.normSubType(Implicits.scala:373) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.matchesPt(Implicits.scala:477) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.scala$tools$nsc$typechecker$Implicits$ImplicitSearch$$matchesPt(Implicits.scala:487) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.survives(Implicits.scala:821) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation$$anonfun$20$$anonfun$21.apply(Implicits.scala:877) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation$$anonfun$20$$anonfun$21.apply(Implicits.scala:877) at scala.collection.TraversableLike$$anonfun$filterImpl$1.apply(TraversableLike.scala:259) at scala.collection.immutable.List.foreach(List.scala:381) at scala.collection.TraversableLike$class.filterImpl(TraversableLike.scala:258) at scala.collection.TraversableLike$class.filter(TraversableLike.scala:270) at scala.collection.AbstractTraversable.filter(Traversable.scala:104) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation$$anonfun$20.apply(Implicits.scala:877) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation$$anonfun$20.apply(Implicits.scala:876) at scala.collection.immutable.List.flatMap(List.scala:327) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.<init>(Implicits.scala:876) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.searchImplicit(Implicits.scala:991) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.bestImplicit(Implicits.scala:1352) at scala.tools.nsc.typechecker.Implicits$class.inferImplicit(Implicits.scala:73) at scala.tools.nsc.Global$$anon$1.inferImplicit(Global.scala:439) at scala.tools.nsc.typechecker.Implicits$class.inferImplicit(Implicits.scala:38) at scala.tools.nsc.Global$$anon$1.inferImplicit(Global.scala:439) at scala.tools.nsc.typechecker.Typers$Typer.applyImplicitArgs(Typers.scala:145) at scala.tools.nsc.typechecker.Typers$Typer.adaptToImplicitMethod$1(Typers.scala:822) at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1151) at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1148) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit1(Implicits.scala:648) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit0(Implicits.scala:585) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.scala$tools$nsc$typechecker$Implicits$ImplicitSearch$$typedImplicit(Implicits.scala:454) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.rankImplicits(Implicits.scala:906) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.findBest(Implicits.scala:934) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.searchImplicit(Implicits.scala:991) at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.bestImplicit(Implicits.scala:1370) at scala.tools.nsc.typechecker.Implicits$class.inferImplicit(Implicits.scala:73) at scala.tools.nsc.Global$$anon$1.inferImplicit(Global.scala:439) at scala.tools.nsc.typechecker.Implicits$class.inferImplicit(Implicits.scala:38) at scala.tools.nsc.Global$$anon$1.inferImplicit(Global.scala:439) at scala.tools.nsc.typechecker.Typers$Typer.applyImplicitArgs(Typers.scala:145) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$adaptToImplicitMethod$1$1$$anonfun$apply$6.apply(Typers.scala:825) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$adaptToImplicitMethod$1$1$$anonfun$apply$6.apply(Typers.scala:824) at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:696) at scala.tools.nsc.typechecker.Typers$Typer.adaptToImplicitMethod$1(Typers.scala:822) at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1151) at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5307) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5320) at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5267) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5271) at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5502) at scala.tools.nsc.typechecker.Typers$Typer.typedValDefImpl(Typers.scala:1966) at scala.tools.nsc.typechecker.Typers$Typer.typedValDef(Typers.scala:1929) at scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5203) at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5256) at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5293) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5320) at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5267) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5271) at scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5349) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2985) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$61.apply(Typers.scala:3089) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$61.apply(Typers.scala:3089) at scala.collection.immutable.List.loop$1(List.scala:172) at scala.collection.immutable.List.mapConserve(List.scala:188) at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3089) at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1892) at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:1779) at scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5207) at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5256) at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5293) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5320) at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5267) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5271) at scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5349) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2985) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$61.apply(Typers.scala:3089) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$61.apply(Typers.scala:3089) at scala.collection.immutable.List.loop$1(List.scala:172) at scala.collection.immutable.List.mapConserve(List.scala:188) at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3089) at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:4916) at scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5209) at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5256) at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5293) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5320) at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5267) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5271) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5345) at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:102) at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:410) at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:94) at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:93) at scala.collection.Iterator$class.foreach(Iterator.scala:743) at scala.collection.AbstractIterator.foreach(Iterator.scala:1177) at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:93) at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1557) at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1542) at scala.tools.nsc.Global$Run.compileSources(Global.scala:1537) at scala.tools.nsc.Global$Run.compile(Global.scala:1644) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:99) at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:99) at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:99) at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:166) at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:98) at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:143) at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:87) at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:39) at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:37) at sbt.inc.IncrementalCommon.cycle(Incremental.scala:99) at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:38) at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:37) at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:65) at sbt.inc.Incremental$.compile(Incremental.scala:37) at sbt.inc.IncrementalCompile$.apply(Compile.scala:27) at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:157) at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:71) at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:46) at sbt.Compiler$.apply(Compiler.scala:75) at sbt.Compiler$.apply(Compiler.scala:66) at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:770) at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:762) at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:762) 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:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) {noformat}

    Scala JIRA | 2 years ago | Brian McKenna
    java.lang.UnsupportedOperationException: tail of empty list
  6. 0

    Mixin crasher

    GitHub | 3 years ago | VladUreche
    java.lang.UnsupportedOperationException: tail of empty list

  1. silex 1 times, last 6 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedOperationException

    tail of empty list

    at scala.collection.immutable.Nil$.tail()
  2. Scala
    Nil$.tail
    1. scala.collection.immutable.Nil$.tail(List.scala:422)
    2. scala.collection.immutable.Nil$.tail(List.scala:417)
    2 frames