我想用Sublime Text 3构建Free Pascal。我总是得到一个编码错误(见下文)。我还尝试用编码来保存文件。
我创建了一个sublime-build文件:
{
"cmd":["fpc $file & ${file_path}/${file_base_name}.exe"],
"shell" : true,
}我的测试程序是一个简单的hello world:
Program HelloWorld;
begin
writeln("Hello, world!");
readln;
end.我的错误-代码:
[Decode error - output not utf-8]
[Finished in 0.0s with exit code 1]
[cmd: ['fpc C:\\Users\\korndi\\Documents\\FREI\\hellop.p & C:\\Users\\korndi\\Documents\\FREI/hellop.exe']]
[dir: C:\Users\korndi\Documents\FREI]
[path: C:\Python33\;;C:\FPC\2.6.2\bin\i386-Win32]发布于 2016-11-14 15:02:06
我在Qwerty的基础上做了一个构建系统。当你按下Ctrl-B时,它会自动编译并运行你的程序。你也有两个旧的var。Basic Pascal one os更名为Pascal - Compile
{
"shell": true,
"cmd": ["fpc", "${file_path}/${file_base_name}", "&&", "start", "cmd", "/c", "$file_base_name.exe", "&", "pause"],
"selector": "source.pascal",
"variants": [
{
"cmd": ["start", "cmd", "/c", "$file_base_name.exe & pause"],
"name": "Run",
"shell": true
},
{
"cmd": ["fpc", "${file_path}/${file_base_name}"],
"name": "Compile",
"shell": true
}
]
}发布于 2015-07-14 02:58:13
如果你在程序执行时不需要输入数据,你可以试试这个:
{
"cmd": ["fpc", "${file_name}", "&&", "${file_base_name}", "&&", "echo."],
"shell": true
}echo.打印一个新行。
https://stackoverflow.com/questions/19291142
复制相似问题