File: .lake/packages/lean4/src/lean/Lean/Server/FileWorker/SetupFile.lean

full_name: Lean.Server.FileWorker.LakeSetupFileOutput.exitCode
code: structure LakeSetupFileOutput where
    spawnArgs : Process.SpawnArgs
    exitCode  : UInt32
    stdout    : String
    stderr    : String
goal: UInt32

full_name: Lean.Server.FileWorker.LakeSetupFileOutput.stdout
code: structure LakeSetupFileOutput where
    spawnArgs : Process.SpawnArgs
    exitCode  : UInt32
    stdout    : String
    stderr    : String
goal: String

full_name: Lean.Server.FileWorker.LakeSetupFileOutput.spawnArgs
code: structure LakeSetupFileOutput where
    spawnArgs : Process.SpawnArgs
    exitCode  : UInt32
    stdout    : String
    stderr    : String
goal: IO.Process.SpawnArgs

full_name: Lean.Server.FileWorker.LakeSetupFileOutput.stderr
code: structure LakeSetupFileOutput where
    spawnArgs : Process.SpawnArgs
    exitCode  : UInt32
    stdout    : String
    stderr    : String
goal: String

full_name: Lean.Server.FileWorker.LakeSetupFileOutput
code: structure LakeSetupFileOutput where
    spawnArgs : Process.SpawnArgs
    exitCode  : UInt32
    stdout    : String
    stderr    : String
goal: Type

full_name: Lean.Server.FileWorker.runLakeSetupFile
code: partial def runLakeSetupFile
    (m                 : DocumentMeta)
    (lakePath filePath : System.FilePath)
    (imports           : Array Import)
    (handleStderr      : String → IO Unit)
    : IO LakeSetupFileOutput 
goal: IO Lean.Server.FileWorker.LakeSetupFileOutput

full_name: Lean.Server.FileWorker.runLakeSetupFile.processStderr
code: partial def runLakeSetupFile
    (m                 : DocumentMeta)
    (lakePath filePath : System.FilePath)
    (imports           : Array Import)
    (handleStderr      : String → IO Unit)
    : IO LakeSetupFileOutput 
goal: IO String

full_name: Lean.Server.FileWorker.FileSetupResultKind.noLakefile
code: /-- Categorizes possible outcomes of running `lake setup-file`. -/
inductive FileSetupResultKind where
  /-- File configuration loaded and dependencies updated successfully. -/
  | success
  /-- No Lake project found, no setup was done. -/
  | noLakefile
  /-- Imports must be rebuilt but `--no-build` was specified. -/
  | importsOutOfDate
  /-- Other error during Lake invocation. -/
  | error (msg : String)
goal: Lean.Server.FileWorker.FileSetupResultKind

full_name: Lean.Server.FileWorker.FileSetupResultKind.importsOutOfDate
code: /-- Categorizes possible outcomes of running `lake setup-file`. -/
inductive FileSetupResultKind where
  /-- File configuration loaded and dependencies updated successfully. -/
  | success
  /-- No Lake project found, no setup was done. -/
  | noLakefile
  /-- Imports must be rebuilt but `--no-build` was specified. -/
  | importsOutOfDate
  /-- Other error during Lake invocation. -/
  | error (msg : String)
goal: Lean.Server.FileWorker.FileSetupResultKind

full_name: Lean.Server.FileWorker.FileSetupResultKind.error
code: /-- Categorizes possible outcomes of running `lake setup-file`. -/
inductive FileSetupResultKind where
  /-- File configuration loaded and dependencies updated successfully. -/
  | success
  /-- No Lake project found, no setup was done. -/
  | noLakefile
  /-- Imports must be rebuilt but `--no-build` was specified. -/
  | importsOutOfDate
  /-- Other error during Lake invocation. -/
  | error (msg : String)
goal: Lean.Server.FileWorker.FileSetupResultKind

full_name: Lean.Server.FileWorker.FileSetupResultKind.success
code: /-- Categorizes possible outcomes of running `lake setup-file`. -/
inductive FileSetupResultKind where
  /-- File configuration loaded and dependencies updated successfully. -/
  | success
  /-- No Lake project found, no setup was done. -/
  | noLakefile
  /-- Imports must be rebuilt but `--no-build` was specified. -/
  | importsOutOfDate
  /-- Other error during Lake invocation. -/
  | error (msg : String)
goal: Lean.Server.FileWorker.FileSetupResultKind

full_name: Lean.Server.FileWorker.FileSetupResultKind
code: /-- Categorizes possible outcomes of running `lake setup-file`. -/
inductive FileSetupResultKind where
  /-- File configuration loaded and dependencies updated successfully. -/
  | success
  /-- No Lake project found, no setup was done. -/
  | noLakefile
  /-- Imports must be rebuilt but `--no-build` was specified. -/
  | importsOutOfDate
  /-- Other error during Lake invocation. -/
  | error (msg : String)
goal: Type

full_name: Lean.Server.FileWorker.FileSetupResult
code: /-- Result of running `lake setup-file`. -/
structure FileSetupResult where
  /-- Kind of outcome. -/
  kind          : FileSetupResultKind
  /-- Search path from successful setup, or else empty. -/
  srcSearchPath : SearchPath
  /-- Additional options from successful setup, or else empty. -/
  fileOptions   : Options
goal: Type

full_name: Lean.Server.FileWorker.FileSetupResult.srcSearchPath
code: /-- Result of running `lake setup-file`. -/
structure FileSetupResult where
  /-- Kind of outcome. -/
  kind          : FileSetupResultKind
  /-- Search path from successful setup, or else empty. -/
  srcSearchPath : SearchPath
  /-- Additional options from successful setup, or else empty. -/
  fileOptions   : Options
goal: Lean.SearchPath

full_name: Lean.Server.FileWorker.FileSetupResult.fileOptions
code: /-- Result of running `lake setup-file`. -/
structure FileSetupResult where
  /-- Kind of outcome. -/
  kind          : FileSetupResultKind
  /-- Search path from successful setup, or else empty. -/
  srcSearchPath : SearchPath
  /-- Additional options from successful setup, or else empty. -/
  fileOptions   : Options
goal: Lean.Options

full_name: Lean.Server.FileWorker.FileSetupResult.kind
code: /-- Result of running `lake setup-file`. -/
structure FileSetupResult where
  /-- Kind of outcome. -/
  kind          : FileSetupResultKind
  /-- Search path from successful setup, or else empty. -/
  srcSearchPath : SearchPath
  /-- Additional options from successful setup, or else empty. -/
  fileOptions   : Options
goal: Lean.Server.FileWorker.FileSetupResultKind

full_name: Lean.Server.FileWorker.FileSetupResult.ofSuccess
code: def FileSetupResult.ofSuccess (pkgSearchPath : SearchPath) (fileOptions : Options)
    : IO FileSetupResult 
goal: IO Lean.Server.FileWorker.FileSetupResult

full_name: Lean.Server.FileWorker.FileSetupResult.ofNoLakefile
code: def FileSetupResult.ofNoLakefile : IO FileSetupResult 
goal: IO Lean.Server.FileWorker.FileSetupResult

full_name: Lean.Server.FileWorker.FileSetupResult.ofImportsOutOfDate
code: def FileSetupResult.ofImportsOutOfDate : IO FileSetupResult 
goal: IO Lean.Server.FileWorker.FileSetupResult

full_name: Lean.Server.FileWorker.FileSetupResult.ofError
code: def FileSetupResult.ofError (msg : String) : IO FileSetupResult 
goal: IO Lean.Server.FileWorker.FileSetupResult

full_name: Lean.Server.FileWorker.setupFile
code: /-- 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. -/
partial def setupFile (m : DocumentMeta) (imports : Array Import) (handleStderr : String → IO Unit) : IO FileSetupResult 
goal: IO Lean.Server.FileWorker.FileSetupResult