-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search feature not working #2469
Comments
Hi @A-ri-eL , did this happen also with v1.1.0 or you didn't try that? |
Yep, the same erroneous behavior: But I also checked that on cherrytree_1.0.4-2~Debian12_amd64.deb and there is no such bug, the results are just fine. The only tricky things are that some matches are ignored when they are next to each other (i.e. On the same [long] line) and the offsets for the listed results are not updated when any change is made, misleading further result highlights on the current list dialog box... But if I'm not mistaken that tricky things were fixed on the most recent versions. Thanks for your return. ^--^ |
@A-ri-eL would it be possible to share a test document with data that reproduces the issue and indicating what to search for? Also privately to my email that you can find in help--abou dialog |
I sent a sample to you. Thanks ^--^! |
Got it thanks @A-ri-eL I will come back with a fix by tomorrow |
I see it. It is happening only with more recent GTK3 library versions. For example if you run the AppImage in your Debian 12, the issue is not happening (The AppImage is built with Debian 11 libraries). Tomorrow anyway I'll try and sort it out. |
@A-ri-eL I think I sorted it out, could you please test https://www.giuspen.net/software/cherrytree_1.1.1-2+4~Debian12_amd64.deb and report if it now works as expected? |
That first case is ok now, but I guess there is an inner bug in the RegExp engine 🤔, because when I use a more complex RegExp (i.e. |
The previous bug was characterised by a GTK / Glib error printed to the terminal. |
No, unfortunately no error is printed on the terminal.
Interestingly, that regexp |
Sorry @A-ri-eL my misunderstanding, I thought that the regexp was not finding the result but the problem here is different, cherrytree hangs indefinitely trying that regexp on the document that you shared with me, and that is certainly a bug, I will get back with another version for you to try. |
My search works strangely — I enter the word that needs to be found, click search and the results window does not appear at all. Then I click Search --> Matches and voila — here it is the search results window. |
I'm going to Link here a test version shortly, I will ask you to verify that it works as expected there |
@A-ri-eL could you please test https://www.giuspen.net/software/cherrytree_1.1.1-2+6~Debian12_amd64.deb and report if it now works as expected? |
@giuspen now the app is matching all that is specified; but sometimes it is also listing some nonexisting matches on the same line; usually for the last occurrence. I'll send a sample to you. |
@A-ri-eL many thanks for your patience and quality reports on this issue, could you please test https://www.giuspen.net/software/cherrytree_1.1.1-2+8~Debian12_amd64.deb and report if it now works as expected? |
@giuspen, now the app is hanging on another RegExp pattern. I'll send a sample to you. On cherrytree_1.0.4-2~Debian12_amd64.deb it works just fine. EDIT: I missed to mention that the issue about listing some nonexisting matches is ok now 👍 . |
I am also having (more or less) this problem. If I run it from a terminal, I get an error like: Most worryingly, once the error has happened (and I think if there is an image embedded in the node), the save button no longer becomes enabled after a change, and I cannot save my work. Perhaps this should be a separate issue report (and for all I know it is), but the user should still have the ability to manually force it to save, whether it thinks it needs it or not. I have downloaded the portable test version Hope this helps. |
@A-ri-eL thanks again for your patience and quality reports on this issue, could you please test https://www.giuspen.net/software/cherrytree_1.1.1-2+10~Debian12_amd64.deb and report if it now works as expected? |
@giuspen, the app is not freezing anymore, but the bug about listing some nonexisting matches is back. It can also be verified on the most recent file that I sent to you; i.e. trying |
Tested with: cherrytree_1.1.1.0+10_win64_portable |
@jonathonmckay could you send me some data to reproduce the issue and indicate what to search for? My email is in the help--about dialog |
@giuspen, I very much wish I could. However, I use CherryTree for various notes at work, and due to where I work and the sorts of things I have notes on, I absolutely cannot send you a copy. Interestingly, the word searched for matters: |
I have made an observation: If I start CherryTree from a terminal to see the error message, right before the error during a search will be debug messages like this:
If I look at the last number of the last line (sometimes there are several), this seems to point to the node that this causing the problem. In this case "536". I have tested this several times with words I know to break the search (like "access" and "excel" as noted above), and I have noticed that the word I was searching for when the search broke is in the node's Name. For example, when searching for "access", the number given in the message was 536, which if I find node 536 is called "ACL (Access Control List) Permissions". I have tested this with a few different words. |
@jonathonmckay could you please test https://www.giuspen.net/software/cherrytree_1.1.1.0+16_win64_portable.7z ? |
I have tested 1.1.1.0+16 on Windows 10. |
Thanks @jonathonmckay ! |
Fixed in v1.1.2 |
Just installed 1.1.2 on Windows10. Search seems to be working OK! Thank you for the quick fix! |
Hi, all! ^-^
System :
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
$ kded5 --version
kded5 5.103.0
~$ cherrytree --version
CherryTree 1.1.1
The BUG: The search is not working as expected with or without RegExp enabled. A strange thing I noticed is that when I search for "drivedb.h" nothing (No search process even takes place) is returned, but for "drivedb" I get expected result.
When doing that in multiple nodes, the search process gets stuck, but the search process goes on and on endlessly even when I interrupt it via the red "x" button. The App closes with no crash dump.
The text was updated successfully, but these errors were encountered: