[Pharo-project] OB variable references browser bug [fix]
There is a DNU in OB, when you do following: - go to some class - click its 'variables' , to open variable references browser - select any variable and go to one of the methods which using it - modify this method to no longer reference that variable and accept it. And at that moment you got DNU. The possible fix is attached. But note, that this method actually invoked as a result of handing another error. I don't know, maybe it would be better to prevent an original error from occur, rather than putting a workaround like this. I'm not an expert in OB, so i just fixed so it kinda works, at least its not triggers DNU anymore. To see the original error, simply put 'self halt' in the method i attached, and then look at the stack in debugger. -- Best regards, Igor Stasenko AKA sig.
OH, forgot to mention. This in Pharo 1.3 image. On 9 May 2011 13:11, Igor Stasenko <siguctua@gmail.com> wrote:
There is a DNU in OB, when you do following:
- go to some class - click its 'variables' , to open variable references browser - select any variable and go to one of the methods which using it - modify this method to no longer reference that variable and accept it.
And at that moment you got DNU.
The possible fix is attached. But note, that this method actually invoked as a result of handing another error. I don't know, maybe it would be better to prevent an original error from occur, rather than putting a workaround like this. I'm not an expert in OB, so i just fixed so it kinda works, at least its not triggers DNU anymore.
To see the original error, simply put 'self halt' in the method i attached, and then look at the stack in debugger.
-- Best regards, Igor Stasenko AKA sig.
-- Best regards, Igor Stasenko AKA sig.
Integrated, thanks. Name: OB-Standard-lr.538 Author: lr Time: 9 May 2011, 6:25:10 pm UUID: 14775997-467e-4e24-9543-81353b873183 Ancestors: OB-Standard-lr.537 On 9 May 2011 14:24, Igor Stasenko <siguctua@gmail.com> wrote:
OH, forgot to mention. This in Pharo 1.3 image.
On 9 May 2011 13:11, Igor Stasenko <siguctua@gmail.com> wrote:
There is a DNU in OB, when you do following:
- go to some class - click its 'variables' , to open variable references browser - select any variable and go to one of the methods which using it - modify this method to no longer reference that variable and accept it.
And at that moment you got DNU.
The possible fix is attached. But note, that this method actually invoked as a result of handing another error. I don't know, maybe it would be better to prevent an original error from occur, rather than putting a workaround like this. I'm not an expert in OB, so i just fixed so it kinda works, at least its not triggers DNU anymore.
To see the original error, simply put 'self halt' in the method i attached, and then look at the stack in debugger.
-- Best regards, Igor Stasenko AKA sig.
-- Best regards, Igor Stasenko AKA sig.
-- Lukas Renggli www.lukas-renggli.ch
participants (2)
-
Igor Stasenko -
Lukas Renggli