Documentation

Lean.Server.FileWorker.SetupFile

def Lean.Server.FileWorker.runLakeSetupFile (m : DocumentMeta) (lakePath filePath : System.FilePath) (imports : Array Import) (handleStderr : StringIO Unit) :
Equations
  • One or more equations did not get rendered due to their size.
partial def Lean.Server.FileWorker.runLakeSetupFile.processStderr (lakePath : System.FilePath) (handleStderr : StringIO Unit) (args : Array String) (lakeProc : IO.Process.Child { stdin := IO.Process.Stdio.null, stdout := IO.Process.Stdio.piped, stderr := IO.Process.Stdio.piped, cmd := lakePath.toString, args := args, cwd := none, env := #[], setsid := false }.toStdioConfig) (acc : String) :

Categorizes possible outcomes of running lake setup-file.

Result of running lake setup-file.

  • Kind of outcome.

  • srcSearchPath : SearchPath

    Search path from successful setup, or else empty.

  • fileOptions : Options

    Additional options from successful setup, or else empty.

Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.

Uses lake setup-file to compile dependencies on the fly and add them to LEAN_PATH. Compilation progress is reported to handleStderr. Returns the search path for source files and the options for the file.