eranif / codelite Goto Github PK
View Code? Open in Web Editor NEWA multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
Home Page: https://codelite.org
License: GNU General Public License v2.0
A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
Home Page: https://codelite.org
License: GNU General Public License v2.0
"Toggle all folds" collapses only top-level folds. If this is a desired effect the the name is wrong.
Smart indentation is always indenting closing braces with one tab more than it should:
If you write:
if (whatever)
{}
Then if you press between opening and closing brace:
if (whatever)
{[ENTER]}
Result is:
if (whatever)
{
[TAB]}
I would prefer smart indent to use my settings from code formatter plug-in. Why not use astyle to format code as you type? Maybe you use astyle but the context is too small?
Message "undefined reference to" produced by a linker is not correctly recognized as an build error so CL informs user that there are no errors and thus he could get confused. You can reproduce the bug in this way: add for example getch() function to C code without including <conio.h> header and build the project.
it looks like the tooltips for constructors of local objects are not working.
e.g.
class Foobar{
Foobar();
Foobar(float, int);
~Foobar();
}
.. main(..)
{
Foobar foo(...no tooltip pops up);
}
if you create objects on heap using a pointer it works:
class Foobar{
Foobar();
Foobar(float, int);
~Foobar();
}
.. main(..)
{
Foobar* foo = new Foobar(tooltip pops up);
}
Hi,
is it possible to get the autocompletion for the keyword "this" in a program written in C ?
f.e.
void stupid_func( struct coolstruct * this ){
this->coolness = 5 ;
this->stupidity = 0xff;
}
is there a way to get the completion for the structure from "this"
Thanks for the wonderful tool, it has been my favorite in ubuntu for cpp developing.
Changing to v5.0.6213 is great, but there is a very minor problem for me to set up the "show abbreviation" shortcut, I tried to set it to "Ctrl+/", but it does not work. I am using ubuntu precise 12.04, it used to work well in V4.1. If you have time please take a look it, of course it is not a big deal, might just be my system problem, I am not sure though.
Thanks again for the effort!!!
Hi Eran,
In the debug output console I can't seem to enter anything and have it passed to the application I'm debugging.
This is really bad as I do have a text menu driven application I need to debug.
A solution might be to have a choice how to debug (Kdbg does that):
OS : Fedora 16 x86_64 English, all component is up-to-date.
codelite: 5375
there is 3 group key on keyboard:
A. visible-key: a-z,0-9, Punctuation
B. invisible-key: Tab, Backspace, four arrow(left, etc), Insert, Delete, Home, End, PgUp, PgDn, Esc
C. control-key: Ctrl, Alt, Shift, Menu
while ibus is on(enable ibus in "Input Method Selector"):
1. after you press any [B. invisible-key], the input is broken, you cannot input any [A. visible-key] anymore. But invisible-key and control-key can input.break visible key input.
2. after normal input is broken, press any [C. control-key] can drag back temporarily, you can input all keys.
In the latest revision (5453 at this moment), svn actions select the "Subversion"-tab on the output window.
However, when this window is hidden, it will not pop up.
For example,
If there are more than one projects in the workspace and if Proj 1 and Proj 2 contains the same file, like this
-Foo
-- FooExe
--- foo.c
-- FooDll
--- foo.c
When double-click on foo.c in FooDll, the workspace view give the focus to foo.c in FooExe.
Code:
01 class pippo
02 {
03 public:
04 pippo();
05 pippo(int a){m_c = a;};
06 pippo(char pp){m_c = 0;};
07 clear(){m_c = 0;};
08 private:
09 int m_c;
10 };
11
12 pippo objNone("hello");
13 pippo objOk;
14
15 int main(int argc, char *argv)
16 {
17 objNone.clear();
18 objOk.pippo(NULL);
19
20 return 0;
21 }
If I position the caret on the "objOk" then "Goto Declaration", the caret goto line 13 ("pippo objOk").
If I position the caret on the "objNone" then "Goto Declaration" don't work. The problem seems to be the object declaration (string in costructor).
best regards,
Generoso
It seems no different between the search result when I enable or disable the "Use different colour for matches found in comments" option. The matches text's colour is still in black.
I have checked "Pause when execution ends" so that I can still see the output of the application after it exits. This works fine when I execute the application normally.
Unfortunately, this option does not work when using a debugger - the console closes immediately when the application exits.
I work around this by setting breakpoints at the end of main, in exit() and in abort(), but this is a little annoying.
My preferred solution to this issue would be a built-in output tab like in Eclipse - since selecting/copying and searching is quite limited anyway when running in cmd.exe, and also cmd.exe has very small scrollback and I don't see how to increase it to a reasonable size (some of my applications produce quite a bit of logging)
If you have something like this in your class:
int Static : 1;
int Active : 1;
...
the generator doesn't recognize those as member variables.
Codelite version: 3.5.5378
OS: Ubuntu 10.04 LTS
int main(int argc, char **argv)
{
bool isBool = falsde;
printf("hello world %d\n", isBool);
return 0;
}
Next Build error seems to work in other cases; it looks like that only the first error is being skipped.
It would be very helpful if there was a single method to globally change the background color and font for ALL styles at once. It is very tedious to visit every style to set these to your preference.
As noted in another bug I just added, globally changing the bg color should likely not change 'text selection' and others like it.
Ver: v. 3.5.5375
OS: Ubuntu 11.10
When the clipboard buffer is full of text, this text then seems to get (seemingly) randomly pasted around my source code.
I haven't been able to pin down exactly when this is happening, other than it seems to occur when I alt-tab to other programs.
Thank you.
Under Linux, use the explorer view in Codelite to navigate to a directory. Right click in the tree and choose Search... the Find in files dialog "Look in:" field does not contain the directory that was right clicked but rather contains the parent of the clicked subdirectory.
More importantly, the search takes about 100X longer than version 5.2 did under same test conditions. I haven't been able to pinpoint it but it appears that the File Mask may not be applied to the search.
Folding a function in C source code.
Select the range from the function name line to the underline line.
Press "Delete" key to delete source code.
[Problem 1] Line number is not be updated.
[Problem 2] The source attempted to delete still can be found by [Find in Files..].
[Problem 3] The source attempted to delete still exist in file.
The features, include [Goto implementation], [Goto declaration] and [Find reference], won't work if the variables are declaration at function parameters, but they work fine on the local, global variables or preprocessors.
As the following sample code, [goto declaration] doesn't work on "para", and [Find reference] will find 0 result.
void hellofunction(int para)
{
para = 0;
}
You known, while coding, developer always don't want leave the favorite IDE. So,
why I need to launch a external tool for the API man page?
The idea is brought from other high level language, such java for Javadoc, and Eclipse and NetBeans all have implemented it.
See the Netbeans' screenshot:
One of my file contains the line
#include "qdiilog.hpp"
And the compiler includes list contains a path to this file. Compilation works.
However, cppcheck complains about the file not being accessible
:: information: Cppcheck cannot find all the include files (use --check-config for details)
It is not possible to size the output pane under a certain limit.
You can select the border an drag it downwards,
but it is not possible to change the vertical size to minimum.
This is for version 2.5.2.4031.
When renaming a file to the same filename with different case, it will not be renamed. Furthermore you get warned. It's pretty inconvenient...
CodeLite 2.7.0.4375 + VC2008 express.
While I try to build something, I got this error:
----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 1 -f "helloragel_wsp.mk""
----------Building project:[ hragel - Debug ]----------
mingw32-make.exe[1]: Entering directory E:/cpp/helloragel' 'makedir' is not recognized as an internal or external command, operable program or batch file. mingw32-make.exe[1]: *** [makeDirStep] Error 1 mingw32-make.exe[1]: Leaving directory
E:/cpp/helloragel'
mingw32-make.exe: *** [All] Error 2
----------Build Ended----------
0 errors, 0 warnings
I think the command "makedir" should be "mkdir" or "md".
Please fix it.
Thanks
Describing the steps:
One of my file contains the line
#include "qdiilog.hpp"
And the compiler includes list contains a path to this file. Compilation works.
However, cppcheck complains about the file not being accessible
:: information: Cppcheck cannot find all the include files (use --check-config for details)
For CodeLite 2.9.0 on Ubuntu 10.10
It would be helpful to supply a UI to select the pkgconfig library at project setting dialog.
See NetBeans Idea in the attached screenshot:
enum class MyEnum{
A
,B
,C
};
When I type MyEnum:: only A and B show up. the inner format is irrelevant, it can be one line or commas at end of lines etc...
adding a comma at the end will work, but is not correct c++ (g++ will tell you this with -pedantic: "warning: comma at end of enumerator list [-pedantic]")
For example,
If there are more than one projects in the workspace and if Proj 1 and Proj 2 contains the same file, like this
-Foo
-- FooExe
--- foo.c
-- FooDll
--- foo.c
When double-click on foo.c in FooDll, the workspace view give the focus to foo.c in FooExe.
I am using the latest build of CodeLite v2.9.0.4684
I have the code completion dialog to popup automatically however, it is not context aware if I can put it like that.
The code completion dialog will popup when it really shouldn't.
If I am creating a struct type (as I happened to do) the code completion dialog will popup with the closest match and will replace my identifier with the closest match from the code completion dialog. This is somewhat annoying since I like to place my open curly brace on the next line and I have to first escape the dialog before pressing the enter key.
I guess a simple fix would be to complete the word only by pressing tab, or mouse clicking on the match.
OS: Fedora 20 x86_64, default Theme
The content of message-panel is unreadable. Just like bug-916 (https://sourceforge.net/p/codelite/bugs/916/)
Click (Menu->Help->Check for updates) to show the message panel.
Workspace and project files are not updated when read only. A dialog should pop up to allow overriding the read only attribute like it currently does for cpp and h files so they can be saved at program exit.
Does the menu item to save all files save the workspace and project files? It doesn't complain when I use it to try to save read only workspace and project files.
When beginning the parentheses of a function call, the highlighting for the current argument is highleted in the wrong place. In addition, the text is cut off. I am using Arch Linux with XMonad. My GTK theme is Raleigh, with GTK font being DejaVu Sans Semi-Condensed 6.
The problem is in CodeLite crashing.
CrashInfo (russian)
Сигнатура проблемы:
Имя события проблемы: APPCRASH
Имя приложения: CodeLite.exe
Версия приложения: 0.0.0.0
Отметка времени приложения: 4efc11e1
Имя модуля с ошибкой: StackHash_237c
Версия модуля с ошибкой: 0.0.0.0
Отметка времени модуля с ошибкой: 00000000
Код исключения: 80000026
Смещение исключения: 00000000
Версия ОС: 6.1.7601.2.1.0.256.48
Код языка: 1049
Дополнительные сведения 1: 237c
Дополнительные сведения 2: 237c47c74555cd59ead806db781e73b6
Дополнительные сведения 3: ca66
Дополнительные сведения 4: ca6602a0b04906448f6dbfe99253a332
CodeLite 3.5.5377
Windows 7 x86 SP1
No antiviruses installed
Please, fix it. I can't use this great IDE because of this problem.
In the following code "Goto Declaration" and "Goto Implementation" functions do not work with EPON_ONU_TYPE_NTE2 symbol. If I add space character between "=" and "EPON_ONU_TYPE_NTE2" these functions work fine. CScope works in both cases.
#define CONF_ENUM_LIST_ONU_TYPE {\
{.val=0, .name=""},\
{.val=EPON_ONU_TYPE_NTE2, .name="NTE-2"},\
At compilation, if a file is missing, you get a unhelpful
make: *** [All] Error 2
and nothing else. I would like to see which file is missing. Missing files are common, figure you 'svn up' and someone remotely deleted a file - you need to remove it in the CodeLite project too.
Fold all code in a large source file ( View -> Toggle All Folds)
Do a global search for a keyword in that source file (ctrl+shift+F)
Click a search result
What happens is the search result just goes to the bottom of the file. It seems like the search result is trying to go to the original line number, and not taking in to consideration that there is folding.
Hi There.
Posed this on the sourceforge ratings thing, but thought it important enough to post here too.
I really like codelite so would love to see it developed further. Hence why posting this here.
I'd like to say that I believe codelite succeeds because it is a visual-studio clone for unix.
Many windows-based people who get dropped into unix development need an IDE which is as similar to visual studio as possible.
Its a productivity thing. And if codelite had that as its aim (which I think it does....), it could be really successful.
Many people in my workplace are ex-computer-game coders who are used to Visual Studio, and are suddenly dropped into Linux. We all go through a couple of weeks sorrow and trying other IDE's before finally settling on Eclipse. This is where I tried codelite but had to give up because of show stoppers.
Ok. Here are my showstoppers.
CodeCompletion and GoToDefinition features were not working across namespaces correctly. This completely killed these must have features. Any large project has namespace stuff going on. Until this is fixed I cannot use codelite. :( It has to be Eclipse
No "Windows" menu on the menu bar. Small deal but it is much faster/easier to navigate through your last ~10 opened files, than the tab groups thing. This is what visual studio users are used to. To really succeed at drawing visual studio lovers, codelite needs this.
( even as an option or something.... )
General flakeyness with its code tagging. Clang had trouble parsing our codebase. And the only error I could get out of codelite was a simple " Expected 'bool', got '}' " style compiler error which gave no filename or linenumber. Impossible to do anything with on a large codebase. And that was only when I went to do some code completion stuff. It should've told me this stuff while tagging, or something....
We need decent error reporting from the tagging so we can see where its breaking. ( on both clang and ctags )
Until these 3 things are fixed, I'll be going back to Eclipse. Although its interface is not as clean, simple or visual-studio-like, its generally more robust at handling+parsing large Makefile-based codebases. ( most large unix codeprojects are makefile based )
I'll finish by saying that although I had these problems. I REALLY LIKED codelite.
( If I could get the time I'd be happy to work on it myself. )
Brian
After a class, the closing bracket should be followed by a semicolon.
Example:
class fubar
{
}
is currently done, while
class fubar
{
};
should be done.
When starting CodeLite, wxCrafter.so is not loaded. The following error appears in ~/.codelite/codelite.log:
[ 20:40:38:357 SYS ] Starting codelite...
[ 20:40:39:363 ERR ] Failed to load plugin's dll: /usr/lib64/codelite/wxCrafter.so
[ 20:40:39:363 ERR ] /usr/lib64/codelite/wxCrafter.so: symbol _ZThn744_N14wxPropertyGrid5ClearEv, version WXU_3.0 not defined in file libwx_gtk2u_propgrid-3.0.so.0 with link time reference
[ 20:40:47:480 SYS ] Bye
More information:
CodeLite 5.4
wxCrafter 1.4
wxgtk 3.0.0-2
Arch Linux 3.12.7-2-ARCH
If files have been modified externally, CL shows an information dialog.
The bug appears after closing this dialog: The code editor now selects text while the mouse is moved around. It seems that the problem stems from unprocessed mouse messages.
Isseu occurs on Windows, other OSes not tested yet.
When shift click on an header filename (in an include), a dialog box open to select the file to open, the mouse will not work (even to scroll, resize the window, close, cancel, move...) Have to select with the keyboard or esc to cancel.
On my MacOSX 10.6.8 with 2 Gigs of RAM and Core 2 Duo, sometimes CodeLite freezes during the boot sequence. Also, when running a test code it freezes.
Since the bug is intermittent, I'll need some help to narrow it down.
When using Google C++ Style guidelines for namespaces ie. not indenting all data contained within a namespace,
and writing a class:
class P
{
private:
becomes:
class P
{
private:
ie. Codelite detects the namespace and indents the private or public identifier forward, whereas it should be matching the indent level of the class line.
This bug is still present in 2.7.0.4375.
Reload file dialog does not appear infront of the main codelite window.
I use Codelite on Linux (Redhat 6.2) 64 bit. All source file, including projects and workspaces, are managed by Perforce. If I don't check out files they are set to read-only mode by Perforce. Then if I change a project or a workspace Codelite silently fails to save my changes.
Hi,
The v5 is very great, Codelite gets better every time.
This ticket is about a longstanding little issue with "Type info tooltips" which appears above pop-up windows because I think that the tooltips is already running when the mouse is on the word.
In many contexts :
When you hold "Ctrl" and right click for show the menu :
" Find symbol. Go to Delcaration. Go to Implementation ".
When you open the "Quick outline".
When you use "Code navigation" and you have the choice between some results.
v5.0.6213 LinuxMint14 64bits
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.