quicklisp-client icon indicating copy to clipboard operation
quicklisp-client copied to clipboard

ql:add-to-init-file fails silently on CLisp/Ubuntu10.04

Open sharps-zz opened this issue 13 years ago • 4 comments

ql:add-to-init-file fails with CLisp 2.48, built from source, on Ubuntu10.04. I call it, and the file is unchanged afterwards. I thought it was just that you weren't calling finish-output on the stream (I've had that issue with CLisp before), but I tried fixing it and couldn't get it to work.

sharps-zz avatar Oct 13 '10 09:10 sharps-zz

Could you please paste in a transcript of what happens after you call (ql:add-to-init-file)?

quicklisp avatar Oct 13 '10 13:10 quicklisp

Sure:

[4]> (ql:add-to-init-file)

I will append the following lines to #P"/home/main/.clisprc.lisp":

  ;;; The following lines added by ql:add-to-init-file:
  #-quicklisp
  (let ((quicklisp-init (merge-pathnames "quicklisp\\setup.lisp" (user-homedir-pathname))))
    (when (probe-file quicklisp-init)
      (load quicklisp-init)))

Press Enter to continue.

#P"/home/main/.clisprc.lisp"
[5]> 

And then I restart clisp, and quicklisp isn't loaded.

... but that's probably not very helpful. I found the problem - my clisp init file is ".clisprc", not ".clisprc.lisp", despite what the clisp documentation says. So quicklisp was writing to the wrong file, and this file wasn't loaded by clisp. I passed #P".clisprc" to ql:add-to-init-file and it worked fine.

main-zz avatar Oct 27 '10 04:10 main-zz

Reproduced on Windows XP, CLisp 2.48. My init file is "C:\Documents and Settings\Owner\.clisprc", but quicklisp writes to "C:\Documents and Settings\Owner\Application Data\.clisprc.lisp"., which isn't loaded.

main-zz avatar Oct 29 '10 07:10 main-zz

Confirmed with clisp 2.49 on ubuntu 13.10

zabbal avatar Apr 17 '14 15:04 zabbal