Page 1 of 1
Anyone who meet the same problem?
Posted: Fri Jan 17, 2014 11:28 am
by Mafuyu
In Tags Options->Triggering,Minimum number of chars to type to show wordcompletion-box must be set to a number bigger than 3.
http://imagebin.org/287137
For example,it is set to 3:
http://imagebin.org/287135
The printf funtcion is not appeared.
If it is set to 2:
http://imagebin.org/287136
The two keywords are not appeared..
Can anybody give a tip,thanks!
Re: Anyone who meet the same problem?
Posted: Fri Jan 17, 2014 11:41 am
by Mafuyu
By the way ,in the Tweaks plugin ,Tab Colours config can't be saved,but the project icon images config can be saved.
The CppCheck can't use in Archlinux,if I run it,codelite will crash.In winXP,I do a test:
#include <stdio.h>
#include <stdlib.h>
int main()
{
char array[10];
char *p;
array[10] = 1;
p = malloc (sizeof array);
}
Starting cppcheck: "E:\Program Files\CodeLite\codelite_cppcheck.exe" --enable=style --enable=performance --enable=portability --enable=unusedFunction --enable=missingInclude --enable=information --std=posix --std=c99 --std=c++11 --force --template gcc --file-list="D:\Project\My_workspace\.codelite\cppcheck.list"
Checking D:\Project\My_workspace\test\main.c...
D:\Project\My_workspace\test\main.c:7: style: Variable 'p' is allocated memory that is never used
D:\Project\My_workspace\test\main.c:8: error: Array 'array[10]' index 10 out of bounds
D:\Project\My_workspace\test\main.c:10: error: Memory leak: p
Checking usage of global functions..
===== cppcheck analysis ended. Found 0 possible errors=====
It says 0 possible errors...
Re: Anyone who meet the same problem?
Posted: Fri Jan 17, 2014 11:48 am
by eranif
Mafuyu wrote:Tab Colours config can't be saved,but the project icon images config can be saved
This is because by default on Linux codelite is compiled with the native notebook. You need to build your codelite with wxAuiNotebook
To do so, run your cmake with:
-DGTK_USE_AUIBOOK=1
Mafuyu wrote:Starting cppcheck: "E:\Program Files\CodeLite\codelite_cppcheck.exe" --enable=style --enable=performance --enable=portability --enable=unusedFunction --enable=missingInclude --enable=information --std=posix --std=c99 --std=c++11 --force --template gcc --file-list="D:\Project\My_workspace\.codelite\cppcheck.list"
Checking D:\Project\My_workspace\test\main.c...
D:\Project\My_workspace\test\main.c:7: style: Variable 'p' is allocated memory that is never used
D:\Project\My_workspace\test\main.c:8: error: Array 'array[10]' index 10 out of bounds
D:\Project\My_workspace\test\main.c:10: error: Memory leak: p
Checking usage of global functions..
===== cppcheck analysis ended. Found 0 possible errors=====
This looks like a bug - please open a bug report for this
Eran