Author Topic: Setting error markers for custom build command  (Read 116 times)

rygaard

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Setting error markers for custom build command
« on: September 08, 2017, 06:42:47 am »
Hi all,

How do I get SlickEdit to automatically set the error markers in my source code after running a process command?

I have a large project that is mostly Java, and I'm trying to create a macro that will invoke my custom build batch (or script) file.  What I have so far seems to be close:

Code: [Select]
#include "slick.sh"

_command void my_custom_build()
{
   save_all();

   start_process( false, false, true, true );

   clear_pbuffer();

   clear_all_error_markers();

   _str command = "myCompileCommand";

   message( command );

   concur_command( command, false, true, false, true );
}

The macro runs without error.  It clears the error markers, then runs my command.  The output appears in the process buffer just fine.  Once the macro is finished, I can march through my error messages just fine with next_error() and previous_error().

However, there are no error markers in my source code when it is done.  How can I make it do that?

BTW, the output to the process buffer is Ant output with Java error messages.

Thanks,
Chris

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 789
  • Hero Points: 42
Re: Setting error markers for custom build command
« Reply #1 on: September 08, 2017, 12:45:35 pm »
The set-error-markers command should make it scan the process buffer for errors.  Try adding a call to that after the build finishes.