» Home » Scala » Page 1
sbt can't find scala.reflect.Manifest when getting Unidoc.scala settings with scala 2.10.0
by YooperDave in Coding

I just updated my project to Scala 2.10.0 using SBT 0.12. But now, when running sbt, I get the following error:

java.lang.NoClassDefFoundError: scala/reflect/ManifestFactory$
at X.build.Unidoc$.<init>(Unidoc.scala:8)
at X.build.Unidoc$.<clinit>(Unidoc.scala)
at X.build.ServicesBuild$.<init>(Build.scala:25)
at X.build.ServicesB

How to port Scala 2.7.7 code that uses scala.collection.jcl to Scala 2.8?
by zz64 in Programming Languages

I've got some code that references scala.collection.jcl written against Scala 2.7.7. I'm now trying to compile it against Scala 2.8 for the first time, and I'm getting this error:

"value jcl is not a member of package collection".

Is there a substitute/replacement for jcl in 2.8?

ensime scala errors (class scala.Array not found, object scala not found)
by kanda in Programming Languages

I've installed ensime according to the README.md file, however, I get errors in the inferior-ensime-server buffer with the following:

INFO: Fatal Error: scala.tools.nsc.MissingRequirementError: object scala not found.
scala.tools.nsc.MissingRequirementError: object scala not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:516)<

How can I see in what [Java/Scala?] code does Scala compiler rewrites original Scala-code
by mysql in Programming Languages

Following Scala mailing lists, different people often say: "compiler rewrites this [scala] code into this [java/scala??] code". For example, from one of the latest threads, if Scala sees

class C(i: Int = 4) { ... }

then the compiler rewrites this as (effectively):

class C(i: Int) { ... }
object C {
def init$default$1: Int = 4

android + scala + preinstalled scala libraries + disabled proguard throws ClassNotFoundException
by yhelothar in Programming Languages

Final purpose of this feat: Use android device for development by fast compiling without needing to use proguard each single time (which causes huge delays)

First try is on Sony Ericsson Xperia Mini Pro

I have installed in it Cyanogenmod which is already rooted and the root checker app has verified it.

This is the app I used to embed Scala library 2.9.1 insid

Cast Class Exception in Scala: java.lang.Object to Scala CaseClass
by LittleCodeShop in Java

This is driving me crazy - I'm working on play with scala, social secure etc and I keep getting this error when I'm trying to make a case class.

Edit: similar question to this: Scala and Play2: ClassCastException: java.lang.Object cannot be cast to play.api.libs.json.JsValue

Edit: moving the method createIdentityFromUser to the static companion class seems to fix this.

how to use scala internals to compile source faster than fsc (fast scala compiler)
by legendma in Programming Languages

fsc (fast scala compiler) is faster than scalac. but during TDD cycles i consume 3 seconds to compile sources over less than 1s to run my tests.. suggestion to reduce compile time near 0?

obviously, buy a faster computer is not an answer :)

i mean use some scala internals to compile source faster as possible

Scala functional way of processing large scala data with lazy collections
by AnthonyC in Network & Servers

I am trying to figure out memory-efficient AND functional ways to process a large scale of data using strings in scala. I have read many things about lazy collections and have seen quite a bit of code examples. However, I run into "GC overhead exceeded" or "Java heap space" issues again and again.

Often the problem is that I try to construct a lazy collection, but evaluate each new

Is there any way to avoid Scala libraries appearing twice in an Eclipse/Scala/Maven project?
by Alex Sadzawka in Programming Languages

I have

Eclipse 3.5.2
Scala 2.8.0 final (inc latest Scala IDE for Eclipse)
Maven integration for Eclipse
Maven 2.2.1
.project and .classpath files generated by maven-eclipse-plugin

I'm using Scala to write Specs BDD tests for my Java code and the setup above is working very nicely so far. However, I have one puzzling problem and I would like to k

Scala: Higher kinded, open-type and wild card generics in Java, C#, Scala and C++
by Timo in Java

I'd been programming in C#, but was frustrated by the limitations of its type system. One of the first things, I learned about Scala was that Scala has higher kinded generics. But even after I'd looked at a number of articles, blog entries and questions I still wasn't sure what higher kinded generics were. Anyway I'd written some Scala code which compiled fine, Does this snippet use higher kind

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .