Robert wrote:
Neil Hodgson wrote:
Robert:

I want to teach SciTE to complile a .pas file (on Ctrl-F7) with an old compiler like

tpc.exe <file>

command.compile.*.pas=tpc "$(FilePath)"

and at best when there is a compiler error (exit status 1) parse this simple output scheme:

Turbo Pascal  Version 6.0  Copyright (c) 1983,90 Borland International
MODCOMM.PAS(71): Error 36: BEGIN expected.
  x
  ^

  Borland format errors are understood.

Thanks. The call works with

command.compile.*.pas=\tp60\tpc.exe "$(FileName)"

Yet it only reports the ExitStatus 0 or 1:

\tp60\tpc.exe "APP"
Exit code: 1
\tp60\tpc.exe "APP"
Exit code: 0

it works when I pipe the TPC.EXE call through this python script:

command.compile.*.pas=python pytpc.py "$(FileNameExt)"

##################
#pytpc.py
import sys,os
f=os.popen(r'\tp60\tpc.exe '+' '.join(sys.argv[1:]))
sys.stdout.write(f.read())
sys.stdout.flush()
##################


python pytpc.py "APP.PAS"
Turbo Pascal  Version 6.0  Copyright (c) 1983,90 Borland International
APP.PAS(0)
APP.PAS(0)
APP.PAS(110): Error 36: BEGIN expected.
   x
   ^>Exit code: 0


..strange. Then also the F4 "next error" detection works perfectly in SciTE. SciTE just won't take the output of 16bit apps or TPC.EXE directly?


Robert







_______________________________________________
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to