Getting quickstart to work

98 views
Skip to first unread message

Ahmed Khawaja

unread,
Sep 2, 2019, 9:30:43 PM9/2/19
to Spatial Users
Greetings,

I just got everything installed on a fresh Ubuntu 18 install on  AWS and I'm trying to compile the provided example in the quick start:

sbt "runMain HelloSpatial.scala "
[info] Updated file /home/ubuntu/spatial-quickstart/project/build.properties: set sbt.version to 1.2.8
[info] Loading project definition from /home/ubuntu/spatial-quickstart/project
[info] Updating ProjectRef(uri("file:/home/ubuntu/spatial-quickstart/project/"), "spatial-quickstart-build")...
[info] Done updating.
[info] Loading settings for project spatial-quickstart from build.sbt ...
[info] Set current project to spatial-app (in build file:/home/ubuntu/spatial-quickstart/)
[info] Updating ...
[warn] Resolving a snapshot version. It's going to be slow unless you use `updateOptions := updateOptions.value.withLatestSnapshots(false)` options.
[info] Out of 1 candidates we found for edu.stanford.cs.dawn#spatial_2.12;1.1-SNAPSHOT in sonatype-snapshots, we are choosing sonatype-snapshots.
[warn] Resolving a snapshot version. It's going to be slow unless you use `updateOptions := updateOptions.value.withLatestSnapshots(false)` options.
[info] Out of 1 candidates we found for edu.stanford.cs.dawn#forge_2.12;1.1-SNAPSHOT in sonatype-snapshots, we are choosing sonatype-snapshots.
[warn] Resolving a snapshot version. It's going to be slow unless you use `updateOptions := updateOptions.value.withLatestSnapshots(false)` options.
[info] Out of 1 candidates we found for edu.stanford.cs.dawn#utils_2.12;1.1-SNAPSHOT in sonatype-snapshots, we are choosing sonatype-snapshots.
[warn] Resolving a snapshot version. It's going to be slow unless you use `updateOptions := updateOptions.value.withLatestSnapshots(false)` options.
[info] Out of 1 candidates we found for edu.stanford.cs.dawn#emul_2.12;1.1-SNAPSHOT in sonatype-snapshots, we are choosing sonatype-snapshots.
[warn] Resolving a snapshot version. It's going to be slow unless you use `updateOptions := updateOptions.value.withLatestSnapshots(false)` options.
[info] Out of 1 candidates we found for edu.stanford.cs.dawn#argon_2.12;1.1-SNAPSHOT in sonatype-snapshots, we are choosing sonatype-snapshots.
[warn] Resolving a snapshot version. It's going to be slow unless you use `updateOptions := updateOptions.value.withLatestSnapshots(false)` options.
[info] Out of 1 candidates we found for edu.stanford.cs.dawn#models_2.12;1.1-SNAPSHOT in sonatype-snapshots, we are choosing sonatype-snapshots.
[warn] Resolving a snapshot version. It's going to be slow unless you use `updateOptions := updateOptions.value.withLatestSnapshots(false)` options.
[info] Out of 1 candidates we found for edu.stanford.cs.dawn#poly_2.12;1.1-SNAPSHOT in sonatype-snapshots, we are choosing sonatype-snapshots.
[info] Done updating.
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Compiling 2 Scala sources to /home/ubuntu/spatial-quickstart/target/scala-2.12/classes ...
[error] /home/ubuntu/spatial-quickstart/src/main/scala/HelloSpatial.scala:3:17: HelloSpatial is already defined as object HelloSpatial
[error] @spatial object HelloSpatial extends SpatialApp {
[error]                 ^
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 4 s, completed Sep 3, 2019 1:29:13 AM
[error] Spatial compilation failed

I feel like I'm doing something basic incorrectly?

Whats the proper procedure for compiling the default example in quickstart?

Matt F

unread,
Sep 2, 2019, 11:39:30 PM9/2/19
to Spatial Users
Hi Ahmed,

Can you check to make sure there are no extra definitions of HelloSpatial? 

grep -r HelloSpatial /home/ubuntu/spatial-quickstart

If there is only the one definition, can you try cleaning and compiling again?

sbt clean
Or manually,
rm -rf /home/ubuntu/spatial-quickstart/target
rm -rf /home/ubuntu/spatial-quickstart/project/target

Let me know what happens.
Reply all
Reply to author
Forward
0 new messages