Re: Hiesenbug with "unicode spew"
tty <[email protected]> Wed, 19 Feb 2020 16:47:36 -0600 (CST)
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
Hi All, First, my apologies for the multiple posts. When I did not see my message appear, I assumed I had messed up and reposted. I believe that the "Unicode Spew" is a result of the parse taking longer than the Seaside Render loop and/or errors in the parse not being handled. If you go here: http://menmachinesmaterials.com/WikitextParser click the Hamburger Icon->Database->Blade Runner, it creates the unicode spew every time. If I run the same parse within the image as a workspace Doit, it works just fine. Here is the bulky thing, it is a sub-message of renderContentOn:html *renderParsedOn: html | wikiGrammar wikiParser input actor s| actor := PEGWikiMediaGeneratorTables new. actor transcripton ifTrue:[ Transcript clear]. wikicode isNil ifTrue:[input := '== Welcome To WikitextParserBrowser =='] ifFalse:[input := wikicode]. wikiGrammar := PEGParser grammarWikiMediaTables reading positioning. wikiParser := PEGParser parserPEG parse: 'Grammar' stream: wikiGrammar actor: PEGParserParser new. [[output := wikiParser parse: 'Page' stream: input actor: actor. ] on: Error do:[:ex | output := ' Error parsing. see Wikicode tab for source <code>', ex description, '</code>' ]] ensure:[ s := ((output asString copyReplaceTokens: '<body>' with:'' ) copyReplaceTokens:'</body>' with:'') . s := s copyReplaceAll:'>' with:'>' asTokens:false. s := s copyReplaceAll:'<' with:'<' asTokens:false. html break;break. html html: s. ].* I think the "Render Loop" just cannot handle that call when things go south. Thank you all for your patience and advise. -- Sent from: http://forum.world.st/Seaside-General-f86180.html _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside