-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infoview stalls with message "Waiting for Lean server to start..." #122
Comments
Follow up: I have figured out that the bug I'm experiencing was introduced in vscode-lean4 v0.0.64. I have confirmed that v0.0.60, v0.0.61, v0.0.62, and v0.0.63 all work successfully. I think that the specific commit at fault here is fa2b871a7ca2a1c6b05655cfe07aed243a8cb1ff . Perhaps the
where "lean" is linked to the |
I also hit this yesterday, and my understanding of this is that if the extension can't find a workspace root (so a I think part of the underlying problem here is that there's a couple of places where the the workspace/folder URI is annotated as non-null, but passed a null/undefined value. Unfortunately TS doesn't detect this unless it's in strict mode - it's possibly worth turning this on across the project, though not quite sure how much work that'd be. |
Aha! Creating a Weirdly, I have to restart the language server once per open Lean source file in order to get its symbol outline, but that's a comparatively minor, probably unrelated glitch in the extension. Thanks for the tip! I will leave this issue open for now, in case the maintainers want to investigate this behavior further (with which I am glad to help). If they don't, then I'm content to close the matter with this straightforward workaround. |
This bug was also discussed on Zulip: https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/VSCode.20.22Waiting.20for.20lean.20server.20to.20start.2E.2E.2E.22/near/271659253 |
Can you try again with 0.0.67? |
Yes, that's a good idea. I believe we already enable strict mode for most of the extension (such as the infoview); but for some reason not for the main extension. |
Fixed more related bits with opening adhoc files in #127 |
Sorry to not write back sooner -- have been terribly sick the last few days. I just wanted to confirm that v0.0.67 does indeed resolve this problem on my end. Thanks a bunch! |
Sorry to hear that Nathaniel, I hope you get to feeling better soon. Please try version |
Just confirmed that v0.0.68 also maintains the fixed behavior. Thanks again! |
Great, thanks for confirming. Can you post the output of |
Certainly:
The |
ok, great, thanks. |
Hello!
I've been following the Lean 4 development on my arm64 macOS system for some time now without much trouble by locally compiling both elan and lean4, and until just recently, everything has worked swimmingly. Unfortunately, I have hit a wall trying to diagnose what has broken recently, causing the infoview to stall indefinitely with the message "Waiting for Lean server to start...". The VSCode output log reports nothing except my toolchain versions:
elan 1.3.2-pre (2ab7218e1 2022-02-04)
andLean (version 4.0.0, commit 0649e5fa8ac7, Release)
.Any guidance or advice on how I can debug this problem would be greatly appreciated!
Edit:
I'm attempting to follow the instructions for local development+debugging of vscode-lean4 itself, and I saw a potentially interesting line in the debug console:
### error opening document: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) [vscode-lean4/src/utils/clientProvider.ts:140]
. When I comment out the exception handler, the debug console shows the full stack trace attached here: console.log.The text was updated successfully, but these errors were encountered: