将当前项目设置为 default-6c6f02(在构建文件中:/home/user_name/Videos/ [英] Set current project to default-6c6f02 (in build file:/home/user_name/Videos/
问题描述
在 scala 的命令行中运行 sbt 命令是什么意思.将当前项目设置为 default-6c6f02(在构建文件中:/home/user_name/Videos/
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?
推荐答案
如果您在尚未构建的文件夹中调用 sbt
命令,就会发生这种情况.sbt 或 project/Build.scala
,据我所知,在您的情况下它是 /home/user_name/Videos/
.并且因为您在当前文件夹中没有任何构建配置,所以 sbt 会创建一个默认配置.您可以轻松解决此问题,只需添加小的 build.sbt
文件:
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"
请注意设置之间的空行,在build.sbt
中这是必要的
Please notice the blank line between settings, in build.sbt
this is necessary
这篇关于将当前项目设置为 default-6c6f02(在构建文件中:/home/user_name/Videos/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!