Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000657 [tweak] Obscure Bugs minor always 12-13-04 21:59 12-15-04 10:18
Reporter tedka View Status public  
Assigned To
Priority normal Resolution fixed  
Status resolved  
Summary 0000657: (editor visible: false) in clickable text crashes Tweak
Description When I make attributes in text that have an action, and the action is (editor visible: false), Tweak locks up completely. It it totally unresponsive to user events. The surrounding Squeak still runs.
Execute this in a Tweak window, and then click on the text that appears.

| ed list newAttribute |
ed _ CTextEditor new open.
ed allowEditing: false.
ed startScript:[
            list _ (ed editor attributesAt:
                ed costume scrollTarget cursorPoint - (0@3)).
                    newAttribute _ list detect: [:attr | attr class == PluggableTextAttribute]
                                        ifNone: [nil].
                    newAttribute ifNotNil: [newAttribute actOnClickFor: self].
                ] when: {ed. #mouseDown}.

ed text: (('hide me' asText) addAttribute:
        (PluggableTextAttribute new evalBlock: [ed visible: false])).

Creating the TextEditor inside the doIt is not the problem. It still crashes if the TextEditor was already there. Executing (editor visible: false) in an inspector works fine! Text Attributes work just fine using the same code as above, when the action has nothing to do with the text editor itself. Creating the eval block in a separate method does not fix it.

I could not have created a trickier puzzle myself! --Ted.

Additional Information
Attached Files

- Relationships

- Notes
(0000928 - 190 - 200 - 200 - 200 - 200 - 200)
12-15-04 10:18

I have created a new category "obscure bugs" for the most puzzling and tricky bugs - at some point we will want to look at the most obscure bugs we've seen and by God! this one qualifies ;-)

- Issue History
Date Modified Username Field Change
12-13-04 21:59 tedka New Issue
12-15-04 10:17 andreas Category  => Obscure Bugs
12-15-04 10:18 andreas Status new => resolved
12-15-04 10:18 andreas Resolution open => fixed
12-15-04 10:18 andreas Assigned To  => andreas
12-15-04 10:18 andreas Note Added: 0000928
12-15-04 10:18 andreas Assigned To andreas =>

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
37 total queries executed.
31 unique queries executed.
Powered by Mantis Bugtracker