jitterbug icon indicating copy to clipboard operation
jitterbug copied to clipboard

Jitterbug not working on Dancer 1.3091

Open leto opened this issue 13 years ago • 3 comments

Reported by @dhoss

dhoss@bruticus:~/www/jitterbug$ perl -MCarp::Always jitterbug.pl
Can't use string ("/home/dhoss/www/jitterbug") as an ARRAY ref while
"strict refs" in use at
/home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer/Template/Xslate.pm
line 29
       Dancer::Template::Xslate::init('Dancer::Template::Xslate=HASH(0x21f0978)',
'name', 'xslate', 'config', 'HASH(0x21ed590)', 'type', 'template')
called at /home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer/Object.pm
line 16
       Dancer::Object::new('Dancer::Template::Xslate', 'name', 'xslate',
'type', 'template', 'config', 'HASH(0x21ed590)') called at
/home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer/Engine.pm line 52
       Dancer::Engine::build('Dancer::Engine', 'template', 'xslate',
'HASH(0x153bf08)') called at
/home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer/Template.pm line
17
       Dancer::Template::init('Dancer::Template', 'xslate',
'HASH(0x153bf08)') called at
/home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer/Config.pm line 41
       Dancer::Config::__ANON__('template', 'xslate') called at
/home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer/Config.pm line 193
       Dancer::Config::load('Dancer::Config') called at
/home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer.pm line 255
       Dancer::import('Dancer') called at jitterbug.pl line 2
       main::BEGIN() called at
/home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer.pm line 2
       eval {...} called at
/home/dhoss/perl/5.12.4/lib/site_perl/5.12.4/Dancer.pm line 2
BEGIN failed--compilation aborted at jitterbug.pl line 2

leto avatar Jan 24 '12 23:01 leto

hey @franckcuny can you try to get this branch mergeable? https://github.com/franckcuny/jitterbug/compare/master...new_dancer it only fails 1 test file and it is driving me crazy

leto avatar Jan 27 '12 06:01 leto

I got a similar issue, solution is to turn the path item at the config.yml to an arrayref: ... engines: xslate: path: - '/home/dhoss/www/jitterbug' type: text ...

erezschatz avatar Feb 07 '12 13:02 erezschatz

Yes, my branch does that, but some tests are still failing, I think. @erezschatz , care to look at my branch and figure out why some tests are still failing? Karma points!

leto avatar Feb 07 '12 16:02 leto