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.

@import "json2.js" breaks

#274

Hi there,

I am trying to use Douglas Crockfords javascript json implementation at http://www.JSON.org/json2.js

(I am trying to reproduce another bug in the json component of cappuccino)

The problem is, that when @import this file with @import "json2.js" my unittests fail with this error message

json2.js Expected ']' - Unterminated message send or array. OBJJ EXCEPTION: Expected ']' - Unterminated message send or array.

Name:    OBJJParseException
Message: undefined
File:    undefined
Line:    undefined

I haven't yet reduced this to why it fails - but I suspect some of the more complex Regexes in there might be the source of the problem.

Please fix it!

Regards, Martin

Reported by Martin Häcker · April 27th, 2009 @ 01:22 AM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Martin Häcker
    Martin Häcker
    • Tag changed from foundation, import, interaction, javascript to foundation, import, interaction, javascript, parser

    I'd like to add that just copying the source in a obj-j file also breaks the interpreter - it seems the parser somehow gets confused on the correct javascript code in that file.

    April 27th, 2009 @ 01:41 AM

  2. ronin-756 (at lighthouseapp)
    ronin-756 (at lighthouseapp)
    • Tag changed from foundation, import, interaction, javascript, parser to @to-acknowledge, foundation, import, interaction, javascript, parser

    April 27th, 2009 @ 11:18 PM

  3. admin (at 280north)
    admin (at 280north)
    • State changed from new to resolved

    (from [341eddb9f94ac33f5f33b1e70cbb959b133abf59]) Fixes a tab view bug with removing tabs. Closes #274 @import "json2.js" breaks.

    Kudos go to jtietema for tracking down the bug.
    http://github.com/280north/cappuccino/commit/341eddb9f94ac33f5f33b1...

    October 22nd, 2009 @ 07:21 AM

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.