diff --git a/Lode/Lsp.lean b/Lode/Lsp.lean index ce93372..6f8358b 100644 --- a/Lode/Lsp.lean +++ b/Lode/Lsp.lean @@ -475,6 +475,9 @@ private def worker (project : FilePath) (abort : IO.Ref Bool) (timeoutMs : Nat) let _ โ† child.wait -- Killing the group closes both pipes and joins the bounded reader task. let _ โ† IO.wait task + -- Keep the client's write end alive until the exchange is over. Otherwise + -- its last use is the final send and Lean's server shuts down on stdin EOF. + try stdin.flush catch _ => pure () /-- Called only from the authorized Tools dispatcher. No session Env additions. Filesystem/OS errors are deliberately not reflected as raw host paths. -/ diff --git a/Lode/Workspace.lean b/Lode/Workspace.lean index ac7e4c4..85db195 100644 --- a/Lode/Workspace.lean +++ b/Lode/Workspace.lean @@ -441,7 +441,7 @@ def linenRev? (manifest : String) : Option String := do let linen โ† m.packages.find? (ยท.name == `linen) match linen.src with | .git _ rev _ _ => if Validate.commit rev then some rev else none - | .path _ => none + | .path .. => none /-- Seed the project's linen from the package cache (`{cache}/linen/{rev}`, a built linen checkout, as lun's image carries one), when the manifest diff --git a/lake-manifest.json b/lake-manifest.json index 2f5c260..d811b9e 100644 --- a/lake-manifest.json +++ b/lake-manifest.json @@ -1,4 +1,4 @@ -{"version": "1.2.0", +{"version": "1.3.0", "packagesDir": ".lake/packages", "packages": [{"url": "https://github.com/typednotes/lun", @@ -25,10 +25,10 @@ "type": "git", "subDir": null, "scope": "", - "rev": "6152308bef3b31598018f966ede38d21fd20a96b", + "rev": "fde31559683b7f6c04f877b4031ee782307b337a", "name": "linen", "manifestFile": "lake-manifest.json", - "inputRev": "v1.12.0", + "inputRev": "fde31559683b7f6c04f877b4031ee782307b337a", "inherited": false, "configFile": "lakefile.lean"}], "name": "lode", diff --git a/lakefile.lean b/lakefile.lean index df0816e..adba8de 100644 --- a/lakefile.lean +++ b/lakefile.lean @@ -5,7 +5,7 @@ open System Lake DSL -- SHA-256) but none of its pkg-config libraries (no Postgres), so, like -- `lun`, it needs no extra link arguments. -require linen from git "https://github.com/typednotes/linen" @ "v1.12.0" +require linen from git "https://github.com/typednotes/linen" @ "fde31559683b7f6c04f877b4031ee782307b337a" -- For `Liaison.Wire` only: liaison's wire format (`POST /v0/egress`), the -- module liaison's own server parses with. It is pure and imports none of diff --git a/lean-toolchain b/lean-toolchain index 12359f9..00f8483 100644 --- a/lean-toolchain +++ b/lean-toolchain @@ -1 +1 @@ -leanprover/lean4:v4.34.0 +leanprover/lean4:v4.36.0