Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Disable python warnings on Qt Creator
QtWS25 Last Chance

Disable python warnings on Qt Creator

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Seifu
    wrote on last edited by
    #1

    Is there any way to turn off Python warnings on Qt Creator?

    Sin título.png

    Not like "specific warnings" like this one (I've already seen there is an unresolved post regarding this topic), I'd simply like to disable them all.

    I've tried turning off line annotations on annotation settings, but that doesn't turn off the line highlight, just the warning text.

    It's kind of annoying to code with this Jiminy Cricket highlighting things that have been made like that in purpose, hehe.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Seifu
      wrote on last edited by Seifu
      #2

      Edit: figured it out myself. I'll still drop the answer around here in case anyone has a similar issue and doesn't know how to solve it since, even though it has already been documented, you'd have to search for PyLS related problems and if you are here, chances are you don't even know what PyLS is.

      So, what you are looking for are settings related to the Python Language Server (PyLS), which is the dude in charge of python related warnings, annotations, text auto-completion, and so on.

      Ideally, it would be nice if we could turn off just "some" annotations, but even though Qt has a few settings related to language servers, it seems like there is no easy way to customize it according to your preferences, so you either take the full package (which includes pointless and annoying annotations), or just disable it completely even though it has some cool and useful features.

      Now, if you decide you want to disable it, there are two ways to do so. You can either completely get rid of your QtProject settings (in "%appdata%\QtProject) and restart the IDE, or you can do it the "proper way":

      Head to Tools > Options > Language Client (or Qt Creator > Preferences > Language Client > on macOS), and disable or delete the Python Language Server.

      Obviously, avoid setting it up again if QtCreator prompts it in the future.

      For more information regarding this topic, check out:
      https://doc.qt.io/qtcreator/creator-language-servers.html
      https://pypi.org/project/python-language-server/

      1 Reply Last reply
      1
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        This thead provides more information about disabling specific warnings.

        Qt has to stay free or it will die.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved