How to reproduce the issue:
Potential ENHANCEMENT:
Move to the 'Search results' tab to see that there are zero results in the log or
Open an alert window saying 'Not found' (with or without changing tabs)
NOTE: If 'Delete previous search results' is checked in the Find window, a search with zero results raises a pop-up window "Not found: <string>" (without activating the 'Search results' tab. ... which is OK, of course.
Thanks,
J. - Win10 | nightly build July 4, 2017 | svn 11112
On my test, (You are testing the Find in Files feature) I have a message box shown up, see the attachments. So, this satisfy your request:
Umm, could you please confirm that you did uncheck 'Delete previous search results' in your test search dialog? If checked then the result like yours is as desired and the same here.
Hi, Jannick, thanks for the reply. Yes, I forget to "uncheck" the 'Delete previous search results' option in my test, so I have the exact behaviour as your describe.
The solution is either switch the tab. Or show a simple messagebox saying nothing found(like the 'Delete previous search results' option is checed).
Thanks, I will mark this ticket as a bug.
Hi - great! So we are on the same page. Many thanks again.
Fixed in [r12821]
i have reworked the display logic a bit and removed the use of messages boxes if the log panel is visible. I find message boxes annoying...
Related
Commit: [r12821]
Platform x86_64 Gentoo using kernel 5.15.41
GCC 11.2.1 (patch 20220115 gentoo p4)
Building trunk at this revision produced the following error message in build log:
trunk revision 12821 was made about dozen hours ago and explains why this error is being encountered only recently.
Same failure here 2 minutes ago on a Windows build using the bootstrap/configure/make.
If I build via Windows workspace then it builds okay.
Last edit: Andrew Cottrell 2022-05-29
A quick hack to get me back building and updating was to modify src\include\loggers.h , line 16 from :
class wxListCtrl;
to:
#include <wx/listctrl.h>
I only tested this on Windows using the boostrap/configure.make process, so it may not work on Linux or MacOS or via a workspace etc etc.
The fix changing a forward declaration to a header include works for me on a Linux. Build completes with error.
Thank you for reporting.
i fixed it in the last commit.
Interestingly this does not happen for me nighter in windows nor on linux build
One thing that occurred to after reporting was whether revision of wxWidgets would affect header usage. I have 3.0.5 installed.
@bluehazzard : If I have the log view visible and do a "Find in files", then I get a message box ("xxx found in n files. To show results open Log view"). When clicking OK, the Search results tab is shown.
I expected no message box in this case, Log view is already open.
I have "Auto show/hide message pane" disabled.
Thank you for reporting.
Well the problem is, we do not have an api to know if the log pane is open or not. And when we are not allowed to open it, we can only assume what is going on.
Adding an api for this is also interesting...
Where should we add it? Probably in the MainFrame class and add an accessor in the wxApp class? The Log manager is the wrong place because it contains only non gui code...
suggestions?
At least within main.cpp you can use
m_LayoutManager.GetPane(m_pInfoPane).IsShown()
The message box is misleading, it says "xxx found in n files", but n is not the number of files.
I think the text should be similar to "Found n instances of xxx".
fixed in [r12831]
Related
Commit: [r12831]