首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:未知数“想法-壳”

错误:未知数“想法-壳”
EN

Stack Overflow用户
提问于 2018-05-21 13:49:48
回答 2查看 501关注 0票数 0

我正在使用Intellij Idea社区版。当我跑的时候

代码语言:javascript
复制
new https://github.com/sbt/scala-seed.g8

代码语言:javascript
复制
new PlayFramework/play-scala-seed.g8

shell中,它给出了以下错误:

代码语言:javascript
复制
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
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-05-21 15:24:11

这是由于shell是如何在IntelliJ Scala插件中实现的。而且,new命令实际上并不意味着要从一个活动的shell会话中运行。

从终端运行new

代码语言:javascript
复制
sbt new https://github.com/sbt/scala-seed.g8
票数 1
EN

Stack Overflow用户

发布于 2018-05-21 15:31:06

您应该在终端上使用它,如:sbt new scala/scala-seed.g8

如果你还有问题:

  • 也许您必须从一个不是SBT项目的目录(没有build.sbt)运行它。
  • 当然,您需要安装sbt
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50450379

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档