eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
rtoy has joined #commonlisp
pve has quit [Quit: leaving]
occ has joined #commonlisp
theesm has quit [Ping timeout: 246 seconds]
theesm has joined #commonlisp
random-nick has quit [Ping timeout: 260 seconds]
perrierjouet has quit [Ping timeout: 248 seconds]
n0den1te has joined #commonlisp
euandreh has joined #commonlisp
n0den1te has quit [Quit: Leaving]
waleee has quit [Quit: uppdattar datta]
waleee has joined #commonlisp
waleee has quit [Ping timeout: 248 seconds]
lucasta has quit [Remote host closed the connection]
lucasta has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
akoana has quit [Quit: leaving]
lucas_ta has joined #commonlisp
lucasta has quit [Ping timeout: 265 seconds]
dipper_ has quit [Remote host closed the connection]
<ahc>
so, sbcl under Emacs and Slime, I get this error "Couldn't execute "/bin/csh": No such file or directory". Sure enough, echo $SHELL -> /bin/bash. How would I fix this? Backtrace even says SB-EXT:RUN-PROGRAM "/bin/csh". Which way forward? i) set sbcl to use bash in .sbcl ii) install csh iii) alias csh to use bash ?
<ahc>
I've looked through sbcl manual. Can find any reference.
<ahc>
Can't find. Googled.
<beach>
I have never seen this problem. When do you get this error?
<ahc>
When I ran some lisp code, which calls an external program.
<ahc>
evaluated .. I guess
<beach>
And did you write the code that calls the external program?
<ahc>
No. In the Backtrace, I can see SB-IMPL::PROGRAM = "/bin/csh" so I'm wondering where that was set.
<beach>
I think you need to contact the person who wrote that code.
<bjorkintosh>
ahc, for giggles, does it work when your shell is csh?
<bjorkintosh>
merely wondering.
<ahc>
A brute force quick fix, installing csh.
<ahc>
In the legacy code base, I notice a sbcl.lisp file in its /src folder. csh is set there several times. So I'm getting close.
Noisytoot has quit [Ping timeout: 255 seconds]
Noisytoot has joined #commonlisp
rgherdt has joined #commonlisp
ryanbw has quit [Ping timeout: 250 seconds]
<ahc>
Well that was a quick fix. Works perfectly. Thank you.
<bjorkintosh>
question is, why is the default set to csh at all?
<beach>
Are you sure it was the default?
<bjorkintosh>
not at all, come to think of it.
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
kenran has joined #commonlisp
admich has joined #commonlisp
karlosz has joined #commonlisp
|3b| has quit [Remote host closed the connection]
|3b|` has joined #commonlisp
Noisytoot is now known as Guest808
Guest808 has quit [Killed (cadmium.libera.chat (Nickname regained by services))]
Noisytoot has joined #commonlisp
Noisytoot has quit [Excess Flood]
Noisytoot has joined #commonlisp
karlosz has quit [Ping timeout: 246 seconds]
shka has joined #commonlisp
ryanbw has joined #commonlisp
Noisytoot has quit [Ping timeout: 268 seconds]
lucas_ta has quit [Remote host closed the connection]
Noisytoot has joined #commonlisp
xristos has quit [Ping timeout: 248 seconds]
ryanbw1 has joined #commonlisp
ryanbw has quit [Quit: I'll be back.]
karlosz has joined #commonlisp
pve has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
karlosz has quit [Quit: karlosz]
|3b|` is now known as |3b|
karlosz has joined #commonlisp
gridbugsmasher42 has quit [Quit: You have been kicked for being idle]
karlosz has quit [Read error: Connection reset by peer]
Equill has joined #commonlisp
occ has quit [Ping timeout: 248 seconds]
admich has quit [Remote host closed the connection]
rgherdt_ has joined #commonlisp
rgherdt has quit [Read error: Connection reset by peer]
jeffrey has joined #commonlisp
aartaka has joined #commonlisp
ahc has quit [Quit: Client closed]
McParen has joined #commonlisp
rgherdt_ is now known as rgherdt
cage has joined #commonlisp
tevo has quit [Ping timeout: 265 seconds]
tevo has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
Inline has joined #commonlisp
random-nick has joined #commonlisp
tevo has quit [Ping timeout: 246 seconds]
MajorBiscuit has joined #commonlisp
AmyMalik is now known as Reinhilde
solanav has joined #commonlisp
<solanav>
Hi! I'm new to Common Lisp and have been trying sly after using slime for a couple weeks and sly's process keeps getting killed when I get an exception in the REPL. Is this intended? Am I missing some kind of config so it restarts or controls the exceptions? Thanks!
<solanav>
For example if I call a function wrong, I get "Process sly-pty killed" and "Server side close"
<jackdaniel>
I can only say that this is not something expected, probably your lisp implementation crashes
<jackdaniel>
what is the common lisp implementation that you use?
nij- has joined #commonlisp
<nij->
(with-output-to-string (s) (uiop:run-program "ehco" :output s :error-output s)) reports error without much reason except telling me code is 127. How do I make it return more info to me?
<nij->
(Yest, I know ehco is spelt wrong.)
azimut has joined #commonlisp
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 260 seconds]
<solanav>
I use sbcl on my mac, so should be ok right? Pretty standar
<solanav>
SBCL 2.3.3
<jackdaniel>
yes, that's pretty standard
<jackdaniel>
I don't have any experience with mac but I know that some people use this system
rgherdt_ is now known as rgherdt
occ has joined #commonlisp
shka has quit [Read error: Connection reset by peer]
shka has joined #commonlisp
<Bike>
nij-: pass :ignore-error-status t if you want the error message to be actually put in the string
cage has quit [Remote host closed the connection]
szkl has quit [Quit: Connection closed for inactivity]
perrierjouet has joined #commonlisp
kevingal has joined #commonlisp
kevingal_ has joined #commonlisp
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 265 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
dtman34 has joined #commonlisp
<nij->
Bike, thank you!
mingus has quit [Ping timeout: 276 seconds]
tyson2 has joined #commonlisp
<Bike>
nij-: or you can use the restart, of course
dilated_dinosaur has quit [Ping timeout: 255 seconds]
dilated_dinosaur has joined #commonlisp
robin has quit [Read error: Connection reset by peer]
chrcav has quit [Ping timeout: 246 seconds]
rtoy has left #commonlisp [#commonlisp]
chrcav has joined #commonlisp
robin has joined #commonlisp
robin has quit [Remote host closed the connection]
solanav_ has quit [Remote host closed the connection]
kenran has quit [Remote host closed the connection]
aartaka has quit [Ping timeout: 265 seconds]
solanav has joined #commonlisp
solanav has quit [Client Quit]
alhazraed has joined #commonlisp
lucasta has joined #commonlisp
morganw has joined #commonlisp
cage has joined #commonlisp
lucasta has quit [Remote host closed the connection]
notzmv has quit [Ping timeout: 265 seconds]
pranavats has left #commonlisp [Error from remote client]
pranavats has joined #commonlisp
<McParen>
does somebody know of a library for parsing command line input that is similar to common lisp? i know of unix-opts, but thats for unix-style syntax.
<McParen>
i'd like something that resembles lisp lambda lists, but with small differences.
<jackdaniel>
if you feel adventurous check out clim command argument list parsing
<McParen>
can you give me a hint where to look?
kenran has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
<ixelp>
CLIM 2 Specification — 27.6 The Command Processor
<jackdaniel>
as I've said - if you feel adventurous. there are many concepts like command tables and presentation types that may feel foreign
cowboy8625 has joined #commonlisp
<McParen>
thanks, I'd like to take a look if it somehow can serve my purpose or help me improve my own
<jackdaniel>
and from more down to earth solutions (i.e from the unixland), I've found net.diderverna.clon to be an excellent library for defining the cli interface and parsing arguments
<McParen>
ok, will take a look at that too, thanks.
<jackdaniel>
sure
<pjb>
McParen: you can really use any parser you want on (uiop:command-line-arguments)
<pjb>
McParen: so for example: (destructuring-bind (file &key pin output verbose) (intern-keywords '("/tmp/foo" ":pin" "4263" ":verbose" "t")) …)
<pjb>
McParen: but I prefer natural language command line arguments. You could fork out the NLP parsing to GPT…
<pjb>
eg.: my-package-manager install a common-lisp implementation # and let gpt convert "install a common-lisp implementation" into a more restricted set of commands with a specific prompt.
<McParen>
pjb: thanks. what I'm trying to do is feeding command line arguments to lisp handler functions, so I need to map the arguments to function lambda lists.
<McParen>
I basically want the string "a b :c 1" to be parsed as ("a" "b" :c 1) for a lambda list (a b & key c), etc.
<pjb>
yes. You need to process the argument list to convert strings into keywords or numbers, or keep them as strings Perhaps you'd want to parse also '#C(1 2)' and other lisp things? A simple read-from-string is not enough, since some arguments may not have a lisp syntax (eg. paths).
<pjb>
McParen: note command line arguments are obtained as lists of strings, not a whole string.
cowboy8625 has quit [Ping timeout: 256 seconds]
<pjb>
You start with ("a" "b" ":c" "1") and want ("a" "b" :C 1)
cowboy8625 has joined #commonlisp
<McParen>
yes, doing the basics by hand isnt very hard, but covering all the lisp quirks like rest, optional, key, default arguments, etc, quickly becomes involved.
cowboy8625 has quit [Ping timeout: 252 seconds]
cowboy8625 has joined #commonlisp
<pjb>
McParen: you don't have to process that yourself. eg. if you want to handle errors, you may use (handler-case (destructuring-bind …)).
selfish has joined #commonlisp
<McParen>
pjb: i think i have to process that myself, because I have several differences from the way destructurung bind processes its arguments.
<McParen>
for example i need the &rest argments to be saved in one string, instead of a list, and preserve any whitespace between the words.
<pjb>
In that case, yes.
<pjb>
You may copy and modify the argument processing code in some implementation. Perhaps sicl ?
<McParen>
the use is for parsing an irc command line, the rest is basically the text the user types, so it has to preserve the whitespace.
<pjb>
I have one such example in botihn /msg botihn sources