Cannot jump to item under the cursor

General questions about using TextPad

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

Post Reply
Tahsmo
Posts: 17
Joined: Fri May 19, 2006 5:40 am

Cannot jump to item under the cursor

Post by Tahsmo »

Hey guys,

I work with a certain compiler for about 15 years now - most time with textpad. I almost thought I know what I'm doing. But now this:

I'm working with textpad and invoke a make with a batchfile. This batch is called from textpad. I have added the regular expressions for the output and can jump to the file/line of the error. If I have to create a new development path I just copy the whole directory structure to a new target. I only need to define a new tool in textpad. All path are relative, everything works immediately.

Until the last time. Now textpad informs me that it cannot jump to the item under the cursor.

This is reg.exp. #1:

Code: Select all

^"(.+)", line ([0-9]+):
That is reg.exp. #2:

Code: Select all

^"(.+)", line ([0-9]+):
This is output #1

Code: Select all

MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
[anasoll.c]
"source\anasoll.c", line 1: [F001] syntax error at or near symbol 's'
"source\anasoll.c", line 1: [W016] illegal source character: 0xfc
"source\anasoll.c", line 1: [W016] illegal source character: 0xdf

** error 1 ** deleting MASTER\OBJ\ANASOLL.OBJ
And finally output #2

Code: Select all

MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
[bootutil.c]
"source\bootutil.c", line 1: [F001] syntax error at or near symbol 'test'

** error 1 ** deleting MASTER\OBJ\bootutil.obj

If the working directory wasn't correct the compile wouldn't work. The tool settings are identically. At the beginning I thought this is caused by using a substitute (subst A: C:\...) in the new path. But after returning to C:\... the problem was still there.

Everything seem's to be identically. #1 is working, #2 not. I know this sounds strange. Something is different but I don't know what.

Has anybody an idea what might be the reason? Thank you for every hint !
Thomas
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

In Configure | Preferences | Editor is the check box Use POSIX regular expression syntax selected? For your style of regex it should be.

In Configure | Preferences | Tools | <Your tool> what are the values of the Registers?
They should be:
File: 1
Line: 2
Tahsmo
Posts: 17
Joined: Fri May 19, 2006 5:40 am

Yes

Post by Tahsmo »

thank you for your input

1) "[x] Use POSIX ..." is selected
2) For both tools is defined: File:[1] Line:[2] Column: [ ]

Except the different paths there is no difference between the tool definitions. It should work :-)

If the batch files are different, maybe in defining environment variables or "cd ...." commands may this influence the result inside textpad if the output is as shown?
With the output window on top I tried to open the file relative "source\bootutil.c" by using <CTRL>-<Shift>-o. This works fine. That means that textpad it-self has the correct working path.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Was POSIX regular expression syntax selected before you set the regular expression in this tool? If not, try changing the regular expression, changing it back and saving it again.
Tahsmo
Posts: 17
Joined: Fri May 19, 2006 5:40 am

Post by Tahsmo »

Ben, thank you. This was the solution.
Post Reply