I ran into this issue today where the compiler is suddenly unable to resolve the error set. It was working just a week ago or so
My zig version: 0.12.0-dev.3123+147beec7d
code:
try self.do(.{ .connect = .{ .from = connection_from.objs, .to = new.objs[0] } });
pub fn do(self: *Editor, action: Editor.Action) !void {
const result = try self.execute_action(action);
self.history.push(result);
self.action_stack.clear();
}
fn execute_action(self: *Editor, action: Editor.Action) !ActionResult {
switch (action) {
// a big switch statement with a bunch of stuff that may return error inside like:
.button => |args| {
try self.toggle_button(args.btn);
return ActionResult{ .button = .{ .btn = args.btn } };
},
}