Page 1 of 1

Cannot jump to item under the cursor

Posted: Fri Jul 15, 2011 12:36 pm
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

Posted: Fri Jul 15, 2011 12:58 pm
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

Yes

Posted: Fri Jul 15, 2011 1:46 pm
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.

Posted: Fri Jul 15, 2011 2:09 pm
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.

Posted: Fri Jul 15, 2011 7:17 pm
by Tahsmo
Ben, thank you. This was the solution.