Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25450

Python block comment conflicts with static analyzer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.14.1
    • Python Support
    • None
    • All

    Description

      Using the shortcut to comment Python code prepends just '#' to the selected lines while instead it should prepend "# ".

      Prepending just '#' triggers the static analyzer to ask the user for a space after #.

      If the user fixes this warning and then uncomments the code, Qt Creator won't strip the line of the additional leading space, thus creating an indentation error.

      I hope the attached gif better explains the issue 

      PS: Any help with the title is much appreciated.

       

      Attachments

        Activity

          People

            davschul David Schulz
            jacklilhammers Jack Lilhammers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: