You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To work on the Lean 4 repository in VSCode, we have to run elan override set to point to an appropriate toolchain.
This allows editing .lean files with server support, and go-to-definition (F12) works within a file.
Depending on which toolchain we use, go-to-definition may or may not work for definitions in imported files.
If we use a nightly, then go-to-definition works, but the .lean files that it jumps to are taken from .elan/toolchains, rather than the local build.
If we use a toolchain pointing to the local build, per the instructions
elan toolchain link lean4 build/release/stage1
elan override set lean4
then go-to-definition does not work at all across files.
The text was updated successfully, but these errors were encountered:
To work on the Lean 4 repository in VSCode, we have to run
elan override set
to point to an appropriate toolchain.This allows editing
.lean
files with server support, and go-to-definition (F12) works within a file.Depending on which toolchain we use, go-to-definition may or may not work for definitions in imported files.
If we use a
nightly
, then go-to-definition works, but the.lean
files that it jumps to are taken from.elan/toolchains
, rather than the local build.If we use a toolchain pointing to the local build, per the instructions
then go-to-definition does not work at all across files.
The text was updated successfully, but these errors were encountered: