LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

Incorrect possible method call error with LibPQ.jl

Open iamed2 opened this issue 3 years ago • 0 comments

LibPQ.jl contains this code:

        type_lookup = LayerDict(
            PQTypeMap(type_map), jl_conn.type_map, LIBPQ_TYPE_MAP, _DEFAULT_TYPE_MAP
        )

        func_lookup = LayerDict(
            PQConversions(conversions),
            jl_conn.func_map,
            LIBPQ_CONVERSIONS,
            _DEFAULT_CONVERSIONS,
            _FALLBACK_CONVERSION,
        )

Both of these generate "Possible method call error", but those calls map straightforwardly to this method in LayerDicts: https://github.com/invenia/LayerDicts.jl/blob/fb278a2998b71b0e17c8c223028e265e113108aa/src/LayerDicts.jl#L31

In the first case, all types there are inferrable to PGTypeMap <: AbstractDict.

I was using Sublime Text 4 and LSP-julia with Julia 1.7, installed today.

iamed2 avatar Feb 08 '22 19:02 iamed2