Zulip Chat Archive

Stream: general

Topic: a code suggestion bug


fonqL (Jun 14 2024 at 07:49):

lean version: 4.9.0-rc1
mwe:

def aaaaa := 1

#eval ([1,2,3].map λ c => a).length

LSP only suggests symbols in the namespace of List.

actual behavior

Marc Huisinga (Jun 14 2024 at 07:58):

I can reproduce this. Could you create a GitHub issue for it?

fonqL (Jun 14 2024 at 08:24):

Yes.
issues#4455

Marc Huisinga (Jun 14 2024 at 08:26):

Thanks!

fonqL (Jun 14 2024 at 08:30):

wait, a little embarrassed, what repo should I report to, lean4 or vscode-lean4 repo? :sweat_smile:

Marc Huisinga (Jun 14 2024 at 08:31):

The lean4 repository is correct here :-)

The completions are computed by the language server, which lives in the lean4 repository. vscode-lean4 is (for the most part) only the UI.


Last updated: May 02 2025 at 03:31 UTC