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

Clang Code Model crashes depending on LOCALE

XMLWordPrintable

    • Linux/X11
    • 5719e7961e5f719f7a8faa15e59f823931c6dfca (qt-creator/qt-creator/4.8)

      After switching from Creator 4.7 to 4.8 every file I open causes clang code model to fail and restart indefinitely:

      Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.

      The terminal shows some more information from a qWarning:

      Error in ClangCodeModelServer::documentsClosed: Document 'some_source.cpp' does not exists!
      terminate called after throwing an instance of 'std::invalid_argument'
      what(): stod

       

      The error goes away when setting `LC_ALL="C"`, which affects the behavior of 'stod'. My default locale apparently uses "," as decimal separator.

        For Gerrit Dashboard: QTCREATORBUG-21605
        # Subject Branch Project Status CR V

            kosjar Nikolai Kosjar
            pwuertz Peter Würtz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes