From gwking at metabang.com Tue Oct 23 23:28:10 2007 From: gwking at metabang.com (Gary King) Date: Tue, 23 Oct 2007 19:28:10 -0400 Subject: [cl-markdown-devel] Re: compile error in cl-markdown/Lispworks In-Reply-To: <0A358C75-FE12-4556-AFE7-579920145DAF@gjdv.at> References: <0A358C75-FE12-4556-AFE7-579920145DAF@gjdv.at> Message-ID: <3BB9273F-CA9C-46B2-AB3A-FC853D6C5BC9@metabang.com> (cc'd to list) Hi Juergen, Thanks for pointing this out. I just released 0.9.0 today which includes this fix. On Oct 18, 2007, at 2:22 PM, Juergen Gmeiner wrote: > Hi, > > there is a compile time error in dev/docs.lisp as installed via > asdf-install today. > > The method find-documentation references "mop:generic-function- > methods" ... this package does not exist that way on lispworks. > i changed it to "mopu:generic-function-methods" and it seems to work. > > regards, > Juergen > -- > Juergen Gmeiner +43-676-4163598 > > > > -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From brandon at cs.uri.edu Mon Oct 29 22:23:18 2007 From: brandon at cs.uri.edu (Brandon Edens) Date: Mon, 29 Oct 2007 18:23:18 -0400 Subject: [cl-markdown-devel] The function STREAM is undefined? Message-ID: <20071029222318.GY29187@bruno> 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 (#) Backtrace: 0: ("bogus stack frame") 1: ((SB-PCL::FAST-METHOD ITERATE-ELEMENTS (LIST T)) # # :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 at cs.uri.edu http://www.brandonedens.org key 0x42248B92 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From gwking at metabang.com Tue Oct 30 21:10:11 2007 From: gwking at metabang.com (Gary King) Date: Tue, 30 Oct 2007 17:10:11 -0400 Subject: [cl-markdown-devel] The function STREAM is undefined? In-Reply-To: <20071029222318.GY29187@bruno> References: <20071029222318.GY29187@bruno> Message-ID: 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" {100246E311}>) > > Backtrace: > 0: ("bogus stack frame") > 1: ((SB-PCL::FAST-METHOD ITERATE-ELEMENTS (LIST T)) > # > # > :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 at cs.uri.edu > http://www.brandonedens.org > key 0x42248B92 > _______________________________________________ > cl-markdown-devel mailing list > cl-markdown-devel at 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 From brandon at cs.uri.edu Tue Oct 30 21:55:30 2007 From: brandon at cs.uri.edu (Brandon Edens) Date: Tue, 30 Oct 2007 17:55:30 -0400 Subject: [cl-markdown-devel] The function STREAM is undefined? In-Reply-To: References: <20071029222318.GY29187@bruno> Message-ID: <20071030215530.GI3545@bruno> 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 (#> {100246E311}>) >> >> Backtrace: >> 0: ("bogus stack frame") >> 1: ((SB-PCL::FAST-METHOD ITERATE-ELEMENTS (LIST T)) >> # >> # >> :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 at cs.uri.edu >> http://www.brandonedens.org >> key 0x42248B92 >> _______________________________________________ >> cl-markdown-devel mailing list >> cl-markdown-devel at 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 > > > > -- Brandon Edens brandon at cs.uri.edu http://www.brandonedens.org key 0x42248B92 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From gwking at metabang.com Wed Oct 31 14:55:08 2007 From: gwking at metabang.com (Gary King) Date: Wed, 31 Oct 2007 10:55:08 -0400 Subject: [cl-markdown-devel] The function STREAM is undefined? In-Reply-To: <20071029222318.GY29187@bruno> References: <20071029222318.GY29187@bruno> Message-ID: 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 ). 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