-
Notifications
You must be signed in to change notification settings - Fork 578
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
Fix for search not working with vte 0.6+ (issue #1752) #1769
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can polish the flag setup for the Vte.Regex.new_for_search()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added raw pcre2 flags. Should use REGEX_FLAGS_DEFAULT instead?
any progress on this? |
Some polish need to applied, |
Need this update! |
Any updates? 16 days. |
It is clear that this PR have mess with the master branch commit history and need to rebase or some what. @AurevoirXavier, you are an Open source contributor, too. IMHO If you want to push something going on, this comment is not the best thing you can do. |
But @dadukhin requested a review from you 16days ago and I can't see any feedback. Your comment:
And I see him push those polish. But didn't get any feedback. I'm not familiar with this project, if you already reviewed this PR and you think something wrong please request a change. So other people could push this. |
Mate, not every one have time on open source stuff when they are busy. Or, if you really need this feature, you can build Guake by yourself. Code is here and it works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow git commit history is mess, please clean it up by git rebase
.
dcb2157
to
e2d8498
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes need to apply, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last with the commit message, please use uppercase Fix
.
Otherwise LGTM, thanks @dadukhin for the contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hi, what is the status about this PR? Seems that travis-ci is broken and doesn't report the status back to github. The search feature doesn't work for me as well (VTE: 0.64.0). It would be very nice to have this feature soon ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
I ran this and it works great, so I'm mostly ready to merge. We've done some updates to fix our CI since this patch was created. so I just need you to do an update and make sure your changes pass CI. I've done some quick rough work in another repo and this commit contains all the changes you'll need to pass our build system so you can just grab that change and amend your commit with it. Once that's done I'll pull this and finally get this issue closed.
guake/boxes.py
Outdated
self.searchre = GLib.Regex(text, 0, 0) | ||
term.search_set_gregex(self.searchre, 0) | ||
|
||
self.searchre = Vte.Regex.new_for_search(text, -1, Vte.REGEX_FLAGS_DEFAULT | PCRE2_MULTILINE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only line that needs to be changed to pass CI, on my branch I changed it to:
self.searchre = Vte.Regex.new_for_search(
text, -1, Vte.REGEX_FLAGS_DEFAULT | PCRE2_MULTILINE
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just went and did it myself.
Summary: This patch just fixes search functionality using this [PR](Guake/guake#1769) from upstream Test Plan: Restart Guake and test search functionality Reviewers: #triage_team, JoshStrobl Reviewed By: #triage_team, JoshStrobl Subscribers: JoshStrobl Differential Revision: https://dev.getsol.us/D10678
Fix for issue: #1752 Search not working anymore after vte libraries update to 0.60. As you can see from: https://lazka.github.io/pgi-docs/Vte-2.91/classes/Terminal.html#Vte.Terminal.search_set_gregex, this function is deprecated: "This function does nothing since version 0.60."