#9 ✓resolved
Chris Missal

Error in PatternTemplateResolver

Reported by Chris Missal | March 23rd, 2009 @ 03:44 AM

PatternTemplateResolver can not resolve a path that has different folders of the same name in the path.

For instance: C:\docu\src\jagregory-docu-dd0d8429277506c20bea59a3061245b0fe780624\src\Docu.Console\bin\Debug\templates\index.spark

  • resulted in a StackOverflowException.

Comments and changes to this ticket

  • James Gregory

    James Gregory March 23rd, 2009 @ 12:41 PM

    • Tag set to parser
    • Assigned user set to “James Gregory”

    Hey Chris, thanks for the report. Is this occurring because of the duplicate src folder? There's obviously a bug in my unsophisticated recursive path parsing :)

  • Chris Missal

    Chris Missal March 23rd, 2009 @ 01:28 PM

    Hey James, yes, it looks like it is because of the duplicate /src folders. The recursion on breaking the path into parts seems to get stuck in a loop between the two chunks.

  • James Gregory

    James Gregory March 23rd, 2009 @ 02:38 PM

    • State changed from “new” to “resolved”

    I've just committed a fix to this that does away with all that nasty substring stuff. Should hopefully be more robust now.

    It was all down to using IndexOf and Substring, when it reached the second appearance of the pattern, IndexOf would find the first again and it'd start over.

  • Justin Carrico

    Justin Carrico May 22nd, 2009 @ 10:16 PM

    Downloaded the app today and am still getting a StackOverflowException with this path:

    C:\Users\jcarrico\Documents\Routes\Routes\bin

  • James Gregory

    James Gregory May 23rd, 2009 @ 10:16 AM

    Try using the source, or getting the binaries from TeamCity latest build. The alpha will be updated in due course.

  • Justin Carrico

    Justin Carrico May 23rd, 2009 @ 09:51 PM

    Sorry, that occurred to me after I made the comment.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Simple documentation done simply

People watching this ticket

Tags

Pages