【问题标题】:How to run .sml file by using emacs?如何使用 emacs 运行 .sml 文件?
【发布时间】:2013-10-16 16:06:42
【问题描述】:

我无法在 emacs 中运行简单的 .sml 文件。请帮我。

新泽西州标准 ML v110.76 [构建时间:2013 年 7 月 14 日星期日 09:59:19] - 使用“s.sml”;

[打开 s.sml] [使用失败:Io: openIn 在 "s.sml" 上失败,Win32TextPrimIO:openRd: failed]

未捕获的异常错误 提出于:../compiler/TopLevel/interact/interact.sml:24.14-24.28

谢谢, 达山

【问题讨论】:

  • 说出你做了什么来得到这个错误。

标签: emacs smlnj


【解决方案1】:

我建议如下

1.Close Emacs,then open it
2.Create new file by C-x C-f
3.enter valid sml code in the file wc you created and named test.sml say
4.C-x C-s to save it 
5.M-x run-sml and press return twice
6.In the sml REPL enter use "test.sml";press return 
7.This is it!!!

【讨论】:

    【解决方案2】:

    确保运行 sml 之前的目录与文件所在的目录相同。否则,您必须使用文件的绝对路径。查看处理相同问题的this question(并暗示可能是文件未正确指定的问题)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-11
      • 2020-11-03
      • 2017-05-16
      • 2015-05-28
      • 1970-01-01
      • 2017-03-21
      • 2011-05-14
      • 1970-01-01
      相关资源
      最近更新 更多