Feed of "mark2185"https://codeberg.org/mark21852026-05-29T20:33:50+02:00mark2185 commented on pull request ziglang/zig.vim#1242026-05-11T16:42:59+02:00136360623: https://codeberg.org/ziglang/zig.vim/pulls/124#issuecomment-14667237Allow 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'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't you just add the path to it?</p>
</blockquote>
mark2185[email protected]mark2185 pushed to master at mark2185/zig.vim2026-05-06T14:58:28+02:00133705979: 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 optionsmark2185[email protected]mark2185 created pull request ziglang/zig.vim#1252026-05-06T13:13:01+02:00133667087: https://codeberg.org/ziglang/zig.vim/pulls/125<p dir="auto">The current approach results in <code>E488: Trailing characters: sua<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.vim2026-05-06T13:08:20+02:00133665371: 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 optionsmark2185[email protected]mark2185 created branch fix-undo-ftplugin in mark2185/zig.vim2026-05-06T13:08:20+02:00133665374: https://codeberg.org/mark2185/zig.vim/src/branch/fix-undo-ftpluginmark2185[email protected]mark2185 created pull request ziglang/zig.vim#1242026-05-06T11:55:40+02:00133626677: 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't have it (in case they're building from source or some other reason) it can't be configured.</p>
<p dir="auto">I see there'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't necessary.</p>
124#Allow the user to specify path to zig executable#mark2185[email protected]mark2185 pushed to master at mark2185/zig.vim2026-05-06T11:55:08+02:00133626395: 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 executablemark2185[email protected]mark2185 pushed to master at mark2185/zig.vim2026-05-06T11:46:23+02:00133622627: 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 executablemark2185[email protected]mark2185 created repository mark2185/zig.vim2026-05-06T11:42:31+02:00133620407: https://codeberg.org/mark2185/zig.vimmark2185[email protected]mark2185 commented on issue ziglang/translate-c#3152026-04-26T23:10:48+02:00128742845: 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#3152026-04-04T21:32:25+02:00119056533: 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("header.h");
});
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 '-freference-trace=6' to see all references
error: translation failure
./header.h:2:28: error: nullability specifier cannot be applied to non-pointer type 'const struct S [2]'
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's NDK's <code>sys/time.h</code>, here'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'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'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#312802026-02-19T17:23:53+01:00100916702: https://codeberg.org/ziglang/zig/pulls/31280#issuecomment-10778897Fix typo in `zig init` files
<p dir="auto">Ah, apologies for the noise, should've combed through the issues better.</p>
Fix typo in `zig init` files
<p dir="auto">Ah, apologies for the noise, should've combed through the issues better.</p>
mark2185[email protected]mark2185 created pull request ziglang/zig#312802026-02-19T15:24:38+01:00100879520: https://codeberg.org/ziglang/zig/pulls/3128031280#Fix typo in `zig init` files#31280#Fix typo in `zig init` files#mark2185[email protected]mark2185 pushed to master at mark2185/zig2026-02-19T15:23:32+01:00100878938: 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> filesmark2185[email protected]mark2185 created repository mark2185/zig2026-02-19T15:20:27+01:00100877183: https://codeberg.org/mark2185/zigmark2185[email protected]