jEdit Community - Resources for users of the jEdit Text Editor
ErrorList: Sorted as in Console window + clickable?
Submitted by Axel on Monday, 20 April, 2009 - 18:05
Is there a way to get ErrorList behave like this: 1.) Having errors listed in the same order as shown in the Console window (because this order has a meaning) _together with_ 2.) "Clicking on an error will open the file containing the error and move the caret to its location" I can get working only one of these at a time. --- Details below --- Errormessages (of Ruby) look like this, in the Console Window: D:/Test/simple_trx_ui.rb :761:in `on_run_single_test': undefined local variable or method `test_end' for # (NameError) from D:/Test/simple_trx_ui.rb :876:in `eval' from D:/Test/simple_trx_ui.rb :761:in `on_run_single_test' from D:/Test/simple_trx_ui.rb :876:in `main_dialog' from D:/Test/trx/external/highline/menu.rb:312:in `call' from D:/Test/trx/external/highline/menu.rb:312:in `select' from D:/Test/trx/external/highline.rb:309:in `choose' from D:/Test/simple_trx_ui.rb :869:in `main_dialog' from D:/Test/simple_trx_ui.rb :867:in `loop' from D:/Test/simple_trx_ui.rb :867:in `main_dialog' from D:/Test/simple_trx_ui.rb :97:in `initialize' from D:/Test/simple_trx_ui.rb :918:in `new' from D:/Test/simple_trx_ui.rb :918 Process ruby exited with code 1 With: Error Regexp: (\s+from)?\s*(.:[^:]+)\s*:(\d+)Puzzled(.*) Extra lines regexp: I _can_ click every line and caret jumps to the right position, but I don't see the right order because ErrorList is mixed up: --D:/Test/simple_trx_ui.rb | |-- 97:in `initialize' | |-- 761:in `on_run_single_test' | |-- 761:in `on_run_single_test': undefined local variable or method ... | |-- 867:in `loop' | |-- 867:in `main_dialog' | |-- 869:in `main_dialog' | |-- 876:in `eval' | |-- 876:in `main_dialog' | |-- 918 | '-- 918:in `new' | --D:/Test/trx/external/highline/menu.rb | |-- 312:in `call' | '-- 312:in `select' | --D:/Test/trx/external/highline.rb '-- 309:in `choose' With using "Extra lines regexp": Error Regexp: ^([\ \t]*)(.:[^:]+)\s*:(\d+)Puzzled(.*) Extra lines regexp: ^[\ \t]*\s+from\s*(.:[^:]+\s*:\d+:?.*) the error messages are shown in the right order. But when I click the lines the caret jumps to the right position only for the first line (matched by 'Error Regexp'), and if I click the following lines (matched by 'Extra lines regexp'), it does _not_ jump to the the corresponding position. (Using additional grouping with paranthesises in the Extra lines regexp doesn't help.) --D:/Test/simple_trx_ui.rb '-- 761:in `on_run_single_test': undefined local variable or method ... |-- D:/Test/simple_trx_ui.rb :876:in `eval' |-- D:/Test/simple_trx_ui.rb :761:in `on_run_single_test' |-- D:/Test/simple_trx_ui.rb :876:in `main_dialog' |-- D:/Test/trx/external/highline/menu.rb:312:in `call' |-- D:/Test/trx/external/highline/menu.rb:312:in `select' |-- D:/Test/trx/external/highline.rb:309:in `choose' |-- D:/Test/simple_trx_ui.rb :869:in `main_dialog' |-- D:/Test/simple_trx_ui.rb :867:in `loop' |-- D:/Test/simple_trx_ui.rb :867:in `main_dialog' |-- D:/Test/simple_trx_ui.rb :97:in `initialize' |-- D:/Test/simple_trx_ui.rb :918:in `new' '-- D:/Test/simple_trx_ui.rb :918 This view apears to me very usable, if it would have enabled the use of the 'Error Patterns' called 'Filename' and 'Line number'. I'm using: Windows XP jEdit 4.3pre16 Java 1.6.0_07 Console 4.3.8 ErrorList 1.7 RubyPlugin 0.9.2 Error pattern: Name: Ruby Error Regexp: see above Warning regexp: Extra lines regexp: see above Filename: $2 Line number: $3 Error message: $4 "Ruby" is on the top of the Error patterns list Axel
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
ErrorList: Sorted as in Console window + clickable?
by Axel on Mon, 20/04/2009 - 18:18
Oh, my line breaks were lost - how toget them back? - I try it again.


Is there a way to get ErrorList behave like this:

1.) Having  errors listed in the same order as shown in the Console window
    (because this order has a meaning)
    
            _together with_

2.) "Clicking on an error will open the file containing the error and move the
    caret to its location"
    
    
I can get working only one point at a time. 


--- Details below ---

Errormessages (of Ruby) look like this, in the Console Window:

  D:/Test/simple_trx_ui.rb :761:in `on_run_single_test': undefined local
  
  variable or method `test_end' for # (NameError)
    from D:/Test/simple_trx_ui.rb :876:in `eval'
    from D:/Test/simple_trx_ui.rb :761:in `on_run_single_test'
    from D:/Test/simple_trx_ui.rb :876:in `main_dialog'
    from D:/Test/trx/external/highline/menu.rb:312:in `call'
    from D:/Test/trx/external/highline/menu.rb:312:in `select'
    from D:/Test/trx/external/highline.rb:309:in `choose'
    from D:/Test/simple_trx_ui.rb :869:in `main_dialog'
    from D:/Test/simple_trx_ui.rb :867:in `loop'
    from D:/Test/simple_trx_ui.rb :867:in `main_dialog'
    from D:/Test/simple_trx_ui.rb :97:in `initialize'
    from D:/Test/simple_trx_ui.rb :918:in `new'
    from D:/Test/simple_trx_ui.rb :918
  Process ruby exited with code 1

With:
  Error Regexp:        (\s+from)?\s*(.:[^:]+)\s*:(\d+)Puzzled(.*)
  Extra lines regexp: 

I _can_ click every line and caret jumps to the right position, but I don't see
the right order because ErrorList is mixed up:

  --D:/Test/simple_trx_ui.rb
  |  |-- 97:in `initialize'
  |  |-- 761:in `on_run_single_test'
  |  |-- 761:in `on_run_single_test': undefined local variable or method ...
  |  |-- 867:in `loop'
  |  |-- 867:in `main_dialog'
  |  |-- 869:in `main_dialog'
  |  |-- 876:in `eval'
  |  |-- 876:in `main_dialog'
  |  |-- 918
  |  '-- 918:in `new'
  |
  --D:/Test/trx/external/highline/menu.rb
  |  |-- 312:in `call'
  |  '-- 312:in `select'
  |
  --D:/Test/trx/external/highline.rb
     '-- 309:in `choose'

With using "Extra lines regexp":
  Error Regexp:        ^([\ \t]*)(.:[^:]+)\s*:(\d+)Puzzled(.*)
  Extra lines regexp:  ^[\ \t]*\s+from\s*(.:[^:]+\s*:\d+:?.*)

the error messages are shown in the right order. But when I click the lines the
caret jumps to the right position only for the first line (matched by 'Error
Regexp'), and if I click the following lines (matched by 'Extra lines regexp'),
it does _not_ jump to the the corresponding position.
(Using additional grouping with paranthesises in the Extra lines regexp doesn't
help.)

  --D:/Test/simple_trx_ui.rb
     '-- 761:in `on_run_single_test': undefined local variable or method ...
        |-- D:/Test/simple_trx_ui.rb :876:in `eval'
        |-- D:/Test/simple_trx_ui.rb :761:in `on_run_single_test'
        |-- D:/Test/simple_trx_ui.rb :876:in `main_dialog'
        |-- D:/Test/trx/external/highline/menu.rb:312:in `call'
        |-- D:/Test/trx/external/highline/menu.rb:312:in `select'
        |-- D:/Test/trx/external/highline.rb:309:in `choose'
        |-- D:/Test/simple_trx_ui.rb :869:in `main_dialog'
        |-- D:/Test/simple_trx_ui.rb :867:in `loop'
        |-- D:/Test/simple_trx_ui.rb :867:in `main_dialog'
        |-- D:/Test/simple_trx_ui.rb :97:in `initialize'
        |-- D:/Test/simple_trx_ui.rb :918:in `new'
        '-- D:/Test/simple_trx_ui.rb :918

This view apears to me very usable, if it would have enabled the use of the
'Error Patterns' called 'Filename' and 'Line number'.

I'm using:
Windows XP
jEdit 4.3pre16
Java 1.6.0_07
Console 4.3.8
ErrorList 1.7
RubyPlugin 0.9.2

Error pattern:
                Name: Ruby
        Error Regexp: see above
      Warning regexp: 
  Extra lines regexp: see above
            Filename: $2
         Line number: $3
       Error message: $4

"Ruby" is on the top of the Error patterns list

Axel
 
This behavior cannot be confi
by Robert Schwenn on Tue, 21/04/2009 - 20:18
This behavior cannot be configured. Maybe the developer hasn't been aware of this case, that the errors are printed not in ascending order and the user wants to see them really "unsorted".

You should file a bug report or feature request at jEdit's SourceForge trackers.

Robert
 
This behavior cannot be confi
by Axel on Wed, 22/04/2009 - 06:00
Hello Robert, thank you for your answer.
OK, so I know the way to go (feature request).

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   46055
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