GithubHelp home page GithubHelp logo

Comments (12)

lihaoyi avatar lihaoyi commented on August 19, 2024

Hmm try scala 2.11.4 or Java 8? Those are the things that come to mind

from ammonite.

jchayat avatar jchayat commented on August 19, 2024

Yes, It works on 2.11.4

Does it work on 2.10.4? I had a resolution problem.

from ammonite.

lihaoyi avatar lihaoyi commented on August 19, 2024

Doesn't work with 2.10.4

from ammonite.

lihaoyi avatar lihaoyi commented on August 19, 2024

Maybe at some point I'll cross publish; for now 2.11.4 it is ^_^

from ammonite.

jarandaf avatar jarandaf commented on August 19, 2024

I also experience this issue, scala version is 2.11.4 and java version is 1.8.0_25.

from ammonite.

lihaoyi avatar lihaoyi commented on August 19, 2024

@jchayat @jarandaf The latest version is cross-published, the older ones don't. Have you tried that?

from ammonite.

alexarchambault avatar alexarchambault commented on August 19, 2024

@jarandaf @lihaoyi Binary incompatibilities in the scala-compiler JAR are quite common, I ran into one between 2.10.4/2.10.5 (macro related methods that changed), there are also some in 2.11 (2.11.2 vs 2.11.4 or 5 for sure, ran into it with the spark repl jar). Using the exact same version as ammonite should be recommended.

from ammonite.

lihaoyi avatar lihaoyi commented on August 19, 2024

@alexarchambault should we cross-publish Ammonite against different minor versions of Scala? How does one even do that? Presumably it's possible

from ammonite.

alexarchambault avatar alexarchambault commented on August 19, 2024

@lihaoyi shapeless is doing it with scala 2.10 (see https://github.com/milessabin/shapeless#shapeless-210), but it's cumbersome for its users. I'm really shared about this (I'll let you decide anyway!) You could just recommend to use the latest scala version.

from ammonite.

alexarchambault avatar alexarchambault commented on August 19, 2024

To go the cross publishing route, it should just be a matter of adding

crossVersion := CrossVersion.full

crossScalaVersions := (0 to 5).filterNot(3.==).map("2.11." + _) ++ ...

in build.sbt, and for the users, use

"com.lihaoyi" %% "ammonite-..." % "..." cross CrossVersion.full

as a dependency instead of just

"com.lihaoyi" %% "ammonite-..." % "..."

(after-thought: not that cumbersome)

from ammonite.

jarandaf avatar jarandaf commented on August 19, 2024

Using same scala version as Ammonite seems to solve the problem (or at least, the REPL starts). I am facing another problem now (see #35), probably not directly related.

from ammonite.

lihaoyi avatar lihaoyi commented on August 19, 2024

Fixed in 0.2.8

from ammonite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.