Comments (5)
looks like a manifestation of scala/scala-dev#480, which is a regression in Scala 2.12.5 on Java 9 & 10
in the short term, if you are trying to get started with the language, you should find that using Java 8 works fine as a workaround.
but also, I don't understand why this is happening to you, because https://github.com/scala/scala-seed.g8/blob/2.12.x/src/main/g8/build.sbt says 2.12.4, not 2.12.5. because we intentionally haven't merged #22 yet, exactly because of scala/scala-dev#480
if I try to reproduce the problem on my own machine, I can't. it works fine, as seen in this transcript: https://gist.github.com/SethTisue/f727ae33a31e01533a1fd4f6468968f3
anyone have an idea how or why @aturner-tvpage's experience was different?
from scala-seed.g8.
This is weird. I created a clean directory, and re-ran, and it worked as advertised. I had created another project moments before the first time, updating the Scala version to the current release, then relatively quickly, re-ran the sbt new, and it failed. Is it possible something somewhere was caching?
from scala-seed.g8.
That does in fact appear to be what is occurring!
I build my project that asks for Scala 2.12.5 and it tried to build (and fails right now because, I was half way through something).
Create a new project, run sbt test and it fails! How interesting..
ATurner:aws-query aturner$ sbt test
[info] Loading project definition from /Users/aturner/work/tvpage/aws-query/project
[info] Loading settings from build.sbt ...
[info] Set current project to aws-report (in build file:/Users/aturner/work/tvpage/aws-query/)
[info] Compiling 2 Scala sources to /Users/aturner/work/tvpage/aws-query/target/scala-2.12/classes ...
[error] /Users/aturner/work/tvpage/aws-query/src/main/scala/com/tvpage/aws/AmazonWebServiceRequestIterator.scala:3:47: identifier expected but ')' found.
[error] class AmazonWebServiceRequestIteratorT {
[error] ^
[error] /Users/aturner/work/tvpage/aws-query/src/main/scala/com/tvpage/aws/AmazonWebServiceRequestIterator.scala:5:2: ')' expected but eof found.
[error] }
[error] ^
[error] two errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 3 s, completed Mar 30, 2018, 5:46:49 PM
ATurner:aws-query aturner$ cd ..
ATurner:tvpage aturner$ sbt new sbt/scala-seed.g8
[info] Set current project to tvpage (in build file:/Users/aturner/work/tvpage/)
[info] Set current project to tvpage (in build file:/Users/aturner/work/tvpage/)
A minimal Scala project.
name [Scala Seed Project]: crikey
Template applied in ./crikey
ATurner:tvpage aturner$ cd crikey/
ATurner:crikey aturner$ sbt test
[info] Loading project definition from /Users/aturner/work/tvpage/crikey/project
[info] Updating ProjectRef(uri("file:/Users/aturner/work/tvpage/crikey/project/"), "crikey-build")...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/aturner/work/tvpage/crikey/project/target/scala-2.12/sbt-1.0/classes ...
[info] Done compiling.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/Users/aturner/.sbt/boot/scala-2.12.4/org.scala-sbt/sbt/1.1.1/protobuf-java-3.3.1.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[info] Loading settings from build.sbt ...
[info] Set current project to Hello (in build file:/Users/aturner/work/tvpage/crikey/)
[info] Updating ...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/aturner/work/tvpage/crikey/target/scala-2.12/classes ...
[info] Done compiling.
[info] Compiling 1 Scala source to /Users/aturner/work/tvpage/crikey/target/scala-2.12/test-classes ...
[error] /Users/aturner/work/tvpage/crikey/src/test/scala/example/HelloSpec.scala:6:22: value should is not a member of String
[error] "The Hello object" should "say hello" in {
[error] ^
[error] /Users/aturner/work/tvpage/crikey/src/test/scala/example/HelloSpec.scala:7:20: value shouldEqual is not a member of String
[error] Hello.greeting shouldEqual "hello"
[error] ^
[error] two errors found
[error] (Test / compileIncremental) Compilation failed
[error] Total time: 4 s, completed Mar 30, 2018, 5:47:59 PM
ATurner:crikey aturner$
from scala-seed.g8.
Is it possible something somewhere was caching?
maybe it just overwrote the directory from last time and you ended up with a mix of stuff?
from scala-seed.g8.
I'm not sure what your other comment is about, maybe ask on https://users.scala-lang.org
from scala-seed.g8.
Related Issues (9)
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 scala-seed.g8.