I installed Ver 6 and recreated my tools, one of which was to list all the functions/subs in a VBScript by running an external program and capturing the output and then using the RegEx in the "Tools" Preferences dialog to jump to the line. This has worked reliably through Ver 5.4.2, but now fails. This is the RegEx for both:
^.*:\([A-Za-z]:[^:]+\):\([0-9]+\):
using Registers File = 1 and Line = 2. POSIX is NOT checked in the Editor preferences
The Tool Output lines displayed are in this format:
Name -(type) :DriveLetterandPath:lineNbr:
Example:
HelpAbout-(Public Sub) :\VBScript\TestScript.vbs:725:
In Ver 6, double clicking on a Tool Output line gives the error: "Cannot jump to item under the cursor"
Any ideas?
Tool Output Using RegEx to Jump to Line Fails
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Same problem, with Java compiler output
I have the same problem with Java compiler and just posted a separate thread on this (despite searching for specifically the text "Cannot jump to item under the cursor" there were no hits on the forum).
Tool Output Using RegEx to Jump to Line Fails
After trying many solutions, I found a regular expressions that works. I first changed the external program output slightly to this:
ProcName - (type) {DriveLetterandPath,lineNbr,1}
Adding the fixed column 1 was not really necessary, but it doesn't hurt.
The new RegEx is:
^[^{]+{\([^,]+\),\([0-9]+\),\([0-9]+\)}
I hope you can use this.
ProcName - (type) {DriveLetterandPath,lineNbr,1}
Adding the fixed column 1 was not really necessary, but it doesn't hurt.
The new RegEx is:
^[^{]+{\([^,]+\),\([0-9]+\),\([0-9]+\)}
I hope you can use this.
I also can not get this to work and I use it constantly for XML validation and other perl scripts that locate text by producing captured output. I have tried many things including many variations of the filename, no filename, no column, etc.
I will have to stick with vewrsion 5.4.2 until this is corrected.
Ed
I will have to stick with vewrsion 5.4.2 until this is corrected.
Ed
I have a very similar tool, and yet I cannot get it to work properly. I have even modified my tool to produce the same output as yours, and used your regular expression, but still no luck.
Using the expression does work from the Find window, and highlights the matched text, but only when the POSIX option is un-checked.
The interesting thing I found is that if I close Textpad, re-open it, re-open the workspace, and then click on a line from the old Tool Output it then works and opens the right file on the right line number. However, running my Tool again produces a new output with identical data to the old one, but clicking on an item now brings up the "Cannot jump to item under the cursor" error. The only way to get it to 'work' is to close and re-open Textpad.
Perhaps something for the Textpad devs is that the tool output does not retain its formatting when opening Textpad and re-opening the workspace.
What the ... ? Grrr. This used to work flawlessly in Textpad 4 & 5.
Using the expression does work from the Find window, and highlights the matched text, but only when the POSIX option is un-checked.
The interesting thing I found is that if I close Textpad, re-open it, re-open the workspace, and then click on a line from the old Tool Output it then works and opens the right file on the right line number. However, running my Tool again produces a new output with identical data to the old one, but clicking on an item now brings up the "Cannot jump to item under the cursor" error. The only way to get it to 'work' is to close and re-open Textpad.
Perhaps something for the Textpad devs is that the tool output does not retain its formatting when opening Textpad and re-opening the workspace.
What the ... ? Grrr. This used to work flawlessly in Textpad 4 & 5.