Status: New
Owner: ---- New issue 4929 by [hidden email]: In workspace type "a := #[1 2]". Deleting last square bracket raises exception. Also type "a := 1 2", then type "#[" before "1 2" - raises exception. http://code.google.com/p/pharo/issues/detail?id=4929 In workspace type "a := #[1 2]". Deleting last square bracket raises exception. Also type "a := 1 2", then type "#[" before "1 2" - raises exception. Stack: 23 October 2011 1:54:12 pm VM: Win32 - IX86 - 5.2 - Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.123] Image: Pharo1.3 [Latest update: #13315] UndefinedObject(Object)>>error: Receiver: nil Arguments and temporary variables: aString: 'Instances of UndefinedObject are not indexable' Receiver's instance variables: nil UndefinedObject(Object)>>errorNotIndexable Receiver: nil Arguments and temporary variables: Receiver's instance variables: nil UndefinedObject(Object)>>size Receiver: nil Arguments and temporary variables: Receiver's instance variables: nil SHParserST80>>rangeType: Receiver: a SHParserST80 Arguments and temporary variables: aSymbol: #integer Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>scanPast: Receiver: a SHParserST80 Arguments and temporary variables: rangeType: #integer Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseByteArray Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseSymbol Receiver: a SHParserST80 Arguments and temporary variables: c: $[ Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseLiteral: Receiver: a SHParserST80 Arguments and temporary variables: inArray: false pos: nil c: nil Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseTerm Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseExpression Receiver: a SHParserST80 Arguments and temporary variables: assignType: nil Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseExpression Receiver: a SHParserST80 Arguments and temporary variables: assignType: #ansiAssignment Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseStatement Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseStatementList Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk [self scanNext. isAMethod ifTrue: [self parseMessagePattern. self parsePragmaSequence]. self parseMethodTemporaries. isAMethod ifTrue: [self parsePragmaSequence]. self parseStatementList. currentToken ifNotNil: [self error]] in SHParserST80>>parse: Receiver: a SHParserST80 Arguments and temporary variables: isAMethod: false Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk BlockClosure>>ensure: Receiver: [self scanNext. isAMethod ifTrue: [self parseMessagePattern. self parsePragmaSequenc...etc... Arguments and temporary variables: aBlock: [errorBlock := nil] complete: nil returnValue: nil Receiver's instance variables: outerContext: SHParserST80>>parse: startpc: 117 numArgs: 0 SHParserST80>>parse: Receiver: a SHParserST80 Arguments and temporary variables: isAMethod: false Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parse Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>rangesIn:classOrMetaClass:workspace:environment: Receiver: a SHParserST80 Arguments and temporary variables: sourceString: 'a := #[1 2' aBehaviour: nil aWorkspace: a Workspace anEnvironmentOrNil: nil Receiver's instance variables: classOrMetaClass: nil 23 October 2011 1:54:12 pm VM: Win32 - IX86 - 5.2 - Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.123] Image: Pharo1.3 [Latest update: #13315] UndefinedObject(Object)>>error: Receiver: nil Arguments and temporary variables: aString: 'Instances of UndefinedObject are not indexable' Receiver's instance variables: nil UndefinedObject(Object)>>errorNotIndexable Receiver: nil Arguments and temporary variables: Receiver's instance variables: nil UndefinedObject(Object)>>size Receiver: nil Arguments and temporary variables: Receiver's instance variables: nil SHParserST80>>rangeType: Receiver: a SHParserST80 Arguments and temporary variables: aSymbol: #integer Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>scanPast: Receiver: a SHParserST80 Arguments and temporary variables: rangeType: #integer Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseByteArray Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseSymbol Receiver: a SHParserST80 Arguments and temporary variables: c: $[ Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseLiteral: Receiver: a SHParserST80 Arguments and temporary variables: inArray: false pos: nil c: nil Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseTerm Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseExpression Receiver: a SHParserST80 Arguments and temporary variables: assignType: nil Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseExpression Receiver: a SHParserST80 Arguments and temporary variables: assignType: #ansiAssignment Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseStatement Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parseStatementList Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk [self scanNext. isAMethod ifTrue: [self parseMessagePattern. self parsePragmaSequence]. self parseMethodTemporaries. isAMethod ifTrue: [self parsePragmaSequence]. self parseStatementList. currentToken ifNotNil: [self error]] in SHParserST80>>parse: Receiver: a SHParserST80 Arguments and temporary variables: isAMethod: false Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk BlockClosure>>ensure: Receiver: [self scanNext. isAMethod ifTrue: [self parseMessagePattern. self parsePragmaSequenc...etc... Arguments and temporary variables: aBlock: [errorBlock := nil] complete: nil returnValue: nil Receiver's instance variables: outerContext: SHParserST80>>parse: startpc: 117 numArgs: 0 SHParserST80>>parse: Receiver: a SHParserST80 Arguments and temporary variables: isAMethod: false Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>parse Receiver: a SHParserST80 Arguments and temporary variables: Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHParserST80>>rangesIn:classOrMetaClass:workspace:environment: Receiver: a SHParserST80 Arguments and temporary variables: sourceString: 'a := #[1 2' aBehaviour: nil aWorkspace: a Workspace anEnvironmentOrNil: nil Receiver's instance variables: classOrMetaClass: nil source: 'a := #[1 2' workspace: a Workspace arguments: a Dictionary() sourcePosition: 11 currentToken: nil currentTokenFirst: Character space temporaries: a Dictionary() instanceVariables: a Set() errorBlock: [^ false] currentTokenSourcePosition: nil blockDepth: 0 bracketDepth: 0 ranges: an OrderedCollection(a SHRange a SHRange a SHRange a SHRange a SHRange ...etc... environment: Smalltalk SHTextStylerST80>>rangesIn:setWorkspace: Receiver: a SHTextStylerST80 Arguments and temporary variables: aText: a Text for 'a := #[1 2' aBoolean: true Receiver's instance variables: sem: a Semaphore(a Process in [sem notNil ifTrue: [sem wait. view ifNo...etc... backgroundProcess: a Process in MorphicUIManager>>openDebuggerOn:context:label:...etc... text: a Text for 'a := #[1 2' monitor: a Monitor view: a PluggableTextMorph(38535168) stylingEnabled: true classOrMetaClass: nil workspace: a Workspace font: a StrikeFont(Bitmap DejaVu Sans 9 14) parser: a SHParserST80 environment: nil pixelHeight: 12.0 SHTextStylerST80>>privateStyle: Receiver: a SHTextStylerST80 Arguments and temporary variables: aText: a Text for 'a := #[1 2' ranges: nil Receiver's instance variables: sem: a Semaphore(a Process in [sem notNil ifTrue: [sem wait. view ifNo...etc... backgroundProcess: a Process in MorphicUIManager>>openDebuggerOn:context:label:...etc... text: a Text for 'a := #[1 2' monitor: a Monitor view: a PluggableTextMorph(38535168) stylingEnabled: true classOrMetaClass: nil workspace: a Workspace font: a StrikeFont(Bitmap DejaVu Sans 9 14) parser: a SHParserST80 environment: nil pixelHeight: 12.0 [self privateStyle: text. sem signal] in [sem := Semaphore new. [sem notNil ifTrue: [sem wait. view ifNotNil: [view stylerStyledInBackground: text]]] forkAt: Processor activePriority. backgroundProcess := [self privateStyle: text. sem signal] forkAt: Processor userBackgroundPriority] in SHTextStylerST80(SHTextStyler)>>styleInBackgroundProcess: Receiver: a SHTextStylerST80 Arguments and temporary variables: Receiver's instance variables: sem: a Semaphore(a Process in [sem notNil ifTrue: [sem wait. view ifNo...etc... backgroundProcess: a Process in MorphicUIManager>>openDebuggerOn:context:label:...etc... text: a Text for 'a := #[1 2' monitor: a Monitor view: a PluggableTextMorph(38535168) stylingEnabled: true classOrMetaClass: nil workspace: a Workspace font: a StrikeFont(Bitmap DejaVu Sans 9 14) parser: a SHParserST80 environment: nil pixelHeight: 12.0 [self value. Processor terminateActive] in BlockClosure>>newProcess Receiver: [self privateStyle: text. sem signal] Arguments and temporary variables: Receiver's instance variables: outerContext: [sem := Semaphore new. [sem notNil ifTrue: [sem wait. view ...etc... startpc: 126 numArgs: 0 --- The full stack --- UndefinedObject(Object)>>error: UndefinedObject(Object)>>errorNotIndexable UndefinedObject(Object)>>size SHParserST80>>rangeType: SHParserST80>>scanPast: SHParserST80>>parseByteArray SHParserST80>>parseSymbol SHParserST80>>parseLiteral: SHParserST80>>parseTerm SHParserST80>>parseExpression SHParserST80>>parseExpression SHParserST80>>parseStatement SHParserST80>>parseStatementList [self scanNext. isAMethod ifTrue: [self parseMessagePattern. self parsePragmaSequence]. self parseMethodTemporaries. isAMethod ifTrue: [self parsePragmaSequence]. self parseStatementList. currentToken ifNotNil: [self error]] in SHParserST80>>parse: BlockClosure>>ensure: SHParserST80>>parse: SHParserST80>>parse SHParserST80>>rangesIn:classOrMetaClass:workspace:environment: SHTextStylerST80>>rangesIn:setWorkspace: SHTextStylerST80>>privateStyle: [self privateStyle: text. sem signal] in [sem := Semaphore new. [sem notNil ifTrue: [sem wait. view ifNotNil: [view stylerStyledInBackground: text]]] forkAt: Processor activePriority. backgroundProcess := [self privateStyle: text. sem signal] forkAt: Processor userBackgroundPriority] in SHTextStylerST80(SHTextStyler)>>styleInBackgroundProcess: [self value. Processor terminateActive] in BlockClosure>>newProcess _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Comment #1 on issue 4929 by [hidden email]: In workspace type "a := #[1 2]". Deleting last square bracket raises exception. Also type "a := 1 2", then type "#[" before "1 2" - raises exception. http://code.google.com/p/pharo/issues/detail?id=4929 Oh, sorry - bad title :( _______________________________________________ Pharo-bugtracker mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker |
Free forum by Nabble | Edit this page |