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'.
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"
}
]
}
