Linux Compatibility Warning

Friendly conversations, and everything that doesn't fit into the other forums.
6 posts Page 1 of 1
Bloodknight
Posts: 151
Joined: Tue Feb 03, 2015 8:58 pm
by Bloodknight » Fri Feb 02, 2018 5:43 am
I'm trying to eliminate all errors and warnings from my log file, because why not right?

so anyway, I find a bunch of these warnings, now the problem is that none of the image files are being referenced directly from the script files. which confused me for a while.

then I find this little beast EditorIconRegistry::loadFromPath() which appears to be auto capitalising the first letter of every filename, I took a brief look into the source but that proved unhelpful.

It appears that this auto capitalisation comes from the platform itself and I really have no idea how to stop this short of forcing some kind of toLower() within the function and forcing people to make sure that the files are all forced lower case.
Jason Campbell
Posts: 272
Joined: Fri Feb 13, 2015 2:51 am
 
by Jason Campbell » Fri Feb 02, 2018 11:59 pm
I noticed this when I was trying to merge the TAIK engine and script changes into 3.10 but didn't notice anything further but this might explain some errors which I really want to get rid of.
Bloodknight
Posts: 151
Joined: Tue Feb 03, 2015 8:58 pm
by Bloodknight » Sat Feb 03, 2018 10:48 pm
This was partially cleared up for my by @
User avatar
Azaezel
, in this instance seems it takes the classnames from the source, which of course has the case set in C++ and then looks for that file withe the case set.

As a weird and additional note, fixing this isnt actually as trivial as one might think...

Attempt 1 windows refused to rename the file the same name with a different case, presumably this is because of lack of case sensitivity and in its mind, me making zero changes.

attempt 2, rename all files something different in a different folder, then copy the files over the original, same problems as above

attempt 3, delete all the damn files copy over the correctly capitalised files to the folder

yay, job done.... no...

git refuses to acknowledge changing of the name to capitalised, presumably because of the OS issue of lack of case sensitivity *sigh*
Timmy
Posts: 366
Joined: Thu Feb 05, 2015 3:20 am
by Timmy » Sun Feb 04, 2018 12:42 am
On windows if you have git bash installed you can issue git config core.ignorecase false or you can do git mv -f MyFile.name myfile.name

*Edit:
With tortoise git tools on windows you can do right click->TortoiseGit->Settings and than edit local .git/config and in the core section place ignorecase = false ...im sure other gui tools have somewhere you can change it too
Bloodknight
Posts: 151
Joined: Tue Feb 03, 2015 8:58 pm
by Bloodknight » Sun Feb 04, 2018 3:15 am
Good info, i pasted the git config into sourcetree terminal and that did the job

Thanks Timmy :)
Timmy
Posts: 366
Joined: Thu Feb 05, 2015 3:20 am
by Timmy » Sun Feb 04, 2018 4:15 am
Yeah no worries, thanks for fixing those annoying compat warnings :)
6 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests