Setting the Lean executable to leanWithPlugin.sh does not work on Windows due to path conversion problems between VS Code, the Lean server, MSYS2, and leanmake. Opening test\run\ex\ex0.lean in VS Code results in the following error:
`leanpkg print-paths` failed:
stderr:
make: *** No rule to make target 'buildExample.olean'. Stop.
configuring example 0.1
> sh -c "<home>\.elan\toolchains\leanprover--lean4---nightly-2021-09-05\bin/leanmake" PKG=Example LEAN_OPTS="" LEAN_PATH=".\.\build" build\Example.olean MORE_DEPS+="leanpkg.toml" >&2 # in directory .
external command exited with status 2
I am fairly confident that we will have to wait for the next release of vscode-lean4 to land (which includes a setting for providing additional options to the Lean 4 server) before it is possible to make server plugins cross platform.
Setting the Lean executable to
leanWithPlugin.sh
does not work on Windows due to path conversion problems between VS Code, the Lean server, MSYS2, andleanmake
. Openingtest\run\ex\ex0.lean
in VS Code results in the following error:I am fairly confident that we will have to wait for the next release of
vscode-lean4
to land (which includes a setting for providing additional options to the Lean 4 server) before it is possible to make server plugins cross platform.