【问题标题】:Bad symbolic reference in SBT scala projectSBT scala项目中的错误符号引用
【发布时间】:2013-10-21 14:37:03
【问题描述】:

我做了一个小的重构,一切在语法上仍然是正确的,它应该可以编译。但是,我得到了一个错误:

[error] bad symbolic reference. A signature in MyClass123.class refers to type MyClass456
[error] in package com.mypackage which is not available.
[error] It may be completely missing from the current classpath, or the version on
[error] the classpath might be incompatible with the version used when compiling MyClass123.class.
[error] one error found

没有改变其他任何东西。我什至将代码恢复到以前的未重构版本,但错误仍然存​​在。我也尝试重新加载 sbt。

也许我需要以某种方式从 sbt 生成的文件中清理项目?如果没有,我该怎么办?

【问题讨论】:

标签: scala refactoring sbt


【解决方案1】:

我最好的猜测是,您确实需要清理项目。只需输入sbt clean

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-26
    • 2019-02-12
    • 2018-05-27
    • 1970-01-01
    • 2014-11-21
    • 2018-03-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多