Error/Warning tab feature
-
- CodeLite Enthusiast
- Posts: 20
- Joined: Wed Sep 24, 2008 9:49 pm
Error/Warning tab feature
I have attempted to create an Errors/Warnings tab to allow faster navigation to errors/warnings and having one overview, by only showing errors or warnings if the user choose so (it is actually the build tab without all the compiler output - only errors and warnings).
Attached is the patch file (rename to .patch).
I'm not sure if the patch will succeed (since it also has to create new files and its the first time I created a patch file )
Of course, there is still some work to do. Ideas include:
* Refactoring some code so there are no duplicated between BuildTab and ErrorsTab code (for example GetCompilerByLine and DoOpenFile).
* When selecting (via mouse of F4 (Next Build Error)) an error or warning, also highlight this in the Build Tab, so when opening the Build Tab, you see the compiler output of that specific error/warning.
For future reference, is it allowed to do a check in (commit) directly on the tree, or do new features/changes always be delivered as patched?
Who is responsible for reviewing the changes? Do you do that all Eran?
Attached is the patch file (rename to .patch).
I'm not sure if the patch will succeed (since it also has to create new files and its the first time I created a patch file )
Of course, there is still some work to do. Ideas include:
* Refactoring some code so there are no duplicated between BuildTab and ErrorsTab code (for example GetCompilerByLine and DoOpenFile).
* When selecting (via mouse of F4 (Next Build Error)) an error or warning, also highlight this in the Build Tab, so when opening the Build Tab, you see the compiler output of that specific error/warning.
For future reference, is it allowed to do a check in (commit) directly on the tree, or do new features/changes always be delivered as patched?
Who is responsible for reviewing the changes? Do you do that all Eran?
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Error/Warning tab feature
Currently, only I have commit access to the SVN repositorycenix wrote:For future reference, is it allowed to do a check in (commit) directly on the tree
For nowcenix wrote:or do new features/changes always be delivered as patched?
Yes, I am the one who review the patches and approves/reject them and since I am the only one who commits to CodeLite, then I will be the one who will eventually apply themcenix wrote:Who is responsible for reviewing the changes? Do you do that all Eran?
Eran
Make sure you have read the HOW TO POST thread
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Error/Warning tab feature
The patch seems to be broken, also the png file is missing
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 20
- Joined: Wed Sep 24, 2008 9:49 pm
Re: Error/Warning tab feature
Hmm.. I have manually edited the patch since it included some changes that I made, which are not ready to be delivered (fixes some warnings in cpp_lexer I think).
I haven't added a png file, I only referred to one (not sure which at the moment since I'm at work, so I can't check, but its a yellow triangle with an exclamation point in it), so don't know why it is missing,
but maybe I have some time tonight to check it out.
I haven't added a png file, I only referred to one (not sure which at the moment since I'm at work, so I can't check, but its a yellow triangle with an exclamation point in it), so don't know why it is missing,
but maybe I have some time tonight to check it out.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Error/Warning tab feature
Dont bother fixing those warnings, since this file is auto-generated by the yacc file so your changes probably get lost...cenix wrote:(fixes some warnings in cpp_lexer I think)
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 20
- Joined: Wed Sep 24, 2008 9:49 pm
Re: Error/Warning tab feature
Ok, take 2.
The png referred to is the project_conflict icon (also used in the subversion plugin) and is used as wxXmlResource::Get()->LoadBitmap(wxT("project_conflict")), so I do not understand why it is a problem. Further, maybe you want to use another icon for this, but I guess its ok.
Further, I have created the diff with LiteEditor as root, so when applying this patch, make sure you have LiteEditor selected.
I hope it now will work.
The png referred to is the project_conflict icon (also used in the subversion plugin) and is used as wxXmlResource::Get()->LoadBitmap(wxT("project_conflict")), so I do not understand why it is a problem. Further, maybe you want to use another icon for this, but I guess its ok.
Further, I have created the diff with LiteEditor as root, so when applying this patch, make sure you have LiteEditor selected.
I hope it now will work.
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Error/Warning tab feature
Hi,
I applied this patch, some comments:
1) try to build the code on other OSs (like Windows) if you have access, since the code you provided does not compile (apprantly ERROR & WARNING are already defined by Windows include files)
2) try to update the repository since it was not generated using latest SVN (You probably did updated, but just in case you did not)
besides that, looking good (I will probably going to do some face lift to the UI...)
Eran
I applied this patch, some comments:
1) try to build the code on other OSs (like Windows) if you have access, since the code you provided does not compile (apprantly ERROR & WARNING are already defined by Windows include files)
2) try to update the repository since it was not generated using latest SVN (You probably did updated, but just in case you did not)
besides that, looking good (I will probably going to do some face lift to the UI...)
Eran
Make sure you have read the HOW TO POST thread
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Error/Warning tab feature
Patch applied:
- I changed the toggle buttons to be 'check box' instead - since I am pretty sure it will not look good on Mac ....
Committed revision 2442.
Eran
- I changed the toggle buttons to be 'check box' instead - since I am pretty sure it will not look good on Mac ....
Committed revision 2442.
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 69
- Joined: Fri Oct 24, 2008 10:29 pm
- Contact:
Re: Error/Warning tab feature
This code in ErrorTab seems like it does nothing useful:
Sort of like saying "x = x".
Should one of those "lineno" be "lineno-1" or "lineno+1"?
Code: Select all
//set this line with the previous project
std::map<int, LineInfo>::iterator iter = m_lineInfo.find(lineno);
if (iter != m_lineInfo.end()) {
m_lineInfo[lineno] = iter->second;
}
Should one of those "lineno" be "lineno-1" or "lineno+1"?
-
- CodeLite Enthusiast
- Posts: 20
- Joined: Wed Sep 24, 2008 9:49 pm
Re: Error/Warning tab feature
Correct, but if you scroll up a couple of lines (to line 213), you see that that is done.
This, because I use lineno a couple of times, so calculating a new lineno is only done once.
This, because I use lineno a couple of times, so calculating a new lineno is only done once.