Does anyone have a way of getting the success or failure of a compilation attempt back to SlickEdit? I'd like the compile window to popup when I compile, but then go away if the compilation was successful (the exit code from make was 0 or some such).
Thanks!
I guess when you say "compile window" you mean the build window. You could try using the pre-build and post-build commands - a pre-build command could set a flag "my_build_is_active" to one and the post build command could set it back to zero. The post build command "might" be able to close the build window if there were no errors, or you could fire up a monitoring process run from a timer interrupt with the pre build command that checked when "my_build_is_active" had gone to zero (the post build command would set it to zero).
To find out if there were no errors, you might be able to use the next_error command - it should return zero only if it successfully displayed the next error. Another possibility is to call a slick macro from your external build tool to set or clear a flag - the command would look something like this
vs.exe -new "-# my_build_result 0"
if the build was successful
where my_build_result is your own macro that accepts one parameter indicating success or failure.
You could also try setting an environment variable in your external build tool indicating success or failure and use the slick macro function get_env - but I'm not sure if slick can access an environment variable like that.
Graeme