» Home » Scala » Page 1
sbt can't find scala.reflect.Manifest when getting Unidoc.scala settings with scala 2.10.0
Category : 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

View Replies

How to port Scala 2.7.7 code that uses scala.collection.jcl to Scala 2.8?
Category : 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?

View Replies

ensime scala errors (class scala.Array not found, object scala not found)
Category : 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)<

View Replies

How can I see in what [Java/Scala?] code does Scala compiler rewrites original Scala-code
Category : 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

View Replies

Cast Class Exception in Scala: java.lang.Object to Scala CaseClass
Category : 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.

View Replies

android + scala + preinstalled scala libraries + disabled proguard throws ClassNotFoundException
Category : 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

View Replies

Scala functional way of processing large scala data with lazy collections
Category : 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

View Replies

Is there any way to avoid Scala libraries appearing twice in an Eclipse/Scala/Maven project?
Category : 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

View Replies

how to use scala internals to compile source faster than fsc (fast scala compiler)
Category : 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

View Replies

Scala: Higher kinded, open-type and wild card generics in Java, C#, Scala and C++
Category : 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

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .