Skip to content

Instantly share code, notes, and snippets.

@dominik-hadl
Created October 2, 2014 15:31
Show Gist options
  • Save dominik-hadl/6c24b3836c435dacb674 to your computer and use it in GitHub Desktop.
Save dominik-hadl/6c24b3836c435dacb674 to your computer and use it in GitHub Desktop.
A sublime build system for Free Pascal, also with option to open & run in iTerm app when Cmd+Shift+B pressed, otherwise just normally compiles with fpc.
{
"shell_cmd": "fpc \"${file}\" -o\"${file_path}/${file_base_name}\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.pascal",
"variants":
[
{
"name": "Run",
"shell_cmd": "fpc \"${file}\" -o\"${file_path}/${file_base_name}\" && open -a iTerm.app \"${file_path}/${file_base_name}\"",
"shell":true
}
]
}
@MarceloCFerraz
Copy link

MarceloCFerraz commented Apr 19, 2018

I get this error:
[Finished in 0.1s with exit code 1]
[shell_cmd: fpc "D:\Drive do bode\5º Período\Grafos\II unidade\avaliacaografos\CódigoMarcelo\GRAFOS.PAS" -o"D:\Drive do bode\5º Período\Grafos\II unidade\avaliacaografos\CódigoMarcelo/GRAFOS"]
[dir: D:\Drive do bode\5º Período\Grafos\II unidade\avaliacaografos\CódigoMarcelo]
[path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Users\Dovakin\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\Dovakin\AppData\Local\Programs\Python\Python36-32;C:\Users\Dovakin\AppData\Local\Microsoft\WindowsApps;]

Can you help me please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment