Sublime Forum

Common LISP, Windows (Cygwin) - Build system?

#1

Hi, I just started trying out Sublime 2, and I also just started learning LISP. I’ve never really used Cygwin before either (finally picked it up cuz apparently it’s the only way to run CLISP on Windows?)

So I’m not familiar with any of these tools, and have never set up a build system before (besides fixing the one for Python, which, confusingly, was apparently broken either because the C:\Python27 was entered into my PATH with double-quotes, or because it was at the very end of the list? I changed both at the same time, and once it magically started working I lost interest in trying to figure out why it was broken before.)

So, could anyone tell me exactly what I need to do to make this work? Thanks! ^^

[EDIT:

Goddamnit, played around just a little bit more and it turns out a valid build JSON is just:

{ "cmd": "clisp", "$file_name" ] }

xD

It’s the $file_name rather than $file that makes it work. Magic!

Sorry for cluttering up your forum by using it as a rubber duckie. :blush:
]

0 Likes

#2

Okay, so, using a file named:

    test.lisp

in the directory:

    C:\Users\MY_USER_NAME\Desktop\Google Drive\LISP

and containing the line:

    (print "hello")

I can do this:

  1. open the Windows command prompt.
  2. cd to the directory.
  3. enter:
    mintty

This opens a window with Cygwin’s BASH prompt, showing:

MY_USER_NAME@COMPUTER_NAME /cygdrive/c/Users/MY_USER_NAME/Desktop/Google Drive/LISP $
3) enter:

    clisp test.lisp

It responds:

and goes back to the same prompt.

So… I need to figure out how to express that in the JSON file that is the build… which means I’ll need to…?

Oh, it turns out that there’s an actual clisp.exe in C:\cygwin\bin, so I can just enter at the Windows command prompt directly (assuming the prompt is in the right directory):

    clisp test.lisp

But for some reason that takes ten seconds to respond (as in, I counted “one-mississippi, two-mississippi…” ; So it’s a long time).

0 Likes