Zulip Chat Archive

Stream: new members

Topic: peek definition sometimes fails in VS code


Arthur Paulino (Dec 14 2021 at 20:16):

Greg Leo said:

In VS code, sometimes my ability to peek at definitions just goes away. Is this a known bug?

I think it deserves a thread of its own, but I'm going to say something related:
In Lean 3 I remember being able to ctrl+click on imports and it would take me to the respective modules. But I'm not able to do it in Lean 4 anymore :sad:
(can a mod split this thread in two please? :pray: )

Julian Berman (Dec 14 2021 at 21:39):

In Lean4, are the cases it doesn't work for you stdlib modules perchance?

Julian Berman (Dec 14 2021 at 21:40):

Er, core modules I suppose I mean.

Arthur Paulino (Dec 14 2021 at 21:49):

It doesn't work for any import right now (modules inside the package nor from core (Prelude.lean for instance))

Stuart Presnell (Dec 16 2021 at 09:15):

Greg Leo said:

In VS code, sometimes my ability to peek at definitions just goes away. Is this a known bug?

Is there any pattern to when this is happening? In particular, is this happening when you have an error in your code? Or when the orange progress bar hasn't made (enough) progress yet?


Last updated: Dec 20 2023 at 11:08 UTC