Zulip Chat Archive

Stream: lean4

Topic: 06-07 VSCode Server Bug


Mac Malone (Jun 08 2023 at 05:20):

Attempting to update a project (Lake) from the 06-01 to the 06-07 nightly (on Windows) gives me the following errors when trying to start the server in VSCode:

[Error - 1:17:42 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097
[Error - 1:17:42 AM] Lean 4 client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097

These result in the server crashing and failing to recover regardless of the number of restarts.

Scott Morrison (Jun 08 2023 at 07:38):

Std4 is already on the 06-07 nightly, and seems to open okay in VSCode

Mac Malone (Jun 08 2023 at 07:40):

@Scott Morrison Yeah, I was trying to bring Lake to the same version. I just tested std4 on my machine and it to is broken in VSCode.

Mac Malone (Jun 08 2023 at 07:41):

What version of VSCode are you using Scott? Also did you try opening a Lean file?

Mac Malone (Jun 08 2023 at 07:41):

I am on 1.78.2

Mario Carneiro (Jun 08 2023 at 07:44):

std4 works on my vscode, although I was having issues opening the hover.lean test (could be unrelated)

Mac Malone (Jun 08 2023 at 07:44):

What VSCode / OS version are you using, Mario?

Mario Carneiro (Jun 08 2023 at 07:45):

$ code --version
1.78.2
b3e4e68a0bc097f0ae7907b217c1119af9e03435
x64

OS is Ubuntu 22.04

Mac Malone (Jun 08 2023 at 07:46):

Okay, same VSCode version as me but not Windows.

Mario Carneiro (Jun 08 2023 at 07:46):

vscode-lean4 v0.0.103

Mac Malone (Jun 08 2023 at 07:47):

I am on 64-bit Windows 10 22H2, VSCode 1.78.2, and vscode-lean4 v0.0.103

Scott Morrison (Jun 08 2023 at 08:01):

% code --version
1.78.2
b3e4e68a0bc097f0ae7907b217c1119af9e03435
x64

Scott Morrison (Jun 08 2023 at 08:01):

on macos

Scott Morrison (Jun 08 2023 at 08:02):

I guess we need to ask for another Windows tester.

Scott Morrison (Jun 08 2023 at 08:03):

!4#4847 is an attempted bump of mathlib4 to 06-07, it is also fine in VSCode.

Marc Huisinga (Jun 08 2023 at 08:50):

Scott Morrison said:

I guess we need to ask for another Windows tester.

I created a new Lean 4 project on windows with lean4:nightly-2023-06-07 and the Main.lean that is generated by default loads fine. Same Windows 10 version, VSC and vscode-lean4 as @Mac.

Marc Huisinga (Jun 08 2023 at 08:55):

... Having built std4 now for a less trivial test, it loads fine as well.

Mac Malone (Jun 08 2023 at 09:30):

@Marc Huisinga Well that makes this confusing.

Marc Huisinga (Jun 08 2023 at 09:31):

I am sure some form of state is to blame :grinning_face_with_smiling_eyes:


Last updated: Dec 20 2023 at 11:08 UTC