List of functions in Python script being edited in Kate?

Tony Dunn tonydunn at protonmail.com
Tue Jul 13 22:06:50 BST 2021


I've never managed to get a LSP for any language working with Kate, and would welcome someone with a working config for (say) Python sharing that for instructional purposes.

I got pyls and everything else from pypi and did pip3 install 'python-language-server[all]' so the whole collection of flake8, pycodestyle etc were installed, but the docs are a bit too vague (for me) to extract what needs to be done with the LSP config so Kate can connect and take advantage of what the LSP can do.

Thanks

Tony

Sent with [ProtonMail](https://protonmail.com/) Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, July 12th, 2021 at 21:44, SecretCode <secretcode343 at gmail.com> wrote:

> Thank you! Symbol Viewer does a great job - classes, method and global functions are all recognised and can be navigated to.
>
> This is all I need, but it sounds like LSP could offer more - however, I get a (repeated) warning flashing up:
> LSP Client: Server terminated unexpectedly: python3 -m pyls --check-parent-process
>
> I presume I need to install the pyls module to provide this language server, but I can't work out where to get hold of it.
>
> Joe
>
> On 12/07/2021 19:14, Waqar Ahmed wrote:
>
>> Hi,
>>
>> Yes, there are multiple ways to do that. In settings - plugins, enable "Symbol Viewer".
>>
>> I am not sure if supports python, but if it does you will have symbols listed in a tool view.
>>
>> However, The best way to do this is via "LSP plugin". Set up a python language server, and it will provide you with intelligent auto completion, go to definition and other IDE like features.
>>
>> A third way to do it is via our CTags plugin.
>>
>> On Mon, Jul 12, 2021, 9:54 PM SecretCode <secretcode343 at gmail.com> wrote:
>>
>>> Hi, first post to the list!
>>>
>>> One thing I'd really like to improve my use of Kate as a Python code editor is the ability to list all the functions and/or classes in the current script / module, for example in a tool view panel. As most IDE editors provide!
>>>
>>> I'm sure this capability must exist but I have not been able to find it ... is there such a thing? Possibly as a plugin?
>>>
>>> Thanks - Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20210713/a91510cf/attachment.htm>


More information about the KWrite-Devel mailing list