Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Issue in Parsing file in Qt

Issue in Parsing file in Qt

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 5 Posters 969 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.
  • Swati777999S Offline
    Swati777999S Offline
    Swati777999
    wrote on last edited by
    #1

    Hi All ,

    Hope you're doing fine.

    I came across a statement "This file is not part of any project. The code model might have some issues parsing this file properly" What is meant by the parsing of a file in Qt?

    Regards
    Swati

    “ In order to be irreplaceable, one must always be different” – Coco Chanel

    J.HilkJ 1 Reply Last reply
    0
    • Swati777999S Swati777999

      @ChrisW67 I want to know what does the term 'parsing" here mean?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #5

      @Swati777999 QtCreator parses the project file and your source code to create code model and point out possible issues in your code.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #2

        Qt is a library. It does not parse anything. I assume you mean Qt Creator, which is an IDE.

        Qt Creator parses, that is pulls apart into symbols and works out the code structure/code model, in order to support syntax highlighting, point out obvious errors, and to allow it to navigate around the program (e.g. find the declaration of variable foo when you point at somewhere foo is used, or rename foo as bar globally). If you open a project in Qt Creator and then open a unrelated file in the editor you may get this message. Qt Creator cannot be certain that the content of this file is in any way related to the project because it is not explicitly part of the project.

        Swati777999S 1 Reply Last reply
        3
        • Swati777999S Swati777999

          Hi All ,

          Hope you're doing fine.

          I came across a statement "This file is not part of any project. The code model might have some issues parsing this file properly" What is meant by the parsing of a file in Qt?

          Regards
          Swati

          J.HilkJ Online
          J.HilkJ Online
          J.Hilk
          Moderators
          wrote on last edited by
          #3

          @Swati777999
          it happens,

          I have that issue for nearly all my projects when I switch to the android kit, it compiles fine, and highlighting usually works, haven't found a way to fix it yet.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          B 1 Reply Last reply
          1
          • C ChrisW67

            Qt is a library. It does not parse anything. I assume you mean Qt Creator, which is an IDE.

            Qt Creator parses, that is pulls apart into symbols and works out the code structure/code model, in order to support syntax highlighting, point out obvious errors, and to allow it to navigate around the program (e.g. find the declaration of variable foo when you point at somewhere foo is used, or rename foo as bar globally). If you open a project in Qt Creator and then open a unrelated file in the editor you may get this message. Qt Creator cannot be certain that the content of this file is in any way related to the project because it is not explicitly part of the project.

            Swati777999S Offline
            Swati777999S Offline
            Swati777999
            wrote on last edited by
            #4

            @ChrisW67 I want to know what does the term 'parsing" here mean?

            “ In order to be irreplaceable, one must always be different” – Coco Chanel

            jsulmJ C 2 Replies Last reply
            0
            • Swati777999S Swati777999

              @ChrisW67 I want to know what does the term 'parsing" here mean?

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #5

              @Swati777999 QtCreator parses the project file and your source code to create code model and point out possible issues in your code.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • Swati777999S Swati777999

                @ChrisW67 I want to know what does the term 'parsing" here mean?

                C Offline
                C Offline
                ChrisW67
                wrote on last edited by
                #6

                @Swati777999 said in Issue in Parsing file in Qt:

                I want to know what does the term 'parsing" here mean?

                As I said, "Qt Creator parses, that is pulls apart into symbols and works out the code structure/code model, in order to support syntax highlighting, point out obvious errors, and to allow it to navigate around the program (e.g. find the declaration of variable foo when you point at somewhere foo is used, or rename foo as bar globally). "

                But don't take my word for it: https://www.dictionary.com/browse/parsing

                1 Reply Last reply
                1
                • J.HilkJ J.Hilk

                  @Swati777999
                  it happens,

                  I have that issue for nearly all my projects when I switch to the android kit, it compiles fine, and highlighting usually works, haven't found a way to fix it yet.

                  B Offline
                  B Offline
                  bee65
                  wrote on last edited by
                  #7

                  @J-Hilk said in Issue in Parsing file in Qt:

                  when I switch to the android kit

                  Thanks for the tip! I disabled the Android kit for my project and the code model is working again in my editor.

                  1 Reply Last reply
                  1

                  • Login

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