如何在 Ubuntu 12.04 上的 Eclipse/Scala-IDE 中的工作表中获得内联结果?
我已经在我的 Mac 和装有 Ubuntu 12.04 的电脑上安装了 Scala-IDE.在那里我创建了一个项目,其中包含一个包和一个工作表.在我的 Mac 上,工作表在右侧的同一行中显示每一行的结果.例如:
I've got the Scala-IDE installed on my Mac and on my pc with Ubuntu 12.04. In there I created a project, with a package and in there a worksheet. On my mac, the worksheet shows results of every line on the same line on the right. For example:
package mypackage
object myworksheet {
println("Hello World!") > Hello World!
}
但是,在 Ubuntu 上,我看不到右侧的结果.我尝试在工作表中进行更改并保存它,但没有任何区别.
On Ubuntu however, I do not see the result on the right. I've tried making changes in the worksheet and saving it, but it makes no difference.
有人知道我如何在我的 Ubuntu 机器上获得这些内联结果吗?
Does anybody know how I can get these inline results on my Ubuntu machine as well?
推荐答案
我遇到了同样的问题,在 eclipse.ini 中添加 -Dfile.encoding=UTF8 解决了这个问题.
I had the same issue, adding -Dfile.encoding=UTF8 to eclipse.ini fixed the issue.
有关更多详细信息,请查看问题的答案:Scala Worksheet 中的结果编码Eclipse 插件
For more details look at answer to the question: Results encoding in Scala Worksheet Eclipse plugin
相关文章