如何在 Ubuntu 12.04 上的 Eclipse/Scala-IDE 中的工作表中获得内联结果? [英] How to get inline results in a worksheet in Eclipse/Scala-IDE on Ubuntu 12.04?

查看:18
本文介绍了如何在 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

这篇关于如何在 Ubuntu 12.04 上的 Eclipse/Scala-IDE 中的工作表中获得内联结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆