commit
71e819c56a
@ -7,7 +7,7 @@ const zls_version = std.builtin.Version{ .major = 0, .minor = 11, .patch = 0 };
|
||||
pub fn build(b: *std.build.Builder) !void {
|
||||
comptime {
|
||||
const current_zig = builtin.zig_version;
|
||||
const min_zig = std.SemanticVersion.parse("0.11.0-dev.2571+31738de28") catch unreachable; // add c_char - https://github.com/ziglang/zig/pull/15263
|
||||
const min_zig = std.SemanticVersion.parse("0.11.0-dev.2730+bd801dc48") catch unreachable; // gpa.deinit() now returns an enum
|
||||
if (current_zig.order(min_zig) == .lt) {
|
||||
@compileError(std.fmt.comptimePrint("Your Zig version v{} does not meet the minimum build requirement of v{}", .{ current_zig, min_zig }));
|
||||
}
|
||||
|
@ -1549,6 +1549,7 @@ pub fn create(
|
||||
message_tracing_enabled: bool,
|
||||
) !*Server {
|
||||
const server = try allocator.create(Server);
|
||||
errdefer server.destroy();
|
||||
server.* = Server{
|
||||
.config = config,
|
||||
.runtime_zig_version = null,
|
||||
|
@ -164,7 +164,7 @@ fn getConfig(
|
||||
) !ConfigWithPath {
|
||||
if (config_path) |path| {
|
||||
if (configuration.loadFromFile(allocator, path)) |config| {
|
||||
return ConfigWithPath{ .config = config, .config_path = path };
|
||||
return ConfigWithPath{ .config = config, .config_path = try allocator.dupe(u8, path) };
|
||||
}
|
||||
std.debug.print(
|
||||
\\Could not open configuration file '{s}'
|
||||
|
Loading…
Reference in New Issue
Block a user