Skip to content

Commit

Permalink
Try fix windows crash
Browse files Browse the repository at this point in the history
  • Loading branch information
koliyo committed Nov 3, 2023
1 parent d32432d commit 4e869c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/hylo-lsp-server/hylo-lsp-server-cli.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ struct HyloLspCommand: AsyncParsableCommand {

func run() async throws {

#if !os(Windows)
// Force line buffering
setvbuf(stdout, nil, _IOLBF, 0)
setvbuf(stderr, nil, _IOLBF, 0)
#endif

let logFileURL = URL(fileURLWithPath: logFile)
// let fileLogger = try FileLogging(to: logFileURL)
Expand Down

0 comments on commit 4e869c7

Please sign in to comment.