加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

致命错误:找不到对象标量

发布时间:2020-12-16 18:02:35 所属栏目:安全 来源:网络整理
导读:我刚在osx上通过macports安装了 scala sudo port安装scala28 我创建了一个名为test.scala的简单脚本 println("hello world") 当我经过它 scala test.scala 我收到以下错误: scala test.scala error: fatal error: object scala not found.one error found
我刚在osx上通过macports安装了 scala

sudo port安装scala28

我创建了一个名为test.scala的简单脚本

println("hello world")

当我经过它

scala test.scala

我收到以下错误:

scala test.scala 
error: fatal error: object scala not found.
one error found

有任何想法吗?

**更新**
从REPL运行会产生正确的结果,但仍然无法直接使用“scala”

Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM,Java 1.6.0_24).
Type in expressions to have them evaluated.
Type :help for more information.

scala> :load ./test.scala
Loading ./test.scala...
hi there sir

scala>

**更新最终**

当我做ps -ef | grep scala
我有几个scala编译服务器正在运行,当我关闭它们并重新运行我的脚本时,所有工作都在重新运行.一定是处于糟糕状态.

解决方法

似乎FSC处于不良状态,重新启动了FSC编译器

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读