Menu

#395 comment/uncomment block don't work under ubuntu

closed-wont-fix
nobody
None
1
2007-12-16
2006-11-14
Anonymous
No

eclipse: 3.2.1
PyDev 1.2.5
PyDevExt 1.2.5
Java 1.5.0_08
linux ubuntu Edgy

here is what I get when I select this text (for ex.):

if len(items) > 0:
first_item = items[0]

and press CTRL+4

#-----------------------------------------------------------
if len(items) > 0:
#-----------------------------------------------------
first_item = items[0]

Selecting the text and Pressing CTRL+5 to uncomment has
no effect

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Sorry, The commented text is wrapped here.
    I get something like this:

    #-----------------------------if len(items) > 0:
    #----------------------- first_item = items[0]

     
  • Bruce Edge

    Bruce Edge - 2006-11-20

    Logged In: YES
    user_id=1251183
    Originator: NO

    Using the pulldown menu to select "comment block, this works, but pressing Ctrl-4 prefixed the code with lots of "-" characters:

    Original:

    exc = CommandException()
    owner = cmdlist[0]
    current = owner

    Pull down comment block:

    ===============================================================================
    # exc = CommandException()
    # owner = cmdlist[0]
    # current = owner
    #===============================================================================

    Ctrl-4:
    #---------------------------------------------------- exc = CommandException()
    #---------------------------------------------------------- owner = cmdlist[0]
    #------------------------------------------------------------- current = owner

    I'm also on Ubuntu Edgy, same config for eclipse, jre, pydev etc.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-12-09
    • status: open --> pending
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-12-09

    Logged In: YES
    user_id=617340
    Originator: NO

    Really strange... actually, the comments available are Ctrl+4 and Ctrl+Shift+4.

    Ctrl+4 will give you

    #=======
    # block
    #=======

    and Ctrl+Shift+4 will give you

    #----- block

    (both to the limit on the number of columns you have defined in your preferences)

    So, it appears that what you have right now is something that is keeping your Shift key pressed for some reason... can you check this?

     
  • Nobody/Anonymous

    Logged In: NO

    As said bruce_edge it works fine from the dropdown menu but not with CTRL+4

    I checked my shift key and nothing is kepping it pressed.

    I tried with left and right shift/CTRL and the result is the same.

    HTH

     
  • Nobody/Anonymous

    • status: pending --> open
     
  • Nobody/Anonymous

    Logged In: NO

    I have the same problem!!!

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-03-28

    Logged In: YES
    user_id=617340
    Originator: NO

    I've taken a look at it and it's an eclipse bug... (I've even installed ubuntu to test it)

    The report at eclipse is: https://bugs.eclipse.org/bugs/show_bug.cgi?id=179628

    Workaround:
    Define different keybindings for Uncomment and block comments (which are currently ctrl+shift+3 an ctrl+shift+4), because they are actually overriding the ctrl+3 and ctrl+4 keybindings.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-04-02

    Logged In: YES
    user_id=617340
    Originator: NO

    Actually, maybe using Ctrl+/ and Ctrl+\ might be better options for comment/uncomment -- those are set by default too, and changing Ctrl+Shift+4 to Ctrl+6 -- or removing it altogether if you don't use it

    I'm adding this to the faq until the Eclipse they actually fix it (if you want it fixed, I suggest you drop a note at https://bugs.eclipse.org/bugs/show_bug.cgi?id=179628 saying so (if the eclipse guys see no interest in that, it won't get fixed).

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-04-21

    Logged In: YES
    user_id=617340
    Originator: NO

    This has been added to the faq: http://pydev.sourceforge.net/faq.html#ref_12

    I'm putting it with lowest priority because it's something that eclipse should fix (and not pydev), so, if someone also wants it fixed, the place to go for this request is: https://bugs.eclipse.org/bugs/show_bug.cgi?id=179628

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-04-21
    • priority: 5 --> 1
    • status: open --> open-wont-fix
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-12-16
    • status: open-wont-fix --> closed-wont-fix
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-12-16

    Logged In: YES
    user_id=617340
    Originator: NO

    Not fixable from pydev.

     
Auth0 Logo