我正在使用Intellij Idea社区版。当我跑的时候
new https://github.com/sbt/scala-seed.g8或
new PlayFramework/play-scala-seed.g8在 shell中,它给出了以下错误:
Error: Unknown argument 'idea-shell' g8 0.7.2 Usage: giter8 [options] <template> <template> git or file URL, or github user/repo -b, --branch <value> Resolve a template within a given branch -f, --force Force overwrite of any existing files in output directory --version Display version number
--paramname=paramval Set given parameter value and bypass interaction EXAMPLES Apply a template from github
g8 foundweekends/giter8 Apply using the git URL for the same template
g8 git://github.com/foundweekends/giter8.git Apply template from a remote branch
g8 foundweekends/giter8 -b some-branch Apply template from a local repo
g8 file://path/to/the/repo Apply given name parameter and use defaults for all others.
g8 foundweekends/giter8 --name=template-test发布于 2018-05-21 15:24:11
这是由于shell是如何在IntelliJ Scala插件中实现的。而且,new命令实际上并不意味着要从一个活动的shell会话中运行。
从终端运行new:
sbt new https://github.com/sbt/scala-seed.g8发布于 2018-05-21 15:31:06
您应该在终端上使用它,如:sbt new scala/scala-seed.g8
如果你还有问题:
build.sbt)运行它。sbt。https://stackoverflow.com/questions/50450379
复制相似问题