www.digitalmars.com         C & C++   DMDScript  

D - D+sciTE

reply "lesni_bleble" <el email.cz> writes:
hello,

i have tryied DIDE (www.atari-soldiers.com/dide.html), but i dont like
advanced configuration through LUA. and i would like to use only one sciTE
editor.
i used D language properties by Andy (http://ikagames.com/andy/d/dscite.zip)
but sciTE doesn't understand format of dmd warnings and error messages.
so::
filter.awk
{
    if ( /\)\: / && /\(/ )  {
        sub(/\(/,":",$0)
        sub(/\)\:/,":",$0)
    }
    print
}

this awk script convert dmd output to gcc-like output.
well, now i wanted to filter output of make by awk and give to sciTE.

in dmd.properties::

command.build.*.d=make | awk -f filter.awk

under windows it doesn't work, i don't know why..
so for win, special case::

command.build.*.d=c:\dmd\bin\sciTEmake.bat

sciTEmake.bat
 echo off
redir -o c:\winnt\temp\out make
redir -i c:\winnt\temp\out awk -f c:\dmd\bin\d-filter.awk

(note: redir is simple (15kb) program to redirecting standard input/output
under windows, taken from mingw32 package)

that's it.
now F4-key cycle error messages correct.

hope someone consider it usefull,

or am i inventing the wheel again?
Mar 02 2004
parent C <dont respond.com> writes:
Sounds good, do you want to update the wiki ?
http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage

Also, DIDE comes configured for D , LUA is mostly for scripting, and onl=
y =

if you _want_ advanced configuration , its there.

C

On Tue, 2 Mar 2004 13:14:55 +0100, lesni_bleble <el email.cz> wrote:

 hello,

 i have tryied DIDE (www.atari-soldiers.com/dide.html), but i dont like=
 advanced configuration through LUA. and i would like to use only one =
 sciTE
 editor.
 i used D language properties by Andy =
 (http://ikagames.com/andy/d/dscite.zip)
 but sciTE doesn't understand format of dmd warnings and error messages=
.
 so::
 filter.awk
 {
     if ( /\)\: / && /\(/ )  {
         sub(/\(/,":",$0)
         sub(/\)\:/,":",$0)
     }
     print
 }

 this awk script convert dmd output to gcc-like output.
 well, now i wanted to filter output of make by awk and give to sciTE.

 in dmd.properties::

 command.build.*.d=3Dmake | awk -f filter.awk

 under windows it doesn't work, i don't know why..
 so for win, special case::

 command.build.*.d=3Dc:\dmd\bin\sciTEmake.bat

 sciTEmake.bat
  echo off
 redir -o c:\winnt\temp\out make
 redir -i c:\winnt\temp\out awk -f c:\dmd\bin\d-filter.awk

 (note: redir is simple (15kb) program to redirecting standard =
 input/output
 under windows, taken from mingw32 package)

 that's it.
 now F4-key cycle error messages correct.

 hope someone consider it usefull,

 or am i inventing the wheel again?
-- = Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Mar 02 2004