jEdit Community - Resources for users of the jEdit Text Editor
Console passes wrong file name to Error List
Submitted by Clavius on Tuesday, 25 January, 2011 - 22:32
I'm using the Console plug-in to parse my compiler messages and display errors in Error List plug-in. This works fine except the Error List incorrectly displays the file name and path.

In the Console error patterns menu, I specify the following:
Name: VHDL
Regexp: (.+):..+\\([^\\]+)\.vhd\ *\((\d+)\)Sad.+)
Warning regexp: leave empty
Extra lines regexp: leave empty
Filename: $f
Line number: $3
Error message: $4



Here's a sample of the compiler output displayed in the Console:

-- Compiling architecture behavior of tb_system_monitor
** Error: C:\Projects\tb_system_monitor.vhd (171): (vcom-1272) Length of expected is 8.



The Error List shows the correct error, but gets the file path wrong and forgets to include the file extension (.vhd).

C:\Program Files\jEdit\tb_system_monitor (1 error, 0 warnings)
171: ** Error: C (vcom-1272) Length of expected is 8.


I tried changing the Console Filename parameter from "$f", but nothing I did had any effect on the file name reported in the Error List. Is the Filename parameter passed to the Error List?

Thanks.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
If the regular expression mat
by Robert Schwenn on Wed, 26/01/2011 - 18:20
If the regular expression matches a line, then every pair of round brackets returns the included string as "$x", where "x" is a serial NUMBER. So, did You try "$2" for the filename?

If this doesn't help, You could try this regular expression:

.*Error:\s*(.+\.vhd)\s*\((\d+)\):\s*(.+)

and set:
Filename: $1
Line number: $2
Error message: $3
 
Thanks Robert!
by Clavius on Thu, 27/01/2011 - 19:06
Thanks Robert! Your explanation of the round brackets helped me to find the problem.

If anyone else is using Modelsim for compiling VHDL, try this:

Error Regexp: (.+)(.:..+\\[^\\]+\.vhd)\ *\((\d+)\)Sad.+)
File name: $2
Line number: $3
Error Message $4

Note: Substitute the Sad with an "open parenthesis collen"
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300