Page 1 of 1

Bug in autocomplete of include files

Posted: Wed Mar 21, 2018 3:01 pm
by xthunderheartx
Hi Eran

Has anyone submitted a bug for this? Since 12.0 I get a crash anytime I hit autocomplete when typing a new include file. I isn't a critical issue just massively annoying.

- Dallas

Re: Bug in autocomplete of include files

Posted: Wed Mar 21, 2018 4:52 pm
by eranif
Which OS and How to reproduce?

Re: Bug in autocomplete of include files

Posted: Wed Apr 18, 2018 2:09 pm
by DarkAle
I think I found a similar bug. But its really strange. Everytime I want to enter the line "std::thread T(Test)" Codelite crashes.It doesn't obviously like the ( char.

Code: Select all

#include <thread>

void Test()
{
    while (true)
    {
        printf("x");
        std::this_thread::sleep_for(std::chrono::microseconds(1000));
    }
}

int main(int argc, char **argv)
{
    //std::thread T(Test);
	// Please rewrite above text without // for bug reproduction.
		    
	while (true);
    return 0;
}
I am using Codelite 12.0 with Win7. Active Plugins are CMake, CScope, CallGraph, CppCheck, QMake, UnitTest++, Wizards, wxCrafter, wxFormBuilder.

A reinstall of Codelite doesn't help.

Re: Bug in autocomplete of include files

Posted: Wed Apr 18, 2018 3:33 pm
by DarkAle
Its getting more strange. The error may be easily reproduced by:

1.) Create a new project (Console / Simple executable (g++))
2.) Open main.cpp
3.) Click into main.cpp between include and main and enter "s(".

Other strings like "l(", "h(", "t(", "g(", "s(", "a(", "o(", "i(" will also cause a crash. But "m(" does not.

Re: Bug in autocomplete of include files

Posted: Wed Apr 18, 2018 8:54 pm
by eranif
Obviously, this is a local issue, otherwise we would have seen this report *ages* ago...
I can't reproduce this on multiple Windows installations.

Can you delete the folder %appdata%\CodeLite

and see if it helps?

Re: Bug in autocomplete of include files

Posted: Thu Apr 19, 2018 11:22 am
by DarkAle
Thank you. It's working now! :D

I deinstalled codelite, removed %appdata%\CodeLite, used CCleaner, Wise DiskCleaner, Wise Registry Cleaner, cleaned Registry from codelite entries (found one in Wow6432Node), delete project folder (its yust a test folder for newer C++ standards) and reinstalled codelite.