[BUG] Re: PrettyPrinter strangenesses (3.6 + 3.7beta)

Marcus Denker denker at iam.unibe.ch
Fri Jul 16 20:58:26 UTC 2004


Am 16.07.2004 um 21:47 schrieb Jochen Riekhof:

> Hi...
>
> I noticed some nasty behaviour with the pretty printing algo. I have  
> it always on as I love colored source code :-) .
>
You should have a look at Shout

    
http://map1.squeakfoundation.org/sm/package/1314cee7-e1a3-4ca5-a167- 
b6517bf16367

> This method
> coveredImage
>   | form |
>   ^ ((form _ self basicCoveredImage) isKindOf: Form)
>       ifTrue: [form] ifFalse: [nil]
>
> always deletes the ifFalse: [nil] branch on save. Actually I find no  
> way to enter the required code without switching of pretty printing  
> altogether:-(
>
Ok, looks like a bug.

> Also, comments at the end of a method are often removed or moved  
> somewhere else.
> Ah yes, and  typing in intention revealing ^self is also always  
> removed.
>

I think we will do some work on the pretty printer as soon as the new  
AST is in the image.

     Marcus





More information about the Squeak-dev mailing list