Skip to content

member function expected 2 argument(s), found 1 when calling initWithExistingContext #74

@nitanmarcel

Description

@nitanmarcel
    if (io_low_level_imgui) |imgui_api| {
        const ctx: zgui.Context = @ptrCast(@alignCast(imgui_api.get_imgui_context()));
        zgui.initWithExistingContext(std.heap.page_allocator, ctx);
    }
install
└─ install IoliteZigTerrain
   └─ compile lib IoliteZigTerrain Debug native 1 errors
/home/nitanmarcel/.cache/zig/p/zgui-0.6.0-dev--L6sZL7tbQAPRLYrcQAVx0V49tPHAXNxclZ-v8IP4wLr/src/gui.zig:75:18: error: member function expected 2 argument(s), found 1
    temp_buffer.?.resize(3 * 1024 + 1) catch unreachable;
    ~~~~~~~~~~~~~^~~~~~~
/home/nitanmarcel/.zvm/0.15.1/lib/std/array_list.zig:1144:13: note: function declared here
        pub fn resize(self: *Self, gpa: Allocator, new_len: usize) Allocator.Error!void {
        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    load_plugin: src/main.zig:30:37
    load_plugin: src/main.zig:21:1
    4 reference(s) hidden; use '-freference-trace=6' to see all references
error: the following command failed with 1 compilation errors:
/home/nitanmarcel/.zvm/0.15.1/zig build-lib .zig-cache/o/57453e8bba3ae0f957e0f79a525fc824/libimgui.a -ODebug -I .zig-cache/o/60d458a4c931254c1a0aeafdc99fc02c --dep iolite --dep zgui -Mroot=/home/nitanmarcel/Downloads/iolite/zig_terrain/src/main.zig -Miolite=/home/nitanmarcel/.cache/zig/p/iolite-0.0.0-A9pTgK8EAQCovN-sqn5ezyKYtU7sO6acYxukLWqEmf0S/src/iolite.zig --dep zgui_options -Mzgui=/home/nitanmarcel/.cache/zig/p/zgui-0.6.0-dev--L6sZL7tbQAPRLYrcQAVx0V49tPHAXNxclZ-v8IP4wLr/src/gui.zig -Mzgui_options=.zig-cache/c/8ec1c7b645159ddec7b5f5e7fca4ac46/options.zig -lc++ -lc --cache-dir .zig-cache --global-cache-dir /home/nitanmarcel/.cache/zig --name IoliteZigTerrain -dynamic --zig-lib-dir /home/nitanmarcel/.zvm/0.15.1/lib/ --listen=-

Build Summary: 3/6 steps succeeded; 1 failed
install transitive failure
└─ install IoliteZigTerrain transitive failure
   └─ compile lib IoliteZigTerrain Debug native 1 errors

error: the following build command failed with exit code 1:
.zig-cache/o/fd07d91a95a145758ba99e00264224b4/build /home/nitanmarcel/.zvm/0.15.1/zig /home/nitanmarcel/.zvm/0.15.1/lib /home/nitanmarcel/Downloads/iolite/zig_terrain .zig-cache /home/nitanmarcel/.cache/zig --seed 0xcb125e72 -Z8d7c7ae44ccf2cca

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions