Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Error in PatternTemplateResolver

#9

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.

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

State: resolved
Milestone: none
Assigned to: James Gregory James Gregory

Activity

  1. James Gregory
    James Gregory
    • 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 :)

    March 23rd, 2009 @ 12:41 PM

  2. Chris Missal
    Chris Missal

    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.

    March 23rd, 2009 @ 01:28 PM

  3. James Gregory
    James Gregory
    • 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.

    March 23rd, 2009 @ 02:38 PM

  4. Justin Carrico
    Justin Carrico

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

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

    May 22nd, 2009 @ 10:16 PM

  5. James Gregory
    James Gregory

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

    May 23rd, 2009 @ 10:16 AM

  6. Justin Carrico
    Justin Carrico

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

    May 23rd, 2009 @ 09:51 PM

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.