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

Lower case filenames

Scheduled Pinned Locked Moved Qt Creator and other tools
29 Posts 9 Posters 23.8k 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
    scarleton
    wrote on last edited by
    #4

    Vass,

    First off, I am only seeking this to be an option (as a side note, it would be great if the system would remember which option).

    I do have a question for you, since I am planing on taking this application to OSX, why does the case sensitivity cause problems on Unix/OSX? I would think that all lower case would be no different from a mix of lower and upper as long as you get it right:) What am I missing?

    Sam

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #5

      [quote author="scarleton" date="1292721652"]
      ...as long as you get it right...
      [/quote]
      If you make case mistake in include directive on windows platform - all be ok.
      But if it will on Unix - application isn't compile.

      --
      Vasiliy

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kamalakshantv
        wrote on last edited by
        #6

        +1 May be someone should raise a feature request.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          scarleton
          wrote on last edited by
          #7

          I would be glad to put in a feature request, if someone would be so kind as to enlighten me as to how. I found the Jiri page for bugs, but nothing for features.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vsorokin
            wrote on last edited by
            #8

            scarleton, go to http://bugreports.qt.nokia.com/, sign in, click "+ create issue" and see:
            !http://media.share.ovi.com/m1/s/2644/907b7ebfec6f492490a467d9af6c2dbd.jpg(create issue)!

            --
            Vasiliy

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #9

              Hi scarleton. Can you please post the link to the feature request when you made it?
              Thanks

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

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

                Tools->Options->C++->File Naming has a checkbox "Lowercase file names" for me. Is that what you are looking for?

                We generally encourage all lowercase filenames since some file systems are case sensitive while others are not. This can cause quite a mess if you are not consistent with your file name casing. So you can put "Something.h" as well as "something.h" into your project in one system and those end up being one file in another (which one depends on the order you copy the files).

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  giesbert
                  wrote on last edited by
                  #11

                  Hi,
                  That was what I meant. It's always a type of finding :-))
                  Thanks a lot Tobias.

                  Nokia Certified Qt Specialist.
                  Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vsorokin
                    wrote on last edited by
                    #12

                    Tobias Hunger Wow, I don't knew it has setting, but I said above about problem with camelCase filenames :)

                    --
                    Vasiliy

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      milot.shala
                      wrote on last edited by
                      #13

                      Same here, good to have such option.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        scarleton
                        wrote on last edited by
                        #14

                        [quote author="Gerolf" date="1292748375"]Hi scarleton. Can you please post the link to the feature request when you made it?
                        Thanks[/quote] Sure thing:

                        http://bugreports.qt.nokia.com/browse/QTCREATORBUG-3420

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          scarleton
                          wrote on last edited by
                          #15

                          [quote author="Tobias Hunger" date="1292750415"]Tools->Options->C++->File Naming has a checkbox "Lowercase file names" for me. Is that what you are looking for?[/quote]That is it, exactly. Now if it where on the C++ Class Wizard, folk could find it easier :)

                          [quote author="Tobias Hunger" date="1292750415"]We generally encourage all lowercase filenames since some file systems are case sensitive while others are not. This can cause quite a mess if you are not consistent with your file name casing. So you can put "Something.h" as well as "something.h" into your project in one system and those end up being one file in another (which one depends on the order you copy the files).[/quote]I simply don't follow the logic here, with regards to C++, that is. The whole language is case sensitive, Considering this is the programming language I started in, it is always my habit, even in languages which are NOT case sensitive to make sure that the case is consistent, what ever they might be. I find this to improve readability as much as anything else.

                          What I don't get is why Unix programmers that live in a world of case sensitive filenames just punt and make everything lower case. I know I REALLY wish Windows was case sensitive because it drives me batty trying to change the case of a filename, I always have to totally rename it to something new and change it back wit the correct case.

                          But then I am one of those that hates the fact that SQL isn't case sensitive, wish it was:)

                          1 Reply Last reply
                          0
                          • 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

                                          • Login

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