当我在IntelliJ Idea 12 (sbt插件,Scala项目)中运行一个工作表时,我得到一个错误:
> Failed to initialize compiler: class scala.reflect.BeanInfo not found.
** Note that as of 2.8 scala does not assume use of the java classpath.
** For the old behavior pass -usejavacp to scala, or if using a Settings
** object programat
我正在尝试使用Scala插件、scala-sbt0.13和jdk-1.8在IntelliJ IDEA 2016.2.1中实现最简单的代码。代码如下:
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello, world!")
}
}
它编译时出现错误
Error: Could not find or load main class HelloWorld
在运行/调试配置中,‘re是一个警告:“在模块中找不到类HelloWorld ...”
你能帮我照亮一下吗?
我有一个SBT项目,它聚合了多个项目,如下所示:
object ClientCore extends Build {
/**
* This is the root project
*/
lazy val rootProj = Project(id = "clientcore", base = file(".")) aggregate(
utilsProj,
commonUiProj,
spatialMathProj,
sessionManagerProj,
lobbyProj,
)
/**
* This is a
在更改了IntelliJ中的IntelliJ文件后,我得到了一个奇怪的错误报告,其中显示“键”(我甚至不知道这些键是什么)正在与自己发生冲突。研究此错误消息只会发现github请求,其中人们请求库维护人员在密钥前加上前缀以避免密钥冲突。这些内置的IntelliJ密钥如何与自己发生冲突?这没有任何意义。下面是堆栈跟踪的摘录:
java.lang.RuntimeException: Some keys were defined with the same name but different types:
'ssExtractBuild' (sbt.Task[org.jetbra
我最近将IntelliJ更新到了2018.2版本,自更新以来,当我试图启动我的Java Play SBT项目时,我一直收到这个错误:
BUILD_NUMBER not defined, setting version:
sbt.SettingKey$$anon$4@2ad8aeb5
[info] Loading settings from build.sbt ...
BUILD_NUMBER not defined, setting version: sbt.SettingKey$$anon$4@2ad8aeb5
[info] Set current project to [PROJECT_
在intellij中设置scala项目时,我将获得以下错误日志:
Error:Error while importing SBT project:<br/>...<br/><pre>[error] at
sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:107)
[error] at sbt.io.Using.apply(Using.scala:22)
[error] at sbt.MainLoop$.runWithNewLog(MainLoop.scala:101)
[erro
我是sbt的新手,我想通过IntelliJ中的一个Scala小项目来学习它。
我从官方的sbt入门指南开始,学习控制台上的sbt基础知识()。按照指南,一切都编译得很好。
然后,我在IntelliJ中创建了一个sbt项目,试图在那里做同样的事情。当我将org.scalatest依赖项添加到build.sbt文件中时,项目将无法再编译。错误信息是:
module not found: org.scalatest#scalatest_2.13;3.0.5
当我在IntelliJ中创建新的sbt项目时,首先build.sbt看起来如下所示:
name := "sbtTest"
ver