From 2aee9476fd89da075409dc82f3a7693adbd2bc3e Mon Sep 17 00:00:00 2001 From: Iisakki Rotko Date: Tue, 7 Apr 2026 22:17:09 +0200 Subject: [PATCH 1/3] fix: EnumSet initFull/Empty are deprecated --- src/Server.zig | 2 +- src/analysis.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Server.zig b/src/Server.zig index 3bdb365fc..80e1366ec 100644 --- a/src/Server.zig +++ b/src/Server.zig @@ -1535,7 +1535,7 @@ fn codeActionHandler(server: *Server, arena: std.mem.Allocator, request: types.C defer analyser.deinit(); const only_kinds = if (request.context.only) |kinds| blk: { - var set: std.EnumSet(std.meta.Tag(types.CodeAction.Kind)) = .initEmpty(); + var set: std.EnumSet(std.meta.Tag(types.CodeAction.Kind)) = .empty; for (kinds) |kind| { set.setPresent(kind, true); } diff --git a/src/analysis.zig b/src/analysis.zig index 60f68acd4..d2b13b6ee 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -6215,7 +6215,7 @@ pub fn innermostScopeAtIndex( document_scope: *const DocumentScope, source_index: usize, ) Scope.Index { - return innermostScopeAtIndexWithTag(document_scope, source_index, .initFull()).unwrap().?; + return innermostScopeAtIndexWithTag(document_scope, source_index, .full).unwrap().?; } pub fn innermostScopeAtIndexWithTag( From 7ef97b34767e503a9f37096f12948af9c620921d Mon Sep 17 00:00:00 2001 From: Techatrix Date: Thu, 9 Apr 2026 20:01:07 +0200 Subject: [PATCH 2/3] set minimum zig version to `0.16.0-dev.3133+5ec8e45f3` --- build.zig.zon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig.zon b/build.zig.zon index afba9ebe3..ab4ada332 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -10,7 +10,7 @@ // nix flake update --commit-lock-file // ``` // If you do not use Nix, a ZLS maintainer can take care of this. - .minimum_zig_version = "0.16.0-dev.2984+cb7d2b056", + .minimum_zig_version = "0.16.0-dev.3133+5ec8e45f3", // Must be kept in sync with the `deps.nix` for the Nix flake. // If you do not use Nix, a ZLS maintainer can take care of this. .dependencies = .{ From 9d70cfc03dfd8efd5cac8dd7741b7022411f565f Mon Sep 17 00:00:00 2001 From: Techatrix Date: Thu, 9 Apr 2026 20:01:22 +0200 Subject: [PATCH 3/3] flake.lock: Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/1073dad219cb244572b74da2b20c7fe39cb3fa9e?narHash=sha256-tFwzTI0DdDzovdE9%2BRas6CUss0yn8P9XV4Ja6RjA%2BnU%3D' (2026-03-24) → 'github:NixOS/nixpkgs/4e92bbcdb030f3b4782be4751dc08e6b6cb6ccf2?narHash=sha256-OEf7YqhF9IjJFYZJyuhAypgU%2BVsRB5lD4DuiMws5Ltc%3D' (2026-04-07) • Updated input 'zig-overlay': 'github:mitchellh/zig-overlay/e8d24a6b03faf3824103b6fc986c1afa7c90c7c1?narHash=sha256-8cMeRjQOqOzwYmZdH7cV75PeXOGf74RDGR9IsFX%2B7j0%3D' (2026-03-25) → 'github:mitchellh/zig-overlay/e9ed260913d18b2973a86eabc8e46642c4e04c75?narHash=sha256-Vin1%2BHI1TJvBXS4d3rcflfCWL9MmJJjjoZ2ATsPHAqg%3D' (2026-04-08) --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 4bf9cb1ac..60812d934 100644 --- a/flake.lock +++ b/flake.lock @@ -18,11 +18,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1774388614, - "narHash": "sha256-tFwzTI0DdDzovdE9+Ras6CUss0yn8P9XV4Ja6RjA+nU=", + "lastModified": 1775595990, + "narHash": "sha256-OEf7YqhF9IjJFYZJyuhAypgU+VsRB5lD4DuiMws5Ltc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "1073dad219cb244572b74da2b20c7fe39cb3fa9e", + "rev": "4e92bbcdb030f3b4782be4751dc08e6b6cb6ccf2", "type": "github" }, "original": { @@ -63,11 +63,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1774441590, - "narHash": "sha256-8cMeRjQOqOzwYmZdH7cV75PeXOGf74RDGR9IsFX+7j0=", + "lastModified": 1775651458, + "narHash": "sha256-Vin1+HI1TJvBXS4d3rcflfCWL9MmJJjjoZ2ATsPHAqg=", "owner": "mitchellh", "repo": "zig-overlay", - "rev": "e8d24a6b03faf3824103b6fc986c1afa7c90c7c1", + "rev": "e9ed260913d18b2973a86eabc8e46642c4e04c75", "type": "github" }, "original": {