#947 code formatter adds whitespace on line with only parenthesis

1.4.7
closed-fixed
Editor (491)
5
2009-08-05
2009-07-30
Brandon
No

System: Ubuntu 9.04 x64
Eclipse Version: 3.5 (also happened in 3.4)
PyDev version: 1.4.7.2843

When there is a line that just has a parenthesis, or parenthesis and a colon, the code formatter adds extra whitespace on save.

After several saves, the line gets extremely long and actually has caused eclipse to freeze up (not sure why but that is a separate issue).

You can see it happen if you just have a line like:
tmp = (
)
and hit save. It will then look like
tmp = (
)

And each save the line will get longer.

Took me forever to figure out why eclipse was getting so slow and eventually dying. Actually a lot of text editors I found out have problems with really really long lines...thank goodness for vim...haha. This isn't new with this version of PyDev, I just haven't reported it until now...

Discussion

  • Brandon
    Brandon
    2009-07-30

    just played around with it a little and it looks like it doubles the whitespace each time. So 1 tab turns into 2, 2 into 4, etc.

    Also, not sure if it matters but I am not using spaces, I am using tabs.

     
  • Brandon
    Brandon
    2009-07-30

    just played around with it a little and it looks like it doubles the white space there. So 1 tab turns into 2, 2 into 4, etc.

    Also, not sure if it matters but I am not using spaces, I am using tabs

     
  • Brandon
    Brandon
    2009-07-30

    just played around with it a little and it looks like it doubles the white space there. So 1 tab turns into 2, 2 into 4, etc.

    Also, not sure if it matters but I am not using spaces, I am using tabs

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2009-08-05

    Fixed for 1.4.8 (svn: 2862)

    Note: this only happened when using tabs instead of spaces.

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2009-08-05

    • status: open --> closed-fixed