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

Creator 2.6.0-beta fails to import C++ code styles it generated itself

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • Qt Creator 2.6.0-beta
    • C/C++/Obj-C++ Support
    • None
    • Windows 8 RTM

    Description

      Steps to reproduce

      1. Pathway 1
        1. Delete everything in C:\Users\ [username]\AppData\Roaming\Nokia\qtcreator\codestyles\Cpp
        2. Open Creator 2.6.0-beta
        3. Copy the "Qt [built-in]" style, give it any name, edit it
        4. Restart Qt Creator
        5. Try to import C:\Users\ [username]\AppData\Roaming\Nokia\qtcreator\codestyles\Cpp\qt2.xml
      2. Pathway 2
        1. Copy an XML code-style file from Qt Creator 2.5.2 into C:\Users\ [username]\AppData\Roaming\Nokia\qtcreator\codestyles\Cpp
        2. Open Qt Creator 2.6.0-beta
        3. Export the style from #2.1 into C:\tmp
        4. Try to import C:\tmp\ [filename].xml

      Results
      Step #1.4: My edited style is no longer available in the Code style menu
      Step #2.2: My old style is available in the Code style menu

      End of both pathways: Error message, "Cannot import code style from %1"

      Other observations

      • The XML format from Creator 2.6.0-beta is different from Creator 2.5.2
      • Unlike the files from Creator 2.5.2, "qt2.xml" does not contain the DisplayName variable (i.e. the style name is not saved)
      • The effects of this bug are similar to QTCREATORBUG-6952 but it probably has a different root cause

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              leamelo Leandro T. C. Melo
              jksh Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes