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. Lower case filenames
Forum Updated to NodeBB v4.3 + New Features

Lower case filenames

Scheduled Pinned Locked Moved Qt Creator and other tools
29 Posts 9 Posters 24.0k Views 1 Watching
  • 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #16

    I'd like to reopen this thread. I had used camelCase when naming my files. Now that I see it's not such a good idea, I'd like to change to all lowercase while I still have just a handful of files.

    Unfortunately, Creator seems to be getting confused. I changed one filename, but both the old and new versions of the file seem to "exist" now. For example, if I go into a different file, select a class name, and do the "Find Usages" command, both versions of the filename show up.

    I've copied the file to another location, deleted it through Qt (including deleting the file permanently), quit and re-started Creator, and re-added the file, and this still happens. Is this a bug, or am I leaving out a step?

    And...what's the recommended way to fix all of my filenames within Creator?

    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #17

      Check your .pro file. Maybe there are duplicates. Also double-check for duplicates in your FS (if you have case-sensitive FS).

      1 Reply Last reply
      0
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #18

        Thanks, Denis. I checked both, and could find no occurrence of the duplicate file. Any other ideas?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #19

          Does it help to delete the .pro.user file?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #20

            Andre: Nope. The .pro.user file does not contain any information on which files make up the project.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #21

              No, but removing it can trigger QtCreator to re-scan the .pro file. That does not always happen otherwise, I noticed.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #22

                Andre: That works for me... Please file a bug report if you run into this again.

                1 Reply Last reply
                0
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by
                  #23

                  Hi, Andre -

                  That approach didn't work for me. Is it possible that Qt is keeping some cache file around? And if so, how might I get rid of it?

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andre
                    wrote on last edited by
                    #24

                    Did you run a Clean All from the build menu, and re-ran qmake from that same menu?

                    1 Reply Last reply
                    0
                    • mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #25

                      Here's what I did:

                      1. closed the project
                      2. quit Creator
                      3. deleted the .user file, and the shadow build directory
                      4. started Creator
                      5. opened the project
                      6. Clean All
                      7. Run Qmake (from the menu)
                      8. opened a particular .h file
                      9. right-clicked on a class name
                      10. selected Find Usages

                      ...and I am still getting the duplicate file name in the search results.

                      EDIT:

                      An additional data point: I edited the file in question (the one whose name agrees with that in my file system) and inserted a few blank lines before the reference to the class. I re-ran the find usages, and the line number in BOTH files found by the search changed.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        andre
                        wrote on last edited by
                        #26

                        Time for a bugreport, I think? I have no clue where else there might be stale info. Tobias?

                        1 Reply Last reply
                        0
                        • mzimmersM Offline
                          mzimmersM Offline
                          mzimmers
                          wrote on last edited by
                          #27

                          Hey, Andre -

                          Absent a response from Tobias, should one of us file a bug report?

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            andre
                            wrote on last edited by
                            #28

                            Preferably you, yes.

                            1 Reply Last reply
                            0
                            • mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #29

                              Done, but no response yet.

                              "link to report":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4734

                              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