我无法在emacs中运行简单的.sml文件。请帮帮我。如何使用emacs运行.sml文件?
新泽西州v110.76的标准ML [构建:Sun Jul 14 09:59:19 2013] - 使用“s.sml”;
[开s.sml] [使用失败:IO:openIn失败的 “s.sml”,Win32TextPrimIO:openRd:失败]在提出
未捕获的异常错误 :../compiler/TopLevel/互动/ interact.sml:24.14-24.28
感谢, 达山
我无法在emacs中运行简单的.sml文件。请帮帮我。如何使用emacs运行.sml文件?
新泽西州v110.76的标准ML [构建:Sun Jul 14 09:59:19 2013] - 使用“s.sml”;
[开s.sml] [使用失败:IO:openIn失败的 “s.sml”,Win32TextPrimIO:openRd:失败]在提出
未捕获的异常错误 :../compiler/TopLevel/互动/ interact.sml:24.14-24.28
感谢, 达山
请确保您运行SML之前的目录是同一个作为文件所在的一个。否则,您必须使用该文件的绝对路径。看看this问题,它处理同样的问题(并且表明它可能是文件未被正确指定的问题)。
我建议以下
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!!!
说你做了什么来得到这个错误。 – Stefan