scala – 为了细节而重新运行
发布时间:2020-12-16 09:39:42 所属栏目:安全 来源:网络整理
导读:当我在游戏机中编译scala时,我得到了: [warn] there were 1 feature warning(s); re-run with -feature for details[warn] one warning found 我以为这意味着编译功能,但是我得到了: [error] Expected ID character[error] Not a valid command: compile
当我在游戏机中编译scala时,我得到了:
[warn] there were 1 feature warning(s); re-run with -feature for details [warn] one warning found 我以为这意味着编译功能,但是我得到了: [error] Expected ID character [error] Not a valid command: compile (similar: completions) [error] Expected project ID [error] Expected configuration [error] Expected ':' (if selecting a configuration) [error] Expected key [error] Expected '::' [error] Expected end of input. [error] compile -feature [error] 然后我运行play -feature,我得到这个: [warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.0 并放弃戒烟 那么该怎么做呢? 解决方法
你必须添加
scalacOptions += "-feature" 到你的build.sbt并执行重新加载,如果你的sbt控制台正在运行(或重新启动它)。 或者,如果要仅为单个会话设置它,而在sbt控制台中,您可以编写set scalacOptions =“-feature”,此设置将立即应用,无需重新加载或重新启动sbt控制台。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |