Bug in autocomplete of include files

Discussion about CodeLite development process and patches
xthunderheartx
CodeLite Curious
Posts: 9
Joined: Thu Feb 01, 2018 7:53 pm
Genuine User: Yes
IDE Question: c++
Contact:

Bug in autocomplete of include files

Post by xthunderheartx » Wed Mar 21, 2018 3:01 pm

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

User avatar
eranif
CodeLite Plugin
Posts: 5886
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Bug in autocomplete of include files

Post by eranif » Wed Mar 21, 2018 4:52 pm

Which OS and How to reproduce?
Make sure you have read the HOW TO POST thread

DarkAle
CodeLite Curious
Posts: 3
Joined: Wed Apr 18, 2018 1:57 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Bug in autocomplete of include files

Post by DarkAle » Wed Apr 18, 2018 2:09 pm

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.

DarkAle
CodeLite Curious
Posts: 3
Joined: Wed Apr 18, 2018 1:57 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Bug in autocomplete of include files

Post by DarkAle » Wed Apr 18, 2018 3:33 pm

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.

User avatar
eranif
CodeLite Plugin
Posts: 5886
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Bug in autocomplete of include files

Post by eranif » Wed Apr 18, 2018 8:54 pm

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?
Make sure you have read the HOW TO POST thread

DarkAle
CodeLite Curious
Posts: 3
Joined: Wed Apr 18, 2018 1:57 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Bug in autocomplete of include files

Post by DarkAle » Thu Apr 19, 2018 11:22 am

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.

Post Reply