问题
what does it mean when running sbt command in command line in scala . Set current project to default-6c6f02 (in build file:/home/user_name/Videos/
what should i set after this statement?
回答1:
This happens if you call sbt
command in the folder where you don't have built. sbtor project/Build.scala
, as i understand in your case it's /home/user_name/Videos/
. And because you dont' have any build configuration in the current folder, sbt creates a default one. You can fix this easily, just add small build.sbt
file with:
name := "project name"
version := "0.1"
Please notice the blank line between settings, in build.sbt
this is necessary
回答2:
You don't have to set anything, sbt is telling you it has set the current project to this.
来源:https://stackoverflow.com/questions/22344010/set-current-project-to-default-6c6f02-in-build-file-home-user-name-videos