#1496 ctrl+1 w/undefined method in class deletes current method

closed-fixed
nobody
5
2012-04-27
2012-04-10
Luke
No

Before:

class A:
def methodA(self):
xyz = 1
self.methodB(xyz) <- do ctrl+1 here

After:
class A:
def methodB(self, xyz):
pass

Attached offending code, undefined method at line number 46.

Discussion

  • Luke

    Luke - 2012-04-10
    • labels: --> refactoring
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2012-04-11

    Given the 'simple' instructions it doesn't happen for me... and in the attached file, line 46 is empty, so, I couldn't reproduce it there either.

    So, it's actually possible that this is already fixed... which PyDev version are you using? Can you attach a 'simple' example with instructions on how to reproduce it (if you're already in the latest released version, it could be that something is different in your file, such as indentation or some strange character. which I'm not putting when trying to reproduce it).

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2012-04-11
    • status: open --> pending
     
  • Luke

    Luke - 2012-04-17

    base class

     
  • Luke

    Luke - 2012-04-17

    problem code

     
  • Luke

    Luke - 2012-04-17
    • status: pending --> open
     
  • Luke

    Luke - 2012-04-17

    I have uploaded a simplefied example that should reproduce this issue (at least is does for me). You should be able to just load both file up from Eclipse and do Ctrl+1 on the last line in the test.py file (ln# 43) to reproduce.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2012-04-24

    I tested it here with the example and it worked (I must say that initially I though the error happened, but the ctrl+1 location was still there, just scrolled down).

    So, can you check with the latest nightly to see if it's working for you there?

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2012-04-24
    • status: open --> pending
     
  • Luke

    Luke - 2012-04-25

    What is the update site for the latest nightly?

     
  • Luke

    Luke - 2012-04-25
    • status: pending --> open
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2012-04-26
    • status: open --> pending
     
  • Luke

    Luke - 2012-04-27

    Fixed for me in 2.6

     
  • Luke

    Luke - 2012-04-27
    • status: pending --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks