only print stderr
This commit is contained in:
parent
81818e3319
commit
304c9bec2f
@ -102,7 +102,7 @@ const Server = struct {
|
|||||||
fn shutdown(self: *Server) void {
|
fn shutdown(self: *Server) void {
|
||||||
// FIXME this shutdown request fails with a broken pipe on stdin on the CI
|
// FIXME this shutdown request fails with a broken pipe on stdin on the CI
|
||||||
self.request("shutdown", "{}", null) catch @panic("Could not send shutdown request");
|
self.request("shutdown", "{}", null) catch @panic("Could not send shutdown request");
|
||||||
waitNoError(self.process) catch @panic("Server error");
|
// waitNoError(self.process) catch @panic("Server error");
|
||||||
self.process.deinit();
|
self.process.deinit();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -110,7 +110,7 @@ const Server = struct {
|
|||||||
fn startZls() !*std.ChildProcess {
|
fn startZls() !*std.ChildProcess {
|
||||||
var process = try std.ChildProcess.init(&[_][]const u8{"zig-out/bin/zls" ++ suffix}, allocator);
|
var process = try std.ChildProcess.init(&[_][]const u8{"zig-out/bin/zls" ++ suffix}, allocator);
|
||||||
process.stdin_behavior = .Pipe;
|
process.stdin_behavior = .Pipe;
|
||||||
process.stdout_behavior = .Inherit;
|
process.stdout_behavior = .Pipe;
|
||||||
process.stderr_behavior = .Inherit; //std.ChildProcess.StdIo.Inherit;
|
process.stderr_behavior = .Inherit; //std.ChildProcess.StdIo.Inherit;
|
||||||
|
|
||||||
process.spawn() catch |err| {
|
process.spawn() catch |err| {
|
||||||
|
Loading…
Reference in New Issue
Block a user