Scala(SBT)编译错误:单独的输出路径(生产,测试) [英] Scala (SBT) compile error: separate output paths (production, tests)

查看:95
本文介绍了Scala(SBT)编译错误:单独的输出路径(生产,测试)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IntelliJ和Eclipse Scala上有相同的编译错误:

I have the same compile error on IntelliJ and Eclipse Scala:


Error:scalac:输出路径C:\workspaces\ \ScalaProgFun\forcomp\bin是在
之间共享的:模块'progfun-forcomp'的生产,模块
'progfun-forcomp'的测试请配置单独的输出路径,以
继续进行编译。提示:如果需要,您可以使用Project Artifacts来
组合编译的类。

"Error:scalac: Output path C:\workspaces\ScalaProgFun\forcomp\bin is shared between: Module 'progfun-forcomp' production, Module 'progfun-forcomp' tests Please configure separate output paths to proceed with the compilation. TIP: you can use Project Artifacts to combine compiled classes if needed."

有人可以帮我吗? ?
我不知道SBT的工作原理!

Can someone help me with this, please? I have no idea how SBT works!

此项目发生此错误:
http://spark-public.s3.amazonaws.com/progfun/assignments/forcomp.zip

推荐答案

在IntelliJIDEA中,您可以尝试使用File-> Project Structure-> Modules-> Your Project-> Paths
指定不同的测试和输出路径(如果您有多个模块-您可以尝试为每个模块指定唯一路径)

In IntelliJIDEA you can try to use File -> Project Structure -> Modules -> Your Project -> Paths Specify different paths for test and output (if you have more than one module - you can try to specify unique paths for every module)

这篇关于Scala(SBT)编译错误:单独的输出路径(生产,测试)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆