Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem in build.sbt #112

Closed
poweihuang17 opened this issue Jan 13, 2018 · 3 comments
Closed

problem in build.sbt #112

poweihuang17 opened this issue Jan 13, 2018 · 3 comments

Comments

@poweihuang17
Copy link

poweihuang17 commented Jan 13, 2018

Hi, when I issue " sbt run", it generated this kind of error. But when I changed the type, it's fixed. Is there anyone who's interested to fix this?

My sbt version is 1.1.0.
And my setting in build.sbt is like this:
name := "chisel-tutorial"
scalaVersion := "2.12.4"
crossScalaVersions := Seq("2.11.11", "2.12.3")

/Users/Powei/Dropbox/riscv/chisel/chisel-tutorial/build.sbt:7: error: scrutinee is incompatible with pattern type;
found : Int
required: Long
case Some((2, scalaMajor: Int)) if scalaMajor < 12 => Seq()
^
/Users/Powei/Dropbox/riscv/chisel/chisel-tutorial/build.sbt:19: error: scrutinee is incompatible with pattern type;
found : Int
required: Long
case Some((2, scalaMajor: Int)) if scalaMajor < 12 =>

Thanks in advance.

@poweihuang17
Copy link
Author

I fix it by changing the type from Int to Long.

@ucbjrl
Copy link
Contributor

ucbjrl commented Jan 13, 2018

The release branches of chisel-template and chisel-tutorial use sbt 0.13. When we switch to sbt 1.0 and Scala 2.12 (which will probably happen within a month) for all the chisel-related repos, we'll update these as well.

@ucbjrl
Copy link
Contributor

ucbjrl commented Apr 18, 2018

Closed by #123

@ucbjrl ucbjrl closed this as completed Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants