Feed of "mark2185" https://codeberg.org/mark2185 2026-05-29T20:33:50+02:00 mark2185 commented on pull request ziglang/zig.vim#124 2026-05-11T16:42:59+02:00 136360623: https://codeberg.org/ziglang/zig.vim/pulls/124#issuecomment-14667237 Allow the user to specify path to zig executable <blockquote> <p dir="auto">The zig executable will be looked up in the PATH environment variable so can&#39;t you just add the path to it?</p> </blockquote> Allow the user to specify path to zig executable <blockquote> <p dir="auto">The zig executable will be looked up in the PATH environment variable so can&#39;t you just add the path to it?</p> </blockquote> mark2185 [email protected] mark2185 pushed to master at mark2185/zig.vim 2026-05-06T14:58:28+02:00 133705979: https://codeberg.org/mark2185/zig.vim/compare/210300240932a504c65565b5cf6e62a240ea66da...b2f4150060cf7e049d6512e350b405d3413716df <a href="https://codeberg.org/mark2185/zig.vim/commit/b2f4150060cf7e049d6512e350b405d3413716df" rel="nofollow">b2f4150060cf7e049d6512e350b405d3413716df</a> Allow the user to specify path to zig executable <a href="https://codeberg.org/mark2185/zig.vim/commit/29f7a9b8a4e33f936b803de0b713683ad687a6c3" rel="nofollow">29f7a9b8a4e33f936b803de0b713683ad687a6c3</a> fix appending undo_ftplugin options <a href="https://codeberg.org/mark2185/zig.vim/commit/b2f4150060cf7e049d6512e350b405d3413716df">b2f4150060cf7e049d6512e350b405d3413716df</a> Allow the user to specify path to zig executable <a href="https://codeberg.org/mark2185/zig.vim/commit/29f7a9b8a4e33f936b803de0b713683ad687a6c3">29f7a9b8a4e33f936b803de0b713683ad687a6c3</a> fix appending undo_ftplugin options mark2185 [email protected] mark2185 created pull request ziglang/zig.vim#125 2026-05-06T13:13:01+02:00 133667087: https://codeberg.org/ziglang/zig.vim/pulls/125 <p dir="auto">The current approach results in <code>E488: Trailing characters: sua&lt;setl</code> because <code>setl</code> is not an option.</p> <p dir="auto">Can be triggered by opening a <code>zig</code> file and then running <code>:edit %</code></p> 125#fix appending undo_ftplugin options# mark2185 [email protected] mark2185 pushed to fix-undo-ftplugin at mark2185/zig.vim 2026-05-06T13:08:20+02:00 133665371: https://codeberg.org/mark2185/zig.vim/commit/29f7a9b8a4e33f936b803de0b713683ad687a6c3 <a href="https://codeberg.org/mark2185/zig.vim/commit/29f7a9b8a4e33f936b803de0b713683ad687a6c3" rel="nofollow">29f7a9b8a4e33f936b803de0b713683ad687a6c3</a> fix appending undo_ftplugin options <a href="https://codeberg.org/mark2185/zig.vim/commit/29f7a9b8a4e33f936b803de0b713683ad687a6c3">29f7a9b8a4e33f936b803de0b713683ad687a6c3</a> fix appending undo_ftplugin options mark2185 [email protected] mark2185 created branch fix-undo-ftplugin in mark2185/zig.vim 2026-05-06T13:08:20+02:00 133665374: https://codeberg.org/mark2185/zig.vim/src/branch/fix-undo-ftplugin mark2185 [email protected] mark2185 created pull request ziglang/zig.vim#124 2026-05-06T11:55:40+02:00 133626677: https://codeberg.org/ziglang/zig.vim/pulls/124 <p dir="auto">The path to the <code>zig</code> binary is hardcoded, and in case users don&#39;t have it (in case they&#39;re building from source or some other reason) it can&#39;t be configured.</p> <p dir="auto">I see there&#39;s work on <em>something</em> related <a href="https://codeberg.org/ziglang/zig.vim/commit/9443e82b68bddeb5fe454ad502ecea345d2a7cb8" rel="nofollow">here</a>, but by setting the <code>zig_exe_path</code> variable to something nonexistent the check for <code>cwd</code> isn&#39;t necessary.</p> 124#Allow the user to specify path to zig executable# mark2185 [email protected] mark2185 pushed to master at mark2185/zig.vim 2026-05-06T11:55:08+02:00 133626395: https://codeberg.org/mark2185/zig.vim/commit/210300240932a504c65565b5cf6e62a240ea66da <a href="https://codeberg.org/mark2185/zig.vim/commit/210300240932a504c65565b5cf6e62a240ea66da" rel="nofollow">210300240932a504c65565b5cf6e62a240ea66da</a> Allow the user to specify path to zig executable <a href="https://codeberg.org/mark2185/zig.vim/commit/210300240932a504c65565b5cf6e62a240ea66da">210300240932a504c65565b5cf6e62a240ea66da</a> Allow the user to specify path to zig executable mark2185 [email protected] mark2185 pushed to master at mark2185/zig.vim 2026-05-06T11:46:23+02:00 133622627: https://codeberg.org/mark2185/zig.vim/commit/02247b176a1df20077a0eb51eb98bf76393cfcd2 <a href="https://codeberg.org/mark2185/zig.vim/commit/02247b176a1df20077a0eb51eb98bf76393cfcd2" rel="nofollow">02247b176a1df20077a0eb51eb98bf76393cfcd2</a> Allow the user to specify path to zig executable <a href="https://codeberg.org/mark2185/zig.vim/commit/02247b176a1df20077a0eb51eb98bf76393cfcd2">02247b176a1df20077a0eb51eb98bf76393cfcd2</a> Allow the user to specify path to zig executable mark2185 [email protected] mark2185 created repository mark2185/zig.vim 2026-05-06T11:42:31+02:00 133620407: https://codeberg.org/mark2185/zig.vim mark2185 [email protected] mark2185 commented on issue ziglang/translate-c#315 2026-04-26T23:10:48+02:00 128742845: https://codeberg.org/ziglang/translate-c/issues/315#issuecomment-13802432 @cImport fails because of nullability specifier <p dir="auto"><a href="https://github.com/Vexu/arocc/pull/993" rel="nofollow">This was addressed in <code>arocc</code>.</a></p> @cImport fails because of nullability specifier <p dir="auto"><a href="https://github.com/Vexu/arocc/pull/993" rel="nofollow">This was addressed in <code>arocc</code>.</a></p> mark2185 [email protected] mark2185 opened issue ziglang/translate-c#315 2026-04-04T21:32:25+02:00 119056533: https://codeberg.org/ziglang/translate-c/issues/315 <p dir="auto">Header:</p> <pre class="code-block"><code class="chroma language-text display">struct S{}; int foo(const struct S arg[_Nullable 2]); </code></pre><p dir="auto">Corresponding <code>zig</code> file:</p> <pre class="code-block"><code class="chroma language-text display">const header = @cImport({ @cInclude(&#34;header.h&#34;); }); pub export fn bar() c_int { return header.foo(null); } </code></pre><p dir="auto">Build command is <code>zig build-obj main.zig -I.</code></p> <p dir="auto">Entire error:</p> <pre class="code-block"><code class="chroma language-text display">main.zig:1:16: error: C import failed const header = @cImport({ ^~~~~~~~ main.zig:1:16: note: libc headers not available; compilation does not link against libc referenced by: bar: main.zig:6:12 bar: main.zig:5:5 4 reference(s) hidden; use &#39;-freference-trace=6&#39; to see all references error: translation failure ./header.h:2:28: error: nullability specifier cannot be applied to non-pointer type &#39;const struct S [2]&#39; int foo(const struct S arg[_Nullable 2]); </code></pre><p dir="auto">This builds fine using <code>0.15.2</code>, but not using the latest <code>master</code>. I initially noticed it including android&#39;s NDK&#39;s <code>sys/time.h</code>, here&#39;s the actual declaration that it chokes on:</p> <pre class="code-block"><code class="chroma language-text display">int utimes(const char* _Nonnull __path, const struct timeval __times[_Nullable 2]); </code></pre><p dir="auto">I&#39;d <code>bisect</code> it, but building takes almost 20 minutes per commit.</p> <p dir="auto">Also I know <code>@cImport</code> will be deprecated in <code>0.16.0</code> (<a href="https://codeberg.org/ziglang/zig/pulls/31451" rel="nofollow">per this PR</a>), but I&#39;m guessing this issue affects the <code>translate-c</code> functionality, not the <code>@cImport</code> directly?</p> 315#@cImport fails because of nullability specifier# mark2185 [email protected] mark2185 commented on pull request ziglang/zig#31280 2026-02-19T17:23:53+01:00 100916702: https://codeberg.org/ziglang/zig/pulls/31280#issuecomment-10778897 Fix typo in `zig init` files <p dir="auto">Ah, apologies for the noise, should&#39;ve combed through the issues better.</p> Fix typo in `zig init` files <p dir="auto">Ah, apologies for the noise, should&#39;ve combed through the issues better.</p> mark2185 [email protected] mark2185 created pull request ziglang/zig#31280 2026-02-19T15:24:38+01:00 100879520: https://codeberg.org/ziglang/zig/pulls/31280 31280#Fix typo in `zig init` files# 31280#Fix typo in `zig init` files# mark2185 [email protected] mark2185 pushed to master at mark2185/zig 2026-02-19T15:23:32+01:00 100878938: https://codeberg.org/mark2185/zig/commit/c2b668090606fbdbba8a37ae12ed83a99013d3a6 <a href="https://codeberg.org/mark2185/zig/commit/c2b668090606fbdbba8a37ae12ed83a99013d3a6" rel="nofollow">c2b668090606fbdbba8a37ae12ed83a99013d3a6</a> Fix typo in <code>zig init</code> files <a href="https://codeberg.org/mark2185/zig/commit/c2b668090606fbdbba8a37ae12ed83a99013d3a6">c2b668090606fbdbba8a37ae12ed83a99013d3a6</a> Fix typo in <code class="inline-code-block">zig init</code> files mark2185 [email protected] mark2185 created repository mark2185/zig 2026-02-19T15:20:27+01:00 100877183: https://codeberg.org/mark2185/zig mark2185 [email protected]