Zulip Chat Archive
Stream: lean4
Topic: Error starting lean language client
Martin Gilchrist (Dec 19 2023 at 19:35):
Hi - I am learning Lean by following the Mathematics in Lean book tutorial. Unfortunately, I have run into a problem very early on! My basic environment is Windows 10 and Visual Studio Code 1.85 (see below for details). I have checked out the MathLib tutorial and clicked into S01_Getting_Started.lean. In the Lean Infoview, I can see the message Waiting for Lean server to start...
VS Code also displays Starting Lean language client, but this message never goes away. I selected the Manage Extension window, and under RUNTIME STATUS, I see this message (displayed twice): Header must provide a Content-Length property.
Does anyone know what the problem is, and how I can get past this problem? Thanks for any help, Martin
Version: 1.85.1 (system setup)
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:49:37.021Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
Patrick Massot (Dec 19 2023 at 19:45):
Are you sure you opened the correct folder in VSCode? Could you share a screenshot of your VSCode with the file explorer panel opened?
Martin Gilchrist (Dec 19 2023 at 22:29):
Hi, here's a screenshot:
image.png
Patrick Massot (Dec 19 2023 at 22:34):
It looks like you opened the correct folder. So there is really something uncommon going on.
Eric Wieser (Dec 19 2023 at 22:35):
This could be overzealous antivirus being a lossy MitM
Martin Gilchrist (Dec 20 2023 at 02:00):
Hi - I have disabled all anti-virus protection and network protection (that I know of) on this machine, and still see the same problem. I wouldn't claim to know either VS Code or Lean well, but do you which log files I should be looking at next to see if there is a more useful error message? Do you think that this is likely to be a VS Code problem or a Lean problem?
Scott Morrison (Dec 20 2023 at 02:27):
We may need to summon @Marc Huisinga here, as the principal VSCode extension expert! :-)
Marc Huisinga (Dec 20 2023 at 10:14):
@Martin Gilchrist When encountering this error, could you click on the ∀ button in the top right and then "Troubleshooting: Show Output"?
Last updated: Dec 20 2023 at 11:08 UTC