Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: omlk on November 16, 2023, 10:26:39 pm

Title: "(invalid)" in codecompletion.cpp if "Settings=>Global variables.." is incorrect
Post by: omlk on November 16, 2023, 10:26:39 pm
I figured out codecompletion and checked what would happen if you set a non-existent variable
Code
$(#wx33_64.include)
in the "Build Options ... =>Search directories => Compiler"
I in custom me Code::Blocks add:
Code
// 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());
}

  (https://forums.codeblocks.org/index.php?action=dlattach;topic=25592.0;attach=11787;image) (https://forums.codeblocks.org/index.php?action=dlattach;topic=25592.0;attach=11786;image)
 (https://forums.codeblocks.org/Themes/default/images/icons/clip.gif) codecompletion_invalid_path.png (https://forums.codeblocks.org/index.php?action=dlattach;topic=25592.0;attach=11786) (203.21 kB, 1280x1024)
 
Title: Re: "(invalid)" in codecompletion.cpp if "Settings=>Global variables.." is incorrect
Post by: Wkerry on November 17, 2023, 11:26:36 am
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