Skip to content

Fix pony-lsp diagnostic test failure on OpenBSD#5085

Merged
SeanTAllen merged 1 commit intomainfrom
fix-openbsd-pony-lsp-test
Mar 28, 2026
Merged

Fix pony-lsp diagnostic test failure on OpenBSD#5085
SeanTAllen merged 1 commit intomainfrom
fix-openbsd-pony-lsp-test

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

On OpenBSD, get_compiler_exe_path relies entirely on argv0 to find the executable — there's no /proc/self/exe or KERN_PROC_PATHNAME sysctl available. The diagnostic test was passing an empty string for argv0, so the compiler couldn't locate the builtin package and failed with "couldn't locate this path" instead of producing the expected type errors.

Other platforms (Linux, macOS, FreeBSD) use OS-specific mechanisms that ignore argv0 entirely, which masked the bug.

The fix passes the actual argv0 from h.env.args(0)? to PonyCompiler, matching what main.pony already does in production.

On OpenBSD, get_compiler_exe_path relies entirely on argv0 to find the
executable (no /proc/self/exe or KERN_PROC_PATHNAME). The diagnostic
test was passing an empty string for argv0, so the compiler couldn't
locate the builtin package. Other platforms ignored argv0 and used
OS-specific mechanisms, masking the bug.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Mar 28, 2026
@SeanTAllen SeanTAllen merged commit 92586df into main Mar 28, 2026
14 checks passed
@SeanTAllen SeanTAllen deleted the fix-openbsd-pony-lsp-test branch March 28, 2026 18:38
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Mar 28, 2026
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.

2 participants