【发布时间】:2013-06-08 03:42:01
【问题描述】:
当我在 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 programatically, settings.usejavacp.value = true.
所有需要设置的东西,就是setup: sbt, dependencies等,也就是说如果使用sbt命令行(编译,运行)运行这个项目,它就会运行成功。
当然,我跑了sbt gen-idea。
我该怎么办?
【问题讨论】:
-
IntelliJ 12 给我带来了各种各样的问题(不是这个特定的问题,而是很多其他问题)。不幸的是,我的解决方案是只使用 cmdline 中的 sbt。
-
@sberry,是否可以在命令行中使用某种工作表?
-
看来不是。至少,我找不到办法。对不起。
标签: scala intellij-idea