更新时间:2022-05-20 02:42:25
您还可以将Scala对象转换为脚本。只需删除文件中的所有声明,只保留可执行语句 - println(Hello,World!),然后按上述说明运行脚本。
You can also turn your Scala object into a script. Just remove all declarations from the file, leave the executable statement only - println("Hello, World!"), and run the script as described above.
但是我确认它的结果与您引用的错误相同。我认为这是一个错误(或不准确的文档),提交错误,Jetbrains的人非常积极地开发这个插件。
However I confirm that it results with the same error as you quoted. I think this is a bug (or inaccurate documentaion), file a bug, Jetbrains guys are developing this plugin very actively.