Comments (12)
Hmm try scala 2.11.4 or Java 8? Those are the things that come to mind
from ammonite.
Yes, It works on 2.11.4
Does it work on 2.10.4? I had a resolution problem.
from ammonite.
Doesn't work with 2.10.4
from ammonite.
Maybe at some point I'll cross publish; for now 2.11.4 it is ^_^
from ammonite.
I also experience this issue, scala version is 2.11.4 and java version is 1.8.0_25.
from ammonite.
@jchayat @jarandaf The latest version is cross-published, the older ones don't. Have you tried that?
from ammonite.
@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.
@alexarchambault should we cross-publish Ammonite against different minor versions of Scala? How does one even do that? Presumably it's possible
from ammonite.
@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.
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.
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.
Fixed in 0.2.8
from ammonite.
Related Issues (20)
- running tests failed unable to find utest
- not working in Windows, but found a workaround
- upickle.default.macroRW not working in Ammonite Repl 2.5.11 (Scala 3.2.2 Java 17.0.8.1)
- varargs in main causes errors
- unable to access package-private symbols from .sc files HOT 1
- os.proc.pipeTo() is not available HOT 1
- Deprecate `object $` to avoid unsoundess
- Please publish for Scala 2.12.19 and 2.13.13 HOT 1
- Publish for Scala 3.3.2, 3.3.3 & 3.4.0 HOT 2
- scala.reflect.internal.FatalError: bad constant pool index: 0 at pos HOT 4
- Please publish for Scala 2.13.14 HOT 6
- import $ivy ERROR HOT 2
- Scala 3: Importing circe-core breaks further evaluation due to `export` identifier HOT 1
- Installation via bootstrap fails HOT 4
- Error exits Ammonite shell when trying to look up methods for a Map object HOT 1
- no 3.3-3.0.0-M2 release artifact? HOT 1
- Publish artifact for 2.5.x / Scala 2.13.14 HOT 2
- REPL throws `@ error while loading CodeColors` for Scala 3 LTS HOT 10
- Support scala-cli directives
- Ammonite crashes with "scala.MatchError: ArraySeq()" in highlightFrame in Repl.scala
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ammonite.