jEdit Community - Resources for users of the jEdit Text Editor
problems with error-list and console: error line numbers switch always to 1 and a new file is opened
Submitted by bseiz on Wednesday, 20 May, 2009 - 06:26
Hello,

i've got problems with the error-list plugin. I have searched the forum an google and didn't find any solution for my problem.

Every time i start my batch file for compiling from console the errors were displayed correct in the error-list. Now when i klick on an error in order to jump to it then the file with the errors opens again with now content and the cursor jumps to this file of course in line number 1. After that all other line-numbers in the error-list switch to 1. Sad

So i can't use the error-list for that it was made for Sad. Can anybody help me?
Thanks.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
?
by Robert Schwenn on Wed, 20/05/2009 - 20:54
Did You change anything in installation or configuration of jedit before errorlist did change it's behavior? If not, try to delete (or rename) Your jedit settings directory.

What versions are You using (OS, Java, jedit, errorlist)?

Robert
 
Sorry i forgot to mention. -
by bseiz on Wed, 20/05/2009 - 22:16
Sorry i forgot to mention.
- WinXP Prof.
- jEdit 4.3pre16
- Java 1.6.0_13
- ErrorList 1.7

It never has functioned. I have made a new install on my laptop:
1 installed Java 6 Update 13
2 installed jEdit 4.3pre16
3 installed conole toegether with the plugins automatically installed with it
4 - tested behavior
===> nothing changed. there is always a new file opend and the cursor is set to line 1 ...

I have also deleted the setting directory and nothing happened

Maybe it is important to say that the compiler that is called is not called in my batch-file but in an other one that is not in the project directory. i don't know do i have to set any path variables??

Thanks!
 
problems with error-list and console: error line numbers switch
by Axel on Tue, 26/05/2009 - 07:51
Maybe, the ErrorList shows "/" instead of "\" as path-separator?

Could you somewhere upload a screenshot of what ErrorList is showing?

-- Axel
 
More General
by Robert Schwenn on Tue, 26/05/2009 - 21:57
The root node of error list shows the filename, witch should be shown with full path. Is this the case for You (and is the path correct)?

The path and filename are extracted from the console output of Your compiler by the console plugin using the configured error patterns. I believe console is starting with the first defined set of error patterns, and tries the next ones until a pattern matches the programs output.

So, You have to check, what Your compiler is writing to console and witch error pattern matches. Maybe You have to re-order the pattern sets or to create a new one for Your specific program. See Plugin Options -> Console -> Error Patterns.

Robert
 
screenshot
by bseiz on Fri, 29/05/2009 - 05:37
thank you all for your comments.
i have to mention that i am not familiar with req-expressions. maybe you can help me.

you can download a screenshot where you can see the console-output, the error-list, the console-settings for error patterns, the file with the error (line 4755) and the projekt folder at
http://www.load.to/kUOlgcKiSc/jedit_-_console_-_error-list.bmp
 
VHDL
by Axel on Fri, 29/05/2009 - 10:46
Bye the way, your error patterns show "VHDL" - Do you use VHDL with jEdit?

-Axel
 
:: problems with error-list and console: error line numbers swit
by Axel on Fri, 29/05/2009 - 10:44
The screenshot shows the problem: the two pathes are different:

1) d:\Working Repositories\SNMP\src\snmp.c

2) d:\Working Repositories\SNMP\c\snmp.c

("c" instead of "src")


1) is the right path of your file;

2) is the wrong path, but ErrorConsole believes it to be the right one.

Now, how to fix it: As far as I know, there is no "path" variable for such things. Your console window shows _relative_ paths, like:

.\c\snmp.c

instead of:

.\src\snmp.c

Can you change the content or directory of your batch files such that the console window shows ".\src\snmp.c" ?

--Axel
(Germany)
 
error pattern
by bseiz on Fri, 29/05/2009 - 12:53
you are right the path do not match.

no i am not able to change the path in the console. i think it is better to describe in detail:

there is a projekt structure (a collection of files) that my collegue works with. so i have copied the whole directory tree onto my pc. now i have to implement a single feature. so i have build a project with jedit and handle it with mercurial. in the repository there are all my files including the batch file. in the batch file i copy my source file into the directory tree of my collegue. then i call within my batch-file a batch-file from my colleque which is in his directory tree. additionally the compiler he calls is in another directory of his directory tree. so the output what i have not recognized is based on the copy of my file in the directory tree of my colleque an not on the one in my projekt folder resp. repository. so the paths will not match.

i hope you have understood. if not please ask.

is there a solution for my problem at all?
i don't want to put the files of my colleque under the projekt and mercurial handling because i am not responsible for them and this is
work that costs to much time and is senseless.

thank you
 
:: problems with error-list and console: error line numbers swit
by Axel on Fri, 29/05/2009 - 14:59
This could work (bad work-around):

Goto Plugins > Console > Error Patterns > Generic

Backup (on paper?) "Error Regexp"-Entry and "Filename"-Entry.

Replace ErrorRegexp by:

( ? : \s* \.\\c)( [ ^ : ]+? ) : ( \d+ ):\s*( .+)

Remove all spaces in the above!
[Unfortunatly, this forum replaces some strings by smilies...]

and

Filename by:

.\\src\\$1

PRESS "TEST/COMMIT" !!

-Axel
 
I have to thank you a lot!!!
by bseiz on Tue, 02/06/2009 - 05:45
I have to thank you a lot!!! Smiling :-) Smiling
This works fine!
Thanks for your support!!!

Maybe you or somebody else can tell me where in the internet i can find a good intro to regexp for beginners and so on in order to understand what you've answered me.

Again thank you!!!
 
RegExp
by Axel on Tue, 02/06/2009 - 08:18
Glad to hear it.

RegExp

Tutorial:

* I don't know; jEdit's help shows help on RegExp

* Maybe, wikipedia gives usefull links

Reference:

http://www.perl.com/doc/manual/html/pod/perlre.html

(There are different smells of RegExp Syntax; for example, Perl-RegExp syntax is a little different from Ruby's RegExp syntax; don't know, what it is about jEdit RegExp syntax.)

Very good tool (but you need to learn how to work with it...):
"The Regex Coach".

BTW, do you use VHDL with jEdit?

--Axel
 
Thanks for the links. The nex
by bseiz on Tue, 02/06/2009 - 15:25
Thanks for the links. The next weekend i have time i will have a look at it.

No i don't use VHDL, sorry.
Why do you ask??
 
VHDL
by Axel on Tue, 02/06/2009 - 15:34
I saw in your screenshot the errorpatterns for VHDL.
I'm using jEdit for VHDL and would have liked to share experiences (for example, mode file).

Have a nice day

Axel
User login
Browse archives
« April 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   82347
Context Free Art (*.cfdg)   0.31   46054
JBuilder scheme   .001   18494
BBEdit scheme   1.0   18115
ColdFusion scheme   1.0   18023
R Edit Mode - extensive version   0.1   17472
Advanced HTML edit mode   1.0   16205
Matlab Edit Mode   1.0   16067
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14292