Clicking filenames in output window doesn't open file

General questions about using TextPad

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

Post Reply
LizD
Posts: 3
Joined: Thu Feb 25, 2010 9:46 pm

Clicking filenames in output window doesn't open file

Post by LizD »

I'm trying to click on the error messages in the output window to go that line with the error in the Python file. This is what the line in the output window looks like:
File "H:\Database\Python\read-from-text.py", line 91
And this is my RegExp to match the output:
File "(.+)", line (.+)
And it works, IF the filename is the same file that was active when I executed the tool. But if it's a different file, nothing happens. Even if that file is also open in Textpad.
User avatar
woho
Posts: 100
Joined: Tue Sep 02, 2003 9:12 am
Location: Steyr/Austria
Contact:

did you set the registers ?

Post by woho »

1) Posix: in Preferences/Editor [X] Use Posix regular expression syntax ??
Otherwise your RegExpr should look like
File "\(.+\)", line \(.+\)

2) I assume you did not forget to set the registers (drop down lists below RegExp Textfield) correctly
=> in your case
File: 1
Line: 2
Column: <empty>
Post Reply