freenode/#lisp - IRC Chatlog
Search
19:51:53
afidegnum
hello, using elisp, i m trying to fetch the output of my python file and display but i m having a nil output, what am i missing? https://dpaste.de/4Yi0
20:10:20
afidegnum
(insert (shell-command-to-string (format "python3 %s %s" buffer-file-name pyarg))))
20:10:38
afidegnum
/bin/bash: -c: line 0: `python3 nil (/home/isodec/PycharmProjects/pelican/envtest.py mytest)'
20:17:49
pjb
or ##lisp to discuss it in general, as this is not an emacs specific problem, but a mere programming question.
20:26:57
thijso
In ECL I'm getting STACK-OVERFLOW errors. Is this something like a runaway recursive thing or something? It says "Stack can probably be resized", but I've gone from 2000 to over 40000 now, and it keeps telling me this after some rather minor changes in my code
20:27:23
Bike
thijso: runaway recursive function is a common cause of stack overflows, yes. can you get a backtrace?
20:27:37
thijso
Well... minor, but invasive maybe. I put in verbose for logging instead of my own format t stuff
20:29:10
Bike
it's possible to introduce these things in pretty complicated ways. For example, you could have some kind of object, and a function on that object. With the verbose flag on, when that function is called, the object is printed in the log. But the print-object method on that object also calls that function. Voila
20:30:36
thijso
Bike: seems like something like that yeah. I see a ton of #<process "WITH-TIMEOUT thread serving: \"verbose-thread\"." 0x55da3ceb5c80>'s cycling around with no output being produced...
20:30:42
pjb
thijso: read the documentation, there may be a way to get the backtrace programmatically. In CCL, we can use (ccl::backtrace-as-list).
20:33:09
thijso
Oh, wait. Sorry, Shinmera, that's an internal thing from ECL thread support I think. As ECL doesn't do proper with-timeout, it fakes it with a thread. I forgot the details
20:47:12
Shinmera
thijso: You can potentially have multiple controllers running, but I'm not sure of the utility of it and it doesn't happen normally.