Thu, 3 Mar 2005 16:53:45 +0000 (UTC) Leha Bishletov wrote to Harry Zhurov:
LB> В продолжении темы о Visual SlickEdit: Как его научить распознавать LB> ошибки от не знакомого ему компилятора? В Help-e на эту тему написано LB> очень мало, а то, что написано, не работает.
Вполне достаточно написано. Цитата из раздела "Building":
=========Beginning of the citation============== Adding Support for Other Error Message Formats
Visual SlickEdit supports many error message formats. If the error message format that is output from the compiler is not supported, you can add it if the compiler outputs at least the file name, line number, and the message on the same line.
For example, if the compiler error message format is as follows:
linenum, filename: message
Here are the steps to add support for the above error message format:
- Define a SlickEdit regular expression which matches the above. The first character of the regular expression must be the '^' character, which matches the beginning of a line.
The regular expression ^:i, :p\:?*$ will match this message.
- Place curly braces around the file name, line number, column number, and message parts of the regular expression to signify the tagged expressions. In this example, there is no column number so nothing is required for that part.
The resulting regular expression is: ^{:i}, {:p}\:{?*}$
- Number the tagged expressions so that the filename is tagged expression 0, line number is tagged expression 1, column number is tagged expression 2, and the message is tagged expression 3.
The resulting regular expression is: ^{#1:i}, {#0:p}\:{#3?*}$
- Use the gui_set_var command (Macro, Set Macro Variable) to set the macro variable def_error_re2 to the value of this regular expression. You can replace the current contents.
- Load the error.e macro module (Macro, Load Module) so the error searching macro can re initialize. =========The end of the citation================
Т.е. в сухом остатке надо просто задать значение макропеременной def_error_re2 регулярным выражением, которое соответствует формату выдачи ошибок/предупреждений используемого компилятора. Для IAR'овских компиляторов это выражение имеет следующий вид:
^\"{#0:p}\"\,{#1:i}:b{#3?*}$
И оно, кстати, работает и с avr-gcc, и с CCS'овским компилятором.