Doru, I think the problem is related to the fact that a WideString has been pasted into the document somewhere ... the section with the WideString embedded in it must have a new non-WideString string pasted in to replace the original WideString....
I also don't think that WAKomEncoded will help either ... if I'm not mistaken the WideString is created internally when the UTF8 is decoded ... Dale ----- Original Message ----- | From: "Tudor Girba" <[email protected]> | To: "A friendly place where any question about pharo is welcome" <[email protected]> | Sent: Tuesday, July 12, 2011 5:09:01 AM | Subject: Re: [Pharo-users] [Moose-dev] petitparser tutorial | | Hi Lukas, | | I now switched to WAKom instead of WAKomEncoded, but the problem | still persists. Any ideas? | | Cheers, | Doru | | On 12 Jul 2011, at 13:37, Lukas Renggli wrote: | | > This is a long known problem: | > http://code.google.com/p/pharo/issues/detail?id=2353. For now it | > can | > only be avoided by not using WideString (i.e. by not using an | > encoded | > server adapter). | > | > Lukas | > | > On Tuesday, 12 July 2011, giorgio ferraris | > <[email protected]> wrote: | >> Hi, Tudor, | >> if I use the search facility on the bbok, i get the following: | >> Internal Error | >> Error: subscript is out of bounds: | >> 8218ByteArray(Object)>>errorSubscriptBounds: | >> ByteArray(Object)>>at: | >> WideString(String)>>findSubstring:in:startingAt:matchTable: | >> WideString(String)>>findString:startingAt:caseSensitive: | >> WideString(String)>>includesSubstring:caseSensitive: | >> [] in [] in PRFullTextSearch>>visitStructure: | >> [] in Set(Collection)>>anySatisfy: | >> Set>>do: | >> Set(Collection)>>anySatisfy: | >> [] in PRFullTextSearch>>visitStructure: | >> SortedCollection(OrderedCollection)>>do: | >> MAPriorityContainer(MAContainer)>>do: | >> PRFullTextSearch>>visitStructure: | >> PRFullTextSearch(PRVisitor)>>visitCase: | >> PRFullTextSearch(PRVisitor)>>visitPublication: | >> PRFullTextSearch(PRVisitor)>>visitPortion: | >> BOPortion>>accept: | >> BOPortion(Object)>>acceptDecorated: | >> [] in BOPortion(PRDecorated)>>acceptDecorated: | >> BOPortion(PRDecorated)>>decorationsDo:ownerDo: | >> | >> thanks for the document | >> | >> giorgio ferraris | >> | >> On Mon, Jul 11, 2011 at 2:18 AM, Tudor Girba | >> <[email protected]> wrote: | >> | >> Hi, | >> | >> I put together a tutorial for PetitParser in The Moose Book: | >> http://www.themoosebook.org/book/internals/petit-parser/mse | >> | >> The tutorial is meant to work with a Moose image and it is based | >> on the same scenario as I used at the Deep into Smalltalk School: | >> http://www.slideshare.net/girba/petitparser-at-the-deep-into-smalltalk-school-2011 | >> http://ci.moosetechnology.org/job/moose-latest-dev/lastSuccessfulBuild/artifact/moose/*zip*/moose.zip | >> | >> | >> Feedback is always appreciated (including the negative one :)). | >> You can either reply by mail, or leave a comment online. | >> | >> Cheers, | >> Doru | >> | >> | >> -- | >> www.tudorgirba.com | >> | >> "Presenting is storytelling." | >> | >> | >> | >> | >> | > | > -- | > Lukas Renggli | > www.lukas-renggli.ch | > | | -- | www.tudorgirba.com | | "What is more important: To be happy, or to make happy?" | | |
