Ticket #6622 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Error displayed when using new *CodeExamplePath syntax

Reported by: rjollos Assigned to: nuald
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

ErrorWithCodeExamplePath.png (21.5 kB) - added by rjollos on 02/15/10 01:25:49.
file1 (374 bytes) - added by rjollos on 02/15/10 01:26:55.
ErrorWithCodeExamplePath2.png (18.3 kB) - added by rjollos on 02/16/10 17:20:16.

Change History

02/15/10 01:25:49 changed by rjollos

  • attachment ErrorWithCodeExamplePath.png added.

02/15/10 01:26:55 changed by rjollos

  • attachment file1 added.

02/16/10 17:19:54 changed by rjollos

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.

02/16/10 17:20:16 changed by rjollos

  • attachment ErrorWithCodeExamplePath2.png added.

02/17/10 08:55:06 changed by nuald

  • status changed from new to assigned.

02/17/10 09:03:31 changed by nuald

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in r7630.


Add/Change #6622 (Error displayed when using new *CodeExamplePath syntax)




Change Properties
Action