https://bugs.kde.org/show_bug.cgi?id=483363

--- Comment #4 from rjx_ <7c6s4b+cc6efdty3b...@sharklasers.com> ---
Created attachment 167668
  --> https://bugs.kde.org/attachment.cgi?id=167668&action=edit
a test python script

Hello, sorry for the late answer, but right now the behavior of replace is
pretty weird on my end so i were not sure what to report.

In kate 24.02.1 + Qt 6.6.2 at first i could not easily reproduce the crash, but
after playing around with LSP replace some more i noticed the following
bugs/inconsistencies:
    * A crash *can* be reproduced, but under some very specific circumstances
(it's honestly finicky to reproduce hence such silly specificity):
       - in attached python script, select/double click "street", then try to
replace it with anything (i tried alphanumeric gibberish), then it will crash -
unreliably so, you might need to try a few times or input different words,
however.
       - Another(?) one - is when you select "kwargs.get" and try to replace it
with some nonsense, like "darks".
        Might need a few tries too, but usually it's instant.
    * sometimes replacing "kwargs.get" with gibberish unexpectedly opens other
scripts (in the path? loaded by LSP? not sure, this is weird. one example of
such file is
"/usr/lib/python3.11/site-packages/jedi/third_party/typeshed/stdlib/3/typing.pyi")
and replaces some *different* keywords with said gibberish in them... i really
don't get this behavior.

Some of those are apparently quirks of LSP plugin/handling, for example it
weren't clear for me initially that "Replace (F2)" is not a generic replace,
and that it only works for active, non commented code (not even for the content
of strings, for example).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to