Unescaped left brace in regex is deprecated, passed through in regex / perl 5.17.6 #131

Closed
kentfredric opened this Issue Dec 15, 2012 · 1 comment

1 participant

@kentfredric

Multiple instances of this problem across the codebase in 5.17.

One of these seems to fail and tries to call a method on a stringified glob :/

Fortunately, the largest problem is Dancer::Logger::Abstract , but I can't see that .pm in the git tree anywhere, so hopefully its "already solved".

Will re-attempt with a git version just in case, and the update with findings.

t/00_base/08_pod_coverage_dancer.t ............. skipped: Test::Pod::Coverage 1.08 required for testing POD coverage
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/
        (?:
            \%{ <-- HERE (.+?)}([a-z])|
            \%([a-zA-Z])
        )
    / at /ext/graft/home/webadmin/.cpanm/work/1355530664.19199/Dancer-1.3110/lib/Dancer/Logger/Abstract.pm line 132, <DATA> line 1000.
t/00_base/09_load_app.t ........................ 
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^{{ <-- HERE \$NEXT}}$|^\d\.\d{4}(_\d{2}   |      )\d{2}.\d{2}.\d{4}$/ at t/00_base/14_changelog.t line 105.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^({{ <-- HERE \$NEXT}})$|^\d\.\d{4}(_\d{2}   |      )\d{2}.\d{2}.\d{4}$/ at t/00_base/14_changelog.t line 106.
t/00_base/14_changelog.t
t/01_config/06_config_api.t .................... skipped: YAML needed to run this tests
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^\s*eval { <-- HERE ...} called at (?:[.]/)?t/01_config/06_stack_trace.t/ at t/01_config/06_stack_trace.t line 28, <DATA> line 1000.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^\s*eval { <-- HERE ...} called at (?:[.]/)?t/01_config/06_stack_trace.t/ at t/01_config/06_stack_trace.t line 52, <DATA> line 1000.
t/01_config/06_stack_trace.t ..................
t/02_request/13_ajax.t ......................... skipped: Test::TCP is needed to run this test
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/
        (?:
            \%{ <-- HERE (.+?)}([a-z])|
            \%([a-zA-Z])
        )
    / at /ext/graft/home/webadmin/.cpanm/work/1355530664.19199/Dancer-1.3110/lib/Dancer/Logger/Abstract.pm line 132, <DATA> line 1000.
Can't locate object method "read" via package "GLOB(0x2c3df00)" (perhaps you forgot to load "GLOB(0x2c3df00)"?) at /ext/graft/home/webadmin/.cpanm/work/1355530664.19199/Dancer-1.3110/lib/Dancer/Request.pm line 524.
# Looks like you planned 21 tests but ran 17.
# Looks like your test exited with 255 just after 17.
t/02_request/14_uploads.t ...................... 
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\[\d+\]  warn @.+> { <-- HERE 'this' => 'that'} in/ at t/11_logger/08_serialize.t line 23, <DATA> line 1000.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\[\d+\]  warn @.+> { <-- HERE 'a' => 2,'b' => 1,'c' => 5,'d' => 4,'e' => 3}/ at t/11_logger/08_serialize.t line 35, <DATA> line 
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/"foo" : { <-- HERE / at t/14_serializer/01_helpers.t line 71, <DATA> line 1000.
t/14_serializer/01_helpers.t ...................
@kentfredric

Shit. My bad. I failed and didn't notice I was looking at Dancer2 not Dancer. I blame metacpan having outdated metadata so links don't work =p .

PerlDancer/Dancer#870 # is this bug I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment