start-process-shell-command: Spawning child process: invalid argument

604 views
Skip to first unread message

Andrew

unread,
Nov 16, 2011, 4:15:42 PM11/16/11
to clo...@googlegroups.com
Having trouble setting up Clojure/Emacs on Windows again. Earlier Mark Rathwell helped me by pointing out a recipe for Windows that resolved an issue with sh. After having the setup work for a while, I botched something while trying to upgrade clojure-mode. So I tried to start from scratch using the same recipe and now I see this when I try M-x clojure-jack-in

start-process-shell-command: Spawning child process: invalid argument

Other notes:
  • The value of inferior-lisp-program is "lein repl".
  • If I start eshell and type lein repl, I see a repl start up.
  • If I start eshell and type sh and answer the prompt with lein repl, I also see a repl start up.
  • lein is in my windows path
  • c:/emacs and c:/emacs/bin are both in my path so sh.bat can be found
  • the swank-clojure 1.3.3 plugin is installed

How do I find out what the "invalid argument" is?

Mark Rathwell

unread,
Nov 16, 2011, 5:39:06 PM11/16/11
to clo...@googlegroups.com
Andrew,

I don't have access to a Windows machine at the moment, but
sidestepping clojure-jack-in for a minute, does using 'lein swank' and
M-x slime-connect work? (in an eshell buffer that is in the project
directory, run 'lein swank', that should start a swank server on port
4005, then M-x slime-connect should connect you and give you a repl).

- Mark

> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

Andrew

unread,
Nov 16, 2011, 8:55:16 PM11/16/11
to clo...@googlegroups.com
The attempt revealed the need to install the slime package. After that, the two commands succeed. However, M-x clojure-jack-in still fails in a fresh emacs session with the same error.

Mark Rathwell

unread,
Nov 16, 2011, 11:28:03 PM11/16/11
to clo...@googlegroups.com
I think there is some path issue in your setup between Cygwin and
Windows that will take some work to diagnose. You might try
installing everything from scratch, or maybe try a Linux vm with
VirtualBox (free) or VMWare. Either way, you can use lein swank and
slime-connect in the meantime.

Andrew

unread,
Nov 17, 2011, 9:50:10 AM11/17/11
to clo...@googlegroups.com
Thanks.... Do I need Cygwin at all for Clojure work on Windows/Emacs/Swank/clojure-mode/lein? Or can I remove Cygwin from my machine?

And are these two functionally equivalent?
  • clojure-jack-in
  • lein swank and slime-connect

Mark Rathwell

unread,
Nov 17, 2011, 10:32:32 AM11/17/11
to clo...@googlegroups.com
> Do I need Cygwin at all for Clojure work on
> Windows/Emacs/Swank/clojure-mode/lein?

I don't think so. If lein.bat is on your path and is working, and if
emacs and clojure-mode are working, that's really all you need. There
are utilities and tools out there that you may want to use at some
point, though, that do assume a unixy environment.

> And are these two functionally equivalent?
> clojure-jack-in
> lein swank and slime-connect

Basically, yes. They both start a swank server, connect emacs to it,
and give you a repl. clojure-jack-in is meant to simplify that
process and hide any complexity.

Phil Hagelberg

unread,
Nov 17, 2011, 3:52:08 PM11/17/11
to clo...@googlegroups.com

If you have installed the right versions of slime and slime-repl
manually then they should be equivalent.

-Phil

Stathis Sideris

unread,
Dec 12, 2012, 7:44:49 AM12/12/12
to clo...@googlegroups.com
I've had this problem before when emacs was trying to start an external executable whose path contained spaces. Are you running Windows by any chance? Is your Java under "Program Files"? Try moving it to a space free path like "C:\development\tools\".

On Wednesday, 12 December 2012 12:20:46 UTC, Myrna van de Burgwal wrote:
I also have a problem when I type in 'M-x slime' in Emacs. It causes the same error (spawning child process: invalid argument).
I assume I installed slime correctly and I rewrote ~/.emacs.
What could ben the problem?
Reply all
Reply to author
Forward
0 new messages