Repository navigation
Conversation
PureBasic has no --exe or --run switch. Pass the platform-correct output switch and launch the built executable after a successful compile instead of passing --run. Also auto-detect pbcompilerc.exe (C backend). Fixes #1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@claude fix the linting issue |
|
Claude finished @DNSGeek's task in 49s —— View job Lint failure: cause found, but I couldn't fix itI read "listing" as linting. If you meant something else, let me know.
Why the job failsThe Code Formatting and Linting run (job log) doesn't fail on a lint error. It fails at its final "Commit and push changes" step:
The markdownlint errors (MD013, MD022, MD060 and others in This would fail on any PR, not just this one. Why I couldn't fix it
How to fix itOption A: format once locally (fixes this PR) npx prettier --write "**/*.{ts,tsx,js,jsx,json}"
npx prettier --write "**/*.md"
git commit -am "style: apply prettier" && git pushOr add Option B: fix the workflow (stops this happening on future PRs). In - uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}or change the push to |
|
Hi — confirming the diagnosis, plus what I could verify against a real compiler. Verified on PureBasic 6.41 C backend, macOS (
So the core of the patch is right: neither One change I'd suggest. const exeSwitch = process.platform === 'win32' ? '/EXE' : '-o';Worth noting the reference is inconsistent about Windows: the cross-platform table lists The failing +1 for the |
PureBasic's own reference documents the output switch as "-o, --output, /OUTPUT <filename>" and the Windows example uses /EXE, but "--executable" appears nowhere: not in `pbcompiler -h` and not in the manual. It is accepted by 6.41 and does honour the path, so this is not a live bug -- it is an undocumented alias with nothing promising it on other versions. -o is the same switch in its documented short form, so the non-Windows branch now uses it. The /EXE choice for Windows is unchanged and matches the manual's Windows example.
Use -o rather than the undocumented --executable on Linux/macOS
PureBasic has no --exe or --run switch. Pass the platform-correct output switch and launch the built executable after a successful compile instead of passing --run. Also auto-detect pbcompilerc.exe (C backend).
Fixes #1