Skip to content

lsp query caching seems to constantly mixup functions with identical signatures #1071

@Gankra

Description

@Gankra

LSP functionality associated with looking up a function's signature is seemingly cached based on the raw type signature of a function. This affects goto-* on keyword arguments and docstrings for signature_help (notably not docstrings for hovering the function name!).

I'm fairly confident this is specifically a caching bug because the problem never appears in cursor tests, but does appear in an IDE. That is, if you check these queries in a cursor test it works perfectly, but if you try it in an IDE then all functions that share a signature (in a file?) suddenly have conflated info.

Image
def my_func(x, y):
    '''my cool func'''
def my_other_func(x, y):
    '''some other func'''

my_func(x=0, y=1)
my_other_func(x=0, y=1)

https://play.ty.dev/b983c0f4-16cc-45c3-9269-6f96a6165e56

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingserverRelated to the LSP server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions