python-lsp / python-lsp-server

Fork of the python-language-server project, maintained by the Spyder IDE team and the community
MIT License
1.96k stars 194 forks source link

cannot get autocompletion list for some cases when used in CudaText plugin #214

Closed Alexey-T closed 2 years ago

Alexey-T commented 2 years ago

Ubuntu 20 x64, Py 3.8

def is_ed_visible(ed):
    gr_ed = ct.ed_group(ed.get_prop(ct.PROP_INDEX_GROUP)) ##### here
    return ed == gr_ed

But it gets completions after "ct."

Alexey-T commented 2 years ago

@veksha maybe you're interested. does it work for you on Windows?

veksha commented 2 years ago

perhaps because ed parameter type can be known only at runtime? i'm not an expert with python.

I get completions with ct.ed.

veksha commented 2 years ago

@Alexey-T, try changing to:

def is_ed_visible(ed: ct.Editor):
Alexey-T commented 2 years ago

Ok, I don't want to bother dev's; closing.