User forums > General (but related to Code::Blocks)

Suggestion: Support mixed case files on case insensitive file systems

<< < (2/2)

blauzahn:

--- Quote ---...once VS2017 renames a file it throws off code::blocks building.  ...
--- End quote ---
So, IMHO, it sounds like it is VS who is screwing up here. Then you should ask their developers to fix it.


--- Quote ---...if the project has "file1" it should be able to handle "File1".
--- End quote ---
I would vote against that. If feels like another potential source of problems. Not worth the trouble.

We use a shared codebase north of 2.5k files with Windows VS as well as with Linux CB. And we
do have upper- as well as lowercase letters in our filenames. The only time a compilation might
break is when we ourselves made an error while renaming.
 
In case of your many exisiting projects you might consider converting them once (again) and from
then on maintain some naming discipline.

Do the files cb creates while compiling and linking reside on NTFS as well or on a case sensitive linux file system?

Btw: You do know the plugin "find broken files in project", don't you?

dfatcb:

--- Quote from: BlueHazzard on February 19, 2019, 10:49:17 am ---This still does not tell me how the error manifests in codeblocks... Can you not open the file? Do you get compiler errors? Does codeblocks crash? Be more descriptive in your answers please...

--- End quote ---

"throws off code::blocks building.  Sometimes the symptom is that it keeps rebuilding a project that is already up to date, however, the bigger problem is that in some other cases it doesn't detect the changes and doesn't build the updated files throwing everything out of sync."

I'm talking about the "build" (ability to detect changes and build the files that need to be rebuilt).  It can access the files fine, but the build doesn't work right when the name on the disk is different than the name in the project.  e.g. File1 vs file1








blauzahn:

--- Quote ---[...] it keeps rebuilding a project that is already up to date,
--- End quote ---

Aside vom the file naming issue you have.
This can also be a hint that you maybe have cyclic dependencies in your project.

dfatcb:
I just noticed something today.  When the renamed file is a .cpp file type, it just always rebuilds.  If it's a .hpp file type, it misses the changes.

I found a file with case changed to MAIN.CPP and was always rebuilding, renamed to main.cpp and then all targets up to date.  Then I found SUPPORT.HPP was misnamed as well, I renamed to support.hpp and then the build found 3 modules to build.

Navigation

[0] Message Index

[*] Previous page

Go to full version