Issue 3502 in pharo: DNU while parsing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3502 in pharo: DNU while parsing

pharo
Status: Accepted
Owner: [hidden email]

New issue 3502 by [hidden email]: DNU while parsing
http://code.google.com/p/pharo/issues/detail?id=3502

($A to: $Z) do: [:each |
        Transcript show: '|*';
                show: each asString;
                show: '>Index: ';
                show: each asString;
                show: '*';
]

gives a cascade error in squeak and a DNU in recent Pharo:

TextMorphForEditView(Object)>>doesNotUnderstand: #notify:at:in:
        Receiver: a TextMorphForEditView(284950528)
        Arguments and temporary variables:
                aMessage: notify: 'Cascade expected ->' at: 131 in: a  
ReadWriteStream '($A to: ...etc...
                exception: MessageNotUnderstood: TextMorphForEditView>>notify:at:in:
                resumeValue: nil
        Receiver's instance variables:
                bounds: 0@0 corner: 432@114
                owner: a TransformMorph(182190080)
                submorphs: #()
                fullBounds: 0@0 corner: 432@114
                color: Color black
                extension: a MorphExtension (680787968) [other:  (blinkStart ->  
14517886) (myDe...etc...
                borderWidth: 0
                borderColor: Color black
                textStyle: a TextStyle Bitmap DejaVu Sans 9
                text: a Text for '($A to: $Z) do: [:each |
        Transcript show: ''|*'';
                show: ea...etc...
                wrapFlag: true
                paragraph: a MultiNewParagraph
                editor: a SmalltalkEditor
                container: nil
                predecessor: nil
                successor: nil
                backgroundColor: nil
                margins: nil
                editView: a PluggableTextMorph(123469824)
                acceptOnCR: false

Parser>>notify:at:
        Receiver: a Parser
        Arguments and temporary variables:
                string: 'Cascade expected'
                location: 131
        Receiver's instance variables:
                source: a ReadWriteStream '($A to: $Z) do: [:each |
        Transcript show: ''|*'';
        ...etc...
                mark: 130
                hereChar: Character arrowUp
                aheadChar: Character arrowUp
                token: #''
                tokenType: #doIt
                currentComment: nil
                buffer: a WriteStream '*'
                typeTable: #(#xBinary #xBinary #xBinary #xBinary #xBinary #xBinary  
#xBinary #xB...etc...
                here: #']'
                hereType: #rightBracket
                hereMark: 131
                hereEnd: 130
                prevMark: 127
                prevEnd: 127
                encoder: {an EncoderForV3PlusClosures}
                requestor: a TextMorphForEditView(284950528)
                parseNode: {Transcript}
                failBlock: [^ failBlock value]
                requestorOffset: 0
                tempsMark: 1
                doitFlag: true
                properties: an AdditionalMethodState
                category: nil

Parser>>expected:
        Receiver: a Parser
        Arguments and temporary variables:
                aString: 'Cascade'
        Receiver's instance variables:
                source: a ReadWriteStream '($A to: $Z) do: [:each |
        Transcript show: ''|*'';
        ...etc...
                mark: 130
                hereChar: Character arrowUp
                aheadChar: Character arrowUp
                token: #''
                tokenType: #doIt
                currentComment: nil
                buffer: a WriteStream '*'
                typeTable: #(#xBinary #xBinary #xBinary #xBinary #xBinary #xBinary  
#xBinary #xB...etc...
                here: #']'
                hereType: #rightBracket
                hereMark: 131
                hereEnd: 130
                prevMark: 127
                prevEnd: 127
                encoder: {an EncoderForV3PlusClosures}
                requestor: a TextMorphForEditView(284950528)
                parseNode: {Transcript}
                failBlock: [^ failBlock value]
                requestorOffset: 0
                tempsMark: 1
                doitFlag: true
                properties: an AdditionalMethodState
                category: nil



Reply | Threaded
Open this post in threaded view
|

Re: Issue 3502 in pharo: DNU while parsing

pharo
Updates:
        Cc: stephane.ducasse
        Labels: Milestone-1.2

Comment #1 on issue 3502 by [hidden email]: DNU while parsing
http://code.google.com/p/pharo/issues/detail?id=3502

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3502 in pharo: DNU while parsing

pharo
Updates:
        Status: Fixed

Comment #2 on issue 3502 by aplantec: DNU while parsing
http://code.google.com/p/pharo/issues/detail?id=3502

since the requestor passed to a parser is the textMorph and no more the  
editor. The error protocol has to be fully implemented in textMorph.  
Normally, only #notify:at:in: is missing.

SLICE-Issue-3502-DNU-while-parsing in InBox


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3502 in pharo: DNU while parsing

pharo

Comment #3 on issue 3502 by stephane.ducasse: DNU while parsing
http://code.google.com/p/pharo/issues/detail?id=3502

Thanks!


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3502 in pharo: DNU while parsing

pharo
Updates:
        Status: Closed

Comment #4 on issue 3502 by stephane.ducasse: DNU while parsing
http://code.google.com/p/pharo/issues/detail?id=3502

in 12291