Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sublime Text 4 QB64PE Package
#2
Nice!  I can almost get it to work fully on Linux.  I got it to run the compiled executable just fine, but for some reason it can't find qb64pe even though it works fine in the terminal.  If anyone else knows how to fix it let me know.  Here is the QB64PE.sublime-build file and the modifications I've done to it. Anyway, thanks solo88.

Edit: New info thanks to the sublime support forum on discord. The modified QB64PE.sublime-build file below works for me now. My menu link wasn't working because my system needed restarting to reset something to do with my PATH variable. If you want to try it without restarting, launch sublime from the terminal using 'subl'.

Code: (Select All)
{
    "shell_cmd": "\"qb64pe\" -x \"$file\"",
    "file_regex": "^(.+):([0-9]+):(.*)$",
    "working_dir": "$file_path",
    "selector": "source.qb64, source.bas",
    "file_patterns": ["*.bas", "*.BAS", "*.bi", "*.BI", "*.bm", "*.BM"],

    "variants": [
        {
            "name": "Compile Only",
            "shell_cmd": "\"qb64pe\" -x \"$file\""
        },
        {
            "name": "Compile and Run",
            "shell_cmd": "\"qb64pe\" -x \"$file\" && \"$file_path/$file_base_name\""
        },
        {
            "name": "Run Only (existing exe)",
            "shell_cmd": "\"$file_path/$file_base_name\""
        },
        {
            "name": "Compile and Run (keep console open)",
            "shell_cmd": "\"qb64pe\" -x \"$file\" && cmd /k \"$file_path/$file_base_name\""
        },
        {
            "name": "Compile and Run (pause after)",
            "shell_cmd": "\"qb64pe\" -x \"$file\" && \"$file_path/$file_base_name\" && pause"
        }
    ]
}
Reply


Messages In This Thread
Sublime Text 4 QB64PE Package - by solo88 - 11-30-2025, 10:04 PM
RE: Sublime Text 4 QB64PE Package - by CMR - 12-01-2025, 05:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Text-centring subs PhilOfPerth 3 813 12-20-2024, 02:50 AM
Last Post: Pete
  A scrolling SUB for text in SCREEN 0 TempodiBasic 1 666 12-10-2024, 01:04 AM
Last Post: TempodiBasic
  Text encryption AtomicSlaughter 8 1,703 11-17-2022, 10:58 PM
Last Post: Jack

Forum Jump:


Users browsing this thread: 1 Guest(s)