You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//check if file is contained in one of the paths
for( int i=0; i<searchPathAmount; ++i)
{
std::string search_path = Settings::searchPath(i);
if (search_path[ search_path.size()-1 ] != '/') search_path += "/"; // Add this line to fix missing "/" from path in next line
if (fileExists( search_path+filename ))
{
std::cout << "FOUND " << filename << " in " << search_path << std::endl;
prefix = search_path;
missing_prefixes = true; //the prefix was missing
break;
}
}
The text was updated successfully, but these errors were encountered:
How did you end up with search_path without a trailing slash? If I'm not mistaken, every path added to Settings::searchPath is checked for a missing trailing slash prior to the Settings::addSearchPath(path) call.
On Mar 6, 2022, at 9:05 PM, Walter ZAMBOTTI ***@***.***> wrote:
I stepped through the code and noticed there was no trailing "/" slash. So I added the fix and everything started working!!!
"/usr/local/lib"
Definitely no trailing slash when viewed in xCode debugger.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
In Dependency.cpp at around line 130:
The text was updated successfully, but these errors were encountered: