ucb-bar / chisel-tutorial

chisel tutorial exercises and answers
Other
696 stars 197 forks source link

how to run chisel-tutorial in the IntelliJ IDE with Scala and SBT plug-ins? #149

Open Ravenwater opened 5 years ago

Ravenwater commented 5 years ago

I imported the chisel-tutorial into IntelliJ and it recognized the sbt project. Inside the sbt console I can successfully run the builds and tests, but when I try to use the editor, the environment can't resolve the chisel3 import.

Being new to scala, sbt, chisel, and the IntelliJ scala/sbt environment, I need a little help finding the pieces in the environment that are not configured correctly.

ShraddhaDevaiya commented 5 years ago

facing the same! please give some solution to this. How can we run this tutorial in the IntelliJ scala environment?

schoeberl commented 5 years ago

Not super elegant, but you can use the terminal in the IntelliJ editor to type the sbt commands to run your code. So you can still use IntelliJ for editing (that's my default development setup).

There is also a sbt window available within IntelliJ that you can use, it just takes some time to start.

Cheers, Martin

On 17 Oct 2019, at 05:59, Shraddha Devaiya notifications@github.com wrote:

facing the same! please give some solution to this. How can we run this tutorial in the IntelliJ scala environment?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ShraddhaDevaiya commented 5 years ago

when I execute the command 'run' in sbt command window to build the definition, it is giving me an error like the following: [IJ]sbt:chisel-tutorial> run [warn] [warn] Note: Unresolved dependencies path:

[error] stack trace is suppressed; run 'last update' for the full output [error] (update) sbt.librarymanagement.ResolveException: Error downloading edu.berkeley.cs:chisel-iotesters_2.13:1.2.+ [error] No version found for [1.2,1.2.max] in [error] No version found for [1.2,1.2.max] in

[error] not found: C:\Users\Pvips_Admin.ivy2\local\edu.berkeley.cs\chisel-iotesters_2.13 [error] not found: https://repo1.maven.org/maven2/edu/berkeley/cs/chisel-iotesters_2.13/maven-metadata.xml [error] not found: https://oss.sonatype.org/content/repositories/snapshots/edu/berkeley/cs/chisel-iotesters_2.13/maven-metadata.xml [error] not found: https://oss.sonatype.org/content/repositories/releases/edu/berkeley/cs/chisel-iotesters_2.13/maven-metadata.xml [error] Error downloading edu.berkeley.cs:chisel3_2.13:3.1.+ [error] No version found for [3.1,3.1.max] in [error] No version found for [3.1,3.1.max] in [error] not found: C:\Users\Pvips_Admin.ivy2\local\edu.berkeley.cs\chisel3_2.13 [error] not found: https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.13/maven-metadata.xml [error] not found: https://oss.sonatype.org/content/repositories/snapshots/edu/berkeley/cs/chisel3_2.13/maven-metadata.xml [error] not found: https://oss.sonatype.org/content/repositories/releases/edu/berkeley/cs/chisel3_2.13/maven-metadata.xml [error] Total time: 9 s, completed 18-Oct-2019, 11:21:31 am [IJ]sbt:chisel-tutorial>

so what can I do for this?

ShraddhaDevaiya commented 5 years ago

Hello, It is working fine now. there was one JDK version error, it is supported JDK 11.0 and I had configured JDK 13.0.