Command to go to error?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Command to go to error?

Post by chrisjj »

What's the key command to go to the source of the next error reported in the tool output?
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

F4 (might be depending on keyboard compatibility setting)
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

MudGuard wrote:F4 (might be depending on keyboard compatibility setting)
Thanks, but not working here. e.g. no effect here http://i.imgur.com/KYWo5Nl.png.

Here F4 is assigned to SearchJumpNext.
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

What are the values of Regular expression to match output and Registers for the tool you are using?

Please post the tool output in text form.
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

ben_josephs wrote:What are the values of Regular expression to match output and Registers for the tool you are using?
Aha. It is blank. The tool is PHP and I cannot locate a regex for PHP.
ben_josephs wrote:Please post the tool output in text form.
e.g.

Notice: Undefined index: x in D:\Projects\ChrisJJ\chrisjj.com web\www.chrisjj.com\tango\cjjsets\trackfind\trackfind.php on line 2
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

You seem to have a space in your path. This will bite you sooner or later. It also makes the regex trickier.

Try
Regular expression to match output:
in ([A-Z]:\\.*) on line (\d+)$

Registers:
File: 1 Line: 2
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

ben_josephs wrote:Try
Regular expression to match output:
in ([A-Z]:\\.*) on line (\d+)$

Registers:
File: 1 Line: 2
Thanks Ben. Adjusting that for TextPad 6.5 here, gives:

Code: Select all

in \([A-Z]:\\.*?\) on line \([0-9]+\)$
But still F4 doesn't work.

1) Verify regex matched error in Find http://i.imgur.com/N8lFewD.png
2) Configure tool http://i.imgur.com/Cm9ZJU5.png .
3) Press CTRL+1 to run tool
4) See Tool Output report an error
5) Press F4

Expected: Jump to source line
Observed: No jump. And status line says "At end of list".
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I no longer have a copy of TextPad 6 to experiment with.

The sequence *? is not meaningful in TextPad's old-style regexes.
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

ben_josephs wrote:I no longer have a copy of TextPad 6 to experiment with.
OK. Perhaps time for me to bite the bullet on the regex incompatibility and upgrade to 7.
ben_josephs wrote:The sequence *? is not meaningful in TextPad's old-style regexes.
Thanks for spotting that. It is valid and works in Find, but indeed I should have written:

Code: Select all

in \([A-Z]:\\.*\) on line \([0-9]+\)$
Sadly that too fails for F4.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

You might want to consider stepping into 7.5.1, latest version. It's been quite stable.
(2[Bb]|[^2].|.[^Bb])

That is the question.
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

I considered it. But until then. I'd like V6.5 to work.
Post Reply