On Sun, Jan 2, 2011 at 4:10 PM, Daniel Klein <danielk@danielk.us> wrote:
There is issue 2610, but it is 'closed'. The closing comment, by marcus.denker, is: "I think this has been fixed in 1.2"
Thanks for the research. Indeed, it is solved in pharo 1.2
I can't tell if it is fixed on 1.2 cos I don't know how to turn this behavior on? What setting is it?
I can reproduce it on 1.1 with these steps:
1) Open the the Transcript window 2) Open a Shout Workspace 3) type a ( or [, (or any of the special characters that automatically display the 'closing' character), then move the cursor with the right or left arrow key
The numbers that show up in the Transcript are the column positions of the characters. It appears to be some debugging code left in.
Excellent. With this help, I just put a breakpoint in ThreadSafeTranscript
#show: and see who was calling it ;) The result was that it was being called from
ECController >> checkNeedlesCharacter: aCharacter | result | oppositeChar ifNil: [ ^ false ]. result := oppositeChar = aCharacter. result ifTrue: [caret = (editor caret - 1) ifTrue: [editor selectAt: editor caret + 1. self invalidateEditorMorph] ifFalse: [editor zapSelectionWith: aCharacter asString. editor selectFrom: editor caret + 1 to: editor caret]]. Transcript crShow: caret; space; show: editor caret. oppositeChar := nil. ^ result This is the completion tool. It is not part of pharo core, but in Pharo1.2 it is fixed becuase it uses newer versions of OCompletion, with seems to have fixed this. If I wanted to find where this bug is myself, where would I start to look?
Can you give me a hint?
First, put a breakpoint in the transcript show: was a good idea. Then, you can serach in all the code, the stringf 'Transcript show:' for example
***
Another question: How can I search the source code in the image for a particular string?
type the string somewhere, for example, 'Transcript show:', right button -> "extended search" -> "method source with it"
Dan
------------------------------ *From:* pharo-users-bounces@lists.gforge.inria.fr [mailto: pharo-users-bounces@lists.gforge.inria.fr] *On Behalf Of *Mariano Martinez Peck *Sent:* Thursday, December 30, 2010 11:27
*To:* A friendly place where any question about pharo is welcome *Subject:* Re: [Pharo-users] Numbers showing up in Transcript
On Thu, Dec 30, 2010 at 5:11 PM, Daniel Klein <danielk@danielk.us> wrote:
I'm getting a bunch of numbers showing up in the Transcript without my doing anything (that I know of). For example:
18 19 19 20 22 29 557 562 570 571 598 599 514 515
What are they? And why are they showing up?
Hi dan. Yes, I saw that also. Definitvly it is a bug. I am sure there is some Transcript show: somewhere in the pharo base code.... I think there is an issue opened with it on the bug tracker. can you check?
It would be nice to found the place where this print was left on :(
Mariano