News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

"(invalid)" in codecompletion.cpp if "Settings=>Global variables.." is incorrect

Started by omlk, November 16, 2023, 10:26:39 PM

Previous topic - Next topic

omlk

I figured out codecompletion and checked what would happen if you set a non-existent variable
$(#wx33_64.include)
in the "Build Options ... =>Search directories => Compiler"
I in custom me Code::Blocks add:
// TODO: OMLK 15.11.2023
if(dir.Find("(invalid)") != wxNOT_FOUND) {
wxString bad_path = dir; bad_path.Replace(wxT("\\"), wxT("/"));
Manager::Get()->GetLogManager()->LogError(wxString::Format("Incorrect path: %s in %s:%d",bad_path,__FILE__,__LINE__));
  CCLogger::Get()->Log(wxString::Format("Incorrect path: %s in %s:%d", bad_path,__FILE__,__LINE__).c_str());
}


 
* codecompletion_invalid_path.png (203.21 kB, 1280x1024)
 

Wkerry

And the problem or solution is?
I could not understand your post as it did not have basic:
a) Intro
b)  body
c) conclusion/outcome/final