You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find the code that builds the compiler command line
Fix how the arguments are built on Windows
Commit and push
Build/type-check. Not done: I didn't have permission to run npm install or tsc here, so the change hasn't been compiled or tested.
Cause:src/compilerService.ts always passed --exe <file> and --run. PureBasic's compiler has neither switch. The Windows compilers (pbcompiler.exe and pbcompilerc.exe) use /EXE, and Linux/macOS use --executable. --run doesn't exist on any platform.
Changes (src/compilerService.ts):
The output switch now depends on the platform: /EXE on Windows, --executable on Linux/macOS.
--run is removed. For "Compile & Run", the extension now starts the built executable itself once compilation succeeds. The program's stdout/stderr and exit code are shown in the PureBasic output channel.
Auto-detection now also looks for pbcompilerc.exe (the C backend) in the standard Windows install folders.
The switch names come from PureBasic's documented command-line options, not from a test run. Please try Compile & Run on Windows with pbcompilerc.exe before merging.
Activity
DNSGeek commentedon Sep 30, 2026
@claude fix this issue
claude commentedon Sep 30, 2026
Claude finished @DNSGeek's task in 50s —— View job •
claude/issue-1-20260930-0310• Create PR ➔Fix for the compiler command line
npm installortschere, so the change hasn't been compiled or tested.Cause:
src/compilerService.tsalways passed--exe <file>and--run. PureBasic's compiler has neither switch. The Windows compilers (pbcompiler.exeandpbcompilerc.exe) use/EXE, and Linux/macOS use--executable.--rundoesn't exist on any platform.Changes (
src/compilerService.ts):/EXEon Windows,--executableon Linux/macOS.--runis removed. For "Compile & Run", the extension now starts the built executable itself once compilation succeeds. The program's stdout/stderr and exit code are shown in the PureBasic output channel.pbcompilerc.exe(the C backend) in the standard Windows install folders.The switch names come from PureBasic's documented command-line options, not from a test run. Please try Compile & Run on Windows with
pbcompilerc.exebefore merging.• Branch