为什么sbt会以“失败”而失败;预期的''&引用;?

为什么sbt会以“失败”而失败;预期的''&引用;?,sbt,chisel,Sbt,Chisel,当我从项目中运行示例凿子设计时,我发现错误如下: $ ./run-examples.sh SimpleALU ... [info] Set current project to chisel-tutorial (in build file:/home/fchen/work/learning-journey/) [error] Expected ';' [error] test:run-main examples.Launcher SimpleALU

当我从项目中运行示例凿子设计时,我发现错误如下:

    $ ./run-examples.sh SimpleALU
    ...
    [info] Set current project to chisel-tutorial (in build file:/home/fchen/work/learning-journey/)
    [error] Expected ';'
    [error] test:run-main examples.Launcher SimpleALU
    [error]                                          ^

有人知道可能出了什么问题吗?

应该使用
runMain
而不是
runMain
run main
在几年前被弃用并从SBT中删除


作为一个温和的警告,当最新版本为3.3.2且3.4.0即将发布时,使用凿子3.1.8有点过时。从技术上讲,3.1.8只有一年的历史,但去年有了很大的发展。

tl;dr编辑
运行示例。sh
改为使用
sbt runMain


情况如下:

#!/usr/bin/env bash
args=$@
sbt -v "test:run-main examples.Launcher $args"
这基本上归结为执行
runmain
命令。这在最近的sbt版本中不再可用

$ sbt -V
sbt version in this project: 1.3.13
sbt script version: 1.3.13

$ sbt run-main whatever
...
[error] Expected ';'
[error] Not a valid command: run-main
[error] Not a valid project ID: run-main
[error] Expected ':'
[error] Not a valid key: run-main (similar: runMain, bgRunMain, fgRunMain)
[error] run-main
[error]         ^

这正是错误所在,不是吗?

以下链接提供了解决方案: