Modify

Opened 7 years ago

Closed 7 years ago

#6622 closed defect (fixed)

Error displayed when using new *CodeExamplePath syntax

Reported by: Ryan J Ollos Owned by: Alexander Slesarev
Priority: normal Component: CodeExampleMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Here is the example markup I used:

{{{
#!GoodCodeExamplePath
#!python
path=test/dir1/file1
regex="def update_statusbar"
lines=3
}}}

I will attach the file I used as well.

Here is what I see when testing with Trac 0.12dev-r9098 and Trac 0.11.7stable-r9170, which are the latest development versions as of today.

Attachments (3)

ErrorWithCodeExamplePath.png (21.5 KB) - added by Ryan J Ollos 7 years ago.
file1 (374 bytes) - added by Ryan J Ollos 7 years ago.
ErrorWithCodeExamplePath2.png (18.3 KB) - added by Ryan J Ollos 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by Ryan J Ollos

Changed 7 years ago by Ryan J Ollos

Attachment: file1 added

comment:1 Changed 7 years ago by Ryan J Ollos

The screen capture I posted in the description was slightly misleading because the specified code block was shown after the error was display.

Turns out this is because the code block I was searching for was lines 1-3 in the file. If I change lines 1-3, then I get the same error but a different section of code displayed.

Changed 7 years ago by Ryan J Ollos

comment:2 Changed 7 years ago by Alexander Slesarev

Status: newassigned

comment:3 Changed 7 years ago by Alexander Slesarev

Resolution: fixed
Status: assignedclosed

Fixed in r7630.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alexander Slesarev.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.