textmate / standard-ml.tmbundle

TextMate support for Standard ML
7 stars 3 forks source link

Using to TextMate::Executor #1

Closed robsonpeixoto closed 9 years ago

robsonpeixoto commented 10 years ago

Using TextMate::Executor is possible to run SML script that import another files. The example below will not work if I try to run hw0test.sml

(* hw0provided.sml *)
(* Dan Grossman, Coursera PL, HW0 Provided Code *)
fun f(x,y) = x * y
fun double x = f(x,2)
fun triple x = f(3,x)
(* hw0test.sml *)
(* Dan Grossman, Coursera PL, HW0 Provided Code *)
(* Homework0 Simple Test *)
use "hw0provided.sml";
val test1 = double 17 = 34
val test2 = double 0 = 0
val test3 = triple ~4 = ~12
robsonpeixoto commented 10 years ago

ping @infininight

infininight commented 10 years ago

Was looking at this yesterday and thought there was a path issue with Executor but I looked into it further today and I see the issue is with sml itself (using smlny from MacPorts). When the path to hw0test.sml contains a space you get the error:

sml: Fatal error -- unable to open heap image "/Users/msheets/SML"

Know of a good way to get rid of that issue?

robsonpeixoto commented 10 years ago

I have no idea. Which version are you using? Do you mean smlnj? I'm using Standard ML of New Jersey v110.77 from homebrew and works very well.

I tested in the folder /Users/robinho/tmp/s pace/ using TextMate and the command line. Worked for both cases.

infininight commented 10 years ago

Yes I did mean smlnj I'm using Standard ML of New Jersey v110.75 so I guess it could be a bug that's been corrected?

robsonpeixoto commented 10 years ago

Maybe. I'm a SML noob. Looking the release notes I found that the Mavericks support was added on version v110.6.

Try to upgrade it.