gustavo-hms / peneira

A fuzzy finder crafted for Kakoune
GNU Lesser General Public License v2.1
35 stars 6 forks source link

id error: number-lines #18

Closed sdothum closed 4 months ago

sdothum commented 5 months ago

With kakoune v2024.05.08 peneira fails on "remove-highlighter window/number-lines".

Commenting this line out in peneira.kak appears to solve the problem (for buffer picking). Not sure if this is actually a "good fix" or potentially a problem for other peneira use cases.

gustavo-hms commented 5 months ago

Hi, Steven! Thanks for reporting this bug.

I'm using v2024.05.18 but couldn't reproduce the bug. Nevertheless, I still have a suspect: please check this section on README to see if that can fix your problem. If it doesn't, then please tell me and I'll investigate it further.

sdothum commented 4 months ago

Hello Gustavo,

Thanks for the link. Never thought to reread the project page after having not had any issues with peneira for so long. My apologies.

The first example solved my reported issue (i just had to change my existing highlighter name to "number-lines"). Closing this issue.

Much thanks again.

losnappas commented 1 month ago

I don't use a number-lines highlighter, and I also run into this issue. I can work around it like,

hook global WinCreate .* %{ addhl window/number-lines regex __ 0:default }

but seems a bit strange. I think for my case removing/try-catching it makes sense?

losnappas commented 1 month ago

Removing an "unknown" highlighter became an error here https://github.com/mawww/kakoune/commit/b1c114bf6d950684df0524e450782a151e6a0323 , on April 12 2024.

Wrapping it in try restores the behavior this plugin used to have, so I'll make a pr for that and let you judge from there.