CodeStream bug using super

23 views
Skip to first unread message

Marcus Wagner

unread,
Jul 23, 2025, 8:02:05 AMJul 23
to VAST Community Forum
Another old time bug, easy to be fixed if s.b. is interested, occured in all VAST versions I knew, including 14.0.0.

Consider you write a method calling super and (for what so ever reason) you are using superflous parenthesis, which is allowed:

method   "saving this causes a WB in CodeStream"
(super) test

the WB says 
ESBrackettedExpression does not understand binding 
in
CodeStream>>sendToSuper: selector arguments: arguments receiver: receiver valueRequired: val

and the method containing this construct (super) cannot be saved.

One quick fix is add this missing method
EsBrackettedExpression>>binding

^self contents binding

and you then can save the method. Please add this fix to EsParsing or similar.
-
M
Remark: there is no reason why (super) fails, where as any of these (self) (nil) (true) (false) does not. Or is there another explanation?

Henry Johansen

unread,
Jul 23, 2025, 11:48:46 AMJul 23
to va-sma...@googlegroups.com
Thanks, I've registered a case for this.
We'll also fix #caIsPseudoVariable similarly, so you correctly get an indicator (with StsCodeAssist) if the super does not understand the message.

Cheers,

Henry Johansen

VAST Consultant

Senior Software Engineer




 hjoh...@instantiations.com
 instantiations.com



Twitter LinkedIn VAST Community Forum GitHub YouTube pub.dev


--
You received this message because you are subscribed to the Google Groups "VAST Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to va-smalltalk...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/va-smalltalk/ef0f74df-49c7-4ac8-b3e5-8adf920de55an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages