Ben and Ernest -
Yes, a typo
-- I have corrected the original post.
Next, the fix (the symptoms are different, but this is the same problem):
38505: VA Assist Undefined method warning is not shown
Create a method and type 'self abc', assuming 'abc' is not defined, and save it.
In the browser, 'abc' should be highlighted to show it is undefined and a yellow triangle, warning sign, should appear next to the method in the method list.
This no longer works in V 8.0 with the new and old browsers.
Changed:
IBM Smalltalk, ALL - UI
VA Assist Pro for VisualAge
Test:
1) Create a method and type 'self abc', assuming 'abc' is
not defined, and save it.
2) In the browser, 'abc' should be highlighted to show it
is undefined and a yellow trangle, warning sign, should
appear next to the method in the method list.
The modified code (which reverts to the 1/7/1999 version):
- Code: Select all
StsPowerTools>>#methodSelectorExists: selector
MethodSelectors isNil ifTrue: [^true].
self checkSpelling ifFalse: [^true].
^MethodSelectors includes: selector
and:
- Code: Select all
AbtFeatureLoader>>#promptForFeaturesToLoad
| userCancelled stsTools |
"Assume the cancel button has not been clicked"
userCancelled := false.
Transcript
execLongOperation: [:dialog |
dialog fractionComplete: 0.
"Determine if user has clicked the cancel button by checking for nil result"
(self initialize: dialog) ifNil: [userCancelled := true].
]
message: AbtFeatureLoadPool::AbtInsLoadStatus
allowCancel: true
showProgress: true.
"If cancelled by user, return without displaying the prompter"
userCancelled ifTrue: [^nil].
self loadUnloadCancelled: true.
AbtFeatureLoaderPrompter new
loader: self ;
prompt.
self loadUnloadCancelled ifFalse:[
self loadUnload.
].
(stsTools := Smalltalk classAt: #StsPowerTools) isNil
ifFalse: [ stsTools refreshMethodSelectors ].
" self new promptForFeaturesToLoad "
And the reason that I couldn't see the problem was that I had this fix loaded in my Beta1 image.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.