Hi all...
I'm getting the following error when attempting to invoke markdown...
MARKDOWN> (markdown " ### Title Some text
* a list * with sublists * and so on * and so on
More text" :stream nil)
The function STREAM is undefined. [Condition of type UNDEFINED-FUNCTION]
Restarts: 0: [ABORT] Return to SLIME's top level. 1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" {100246E311}>)
Backtrace: 0: ("bogus stack frame") 1: ((SB-PCL::FAST-METHOD ITERATE-ELEMENTS (LIST T)) #<unavailable argument> #<unavailable argument> :HTML :HTML) 2: (MARKDOWN " ### Title Some text
* a list * with sublists * and so on * and so on ..) 3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (MARKDOWN " ### Title Some text
* a list * with sublists * and so on * and so on ..))
I'm using the latest cl-containers, cl-markdown, etc... I'm having a hard time debugging the problem due to my lack of experience running the slime debugger... Any help would be much appreciated.
Brandon
Hi Brandon,
I'll try to recreate the problem you've found. What Lisp (and on what platform) are you using?
thanks,
On Oct 29, 2007, at 6:23 PM, Brandon Edens wrote:
Hi all...
I'm getting the following error when attempting to invoke markdown...
MARKDOWN> (markdown " ### Title Some text
- a list
- with sublists
- and so on
- and so on
More text" :stream nil)
The function STREAM is undefined. [Condition of type UNDEFINED-FUNCTION]
Restarts: 0: [ABORT] Return to SLIME's top level. 1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl- thread" {100246E311}>)
Backtrace: 0: ("bogus stack frame") 1: ((SB-PCL::FAST-METHOD ITERATE-ELEMENTS (LIST T)) #<unavailable argument> #<unavailable argument> :HTML :HTML) 2: (MARKDOWN " ### Title Some text
* a list * with sublists * and so on * and so on ..)
3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (MARKDOWN " ### Title Some text
* a list * with sublists * and so on * and so on ..))
I'm using the latest cl-containers, cl-markdown, etc... I'm having a hard time debugging the problem due to my lack of experience running the slime debugger... Any help would be much appreciated.
Brandon
-- Brandon Edens brandon@cs.uri.edu http://www.brandonedens.org key 0x42248B92 _______________________________________________ cl-markdown-devel mailing list cl-markdown-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cl-markdown-devel
-- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
On Tue, Oct 30, 2007 at 05:10:11PM -0400, Gary King wrote:
Hi Brandon,
Hi Gary. Thanks for getting back to me.
I'll try to recreate the problem you've found. What Lisp (and on what platform) are you using?
Ahh I'm using SBCL 1.0.11 on amd64... I'm a Gentoo user and this sbcl came out of portage... If you think its an SBCL specific problem then I can try various versions and/or the git-pulled version...
I have the most current versions of cl-containers, moptilities, and cl-markdown.
thanks,
On Oct 29, 2007, at 6:23 PM, Brandon Edens wrote:
Hi all...
I'm getting the following error when attempting to invoke markdown...
MARKDOWN> (markdown " ### Title Some text
- a list
- with sublists
- and so on
- and so on
More text" :stream nil)
The function STREAM is undefined. [Condition of type UNDEFINED-FUNCTION]
Restarts: 0: [ABORT] Return to SLIME's top level. 1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" {100246E311}>)
Backtrace: 0: ("bogus stack frame") 1: ((SB-PCL::FAST-METHOD ITERATE-ELEMENTS (LIST T)) #<unavailable argument> #<unavailable argument> :HTML :HTML) 2: (MARKDOWN " ### Title Some text
* a list * with sublists * and so on * and so on ..)
3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (MARKDOWN " ### Title Some text
* a list * with sublists * and so on * and so on ..))
I'm using the latest cl-containers, cl-markdown, etc... I'm having a hard time debugging the problem due to my lack of experience running the slime debugger... Any help would be much appreciated.
Brandon
-- Brandon Edens brandon@cs.uri.edu http://www.brandonedens.org key 0x42248B92 _______________________________________________ cl-markdown-devel mailing list cl-markdown-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cl-markdown-devel
-- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
Hi Brandon,
The good news is that I have NOT been able to recreate the problem you're seeing. Of course, that's also the bad news! Given the error, my guess is that something has gone wrong in the file dependencies (i.e., I've missed one) and when you build files get compiled in a different order. To be more clear, my guess is that a form like this (from utilities.lisp)
(defmethod render-to-stream (document style stream-specifier) (with-stream-from-specifier (stream stream-specifier :output :if-exists :supersede) (let ((*current-document* document) (*current-format* style) (*output-stream* stream)) (setf (level document) 0 (markup document) nil) (render document style stream))))
is being compiled before the with-stream-from-specifier macro is defined. Lisp says, "OK, with-stream-from-specifier and stream must be functions. I'll wait and get their definitions later." But when later comes and Markdown calls render-to-stream, Lisp finds that there is no function associated with stream and complains.
Here are some things to try in no particular order.
1. Do you have success if specify a different stream. For example, t or *standard-output* or a pathname (if my guess is right, this won't help).
2. Does trying (asdf:oos 'asdf:load-op 'cl-markdown :force t) help?
3. Does deleting all the fasls and recompiling help?
If you could try these steps and send the complete output, that would help. I'd suggest doing something like
(dribble "cl-markdown-problem.txt") (asdf:oos 'asdf:load-op 'cl-markdown :force t) (dribble)
and then mailing the file (my apologies if I'm being too explicit <smile>).
thanks,
On Oct 29, 2007, at 6:23 PM, Brandon Edens wrote:
(markdown " ### Title Some text
- a list
- with sublists
- and so on
- and so on
More text" :stream nil)
-- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
On Wed, Oct 31, 2007 at 10:55:08AM -0400, Gary King wrote:
Hi Brandon,
The good news is that I have NOT been able to recreate the problem you're seeing. Of course, that's also the bad news! Given the error, my guess is that something has gone wrong in the file dependencies (i.e., I've missed one) and when you build files get compiled in a different order. To be more clear, my guess is that a form like this (from utilities.lisp)
(defmethod render-to-stream (document style stream-specifier) (with-stream-from-specifier (stream stream-specifier :output :if-exists :supersede) (let ((*current-document* document) (*current-format* style) (*output-stream* stream)) (setf (level document) 0 (markup document) nil) (render document style stream))))
is being compiled before the with-stream-from-specifier macro is defined. Lisp says, "OK, with-stream-from-specifier and stream must be functions. I'll wait and get their definitions later." But when later comes and Markdown calls render-to-stream, Lisp finds that there is no function associated with stream and complains.
I was hoping I'd be able to track down that file dependency problem so that others would not be snagged by it.
Here are some things to try in no particular order.
- Do you have success if specify a different stream. For example, t or
*standard-output* or a pathname (if my guess is right, this won't help).
- Does trying (asdf:oos 'asdf:load-op 'cl-markdown :force t) help?
It did... I also got some condition errors when I ran it related to cl-markdown and closer-mop. It was your typical, retry/accept compile. I chose accept.
Ran (cl-markdown:markdown "asdf") which worked.
Shutdown my running lisp image.
cd ~lisp/site/ find . -name "*.fasl" -print0 | xargs -0 rm (asdf:oos 'asdf:load-op :cl-markdown)
(cl-markdown:markdown "asdf") worked again...
- Does deleting all the fasls and recompiling help?
Yep...
So what's the: (asdf:oos 'asdf:load-op 'cl-markdown :force t) do? I tried to find information about it in the manual. Had to drop into reading the asdf.lisp file but still don't understand the behavior difference.
So was it in fact a file dependency problem or possibly something else? At this point I'm having a hard time recreating the original conditions... :(
Thanks for all your help.
Brandon
cl-markdown-devel@common-lisp.net