Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix format string #565

Merged
merged 1 commit into from
Jul 27, 2022
Merged

fix format string #565

merged 1 commit into from
Jul 27, 2022

Conversation

leecannon
Copy link
Member

@leecannon leecannon commented Jul 27, 2022

/home/lee/src/zig/lib/std/fmt.zig:458:5: error: invalid format string 's' for type 'types.CompletionItem.Kind'
    @compileError("invalid format string '" ++ fmt ++ "' for type '" ++ @typeName(@TypeOf(value)) ++ "'");
    ^
/home/lee/src/zig/lib/std/fmt.zig:524:55: note: called from here
                if (actual_fmt.len != 0) invalidFmtErr(fmt, value);
                                                      ^
/home/lee/src/zig/lib/std/fmt.zig:183:23: note: called from here
        try formatType(
                      ^
/home/lee/src/zig/lib/std/io/writer.zig:28:34: note: called from here
            return std.fmt.format(self, format, args);
                                 ^
/home/lee/src/zig/lib/std/debug.zig:93:27: note: called from here
    nosuspend stderr.print(fmt, args) catch return;
                          ^
./src/Server.zig:54:24: note: called from here
        std.debug.print("[{?s}-{?s}] " ++ format ++ "\n", .{ @tagName(message_level), @tagName(scope) } ++ args);
                       ^
/home/lee/src/zig/lib/std/log.zig:139:21: note: called from here
            root.log(message_level, scope, format, args);
                    ^
/home/lee/src/zig/lib/std/log.zig:194:16: note: called from here
            log(.warn, scope, format, args);
               ^
./src/Server.zig:1528:24: note: called from here
            logger.warn("something wrong when trying to build label detail for {s} kind: {s}", .{ it, item.kind });
                       ^
./src/Server.zig:1490:86: note: called from here
fn formatDetailledLabel(item: *types.CompletionItem, alloc: std.mem.Allocator) !void {
                                                                                     ^

@leecannon
Copy link
Member Author

CI is on 0.10.0-dev.3315+1a16b7214 but latest is 0.10.0-dev.3351+90f23e131

@SuperAuguste
Copy link
Member

oof, thanks yall

@SuperAuguste SuperAuguste merged commit cf8baa3 into zigtools:master Jul 27, 2022
@haze
Copy link
Contributor

haze commented Jul 27, 2022

auguste merged it because I took his nose like a little baby and didn't give it back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants