浏览二进制 scala jar 依赖项时出现以下 Eclipse 错误:
Source not found
The source attachment does not contain the source for the file Http.class
You can change the source attachment by clicking Change Attached Source below
源附件是一个包含 .scala 源文件的 jar 文件,单击按钮并重新导航到该 jar 不会执行任何操作。有没有办法让它发挥作用?
顺便说一句,这是使用SBT eclipse插件引入的依赖,使用withSources()依赖
最佳答案
您应该确保您的包结构与 java 中所需的目录结构相匹配。
关于eclipse - 如何让 Eclipse 查看 jar 中的 Scala 源代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6240512/