sukria wrote, On 09/30/2011 06:47 AM:
Of course, with your real-life applications, it will break in many places in this current shape, and this is where you can help. I'd like to have as many reports as possible regarding upgrades tests.
Problem 1: ========= 1. Created a new Dancer application: $ dancer -a d2test2 $ cd d2test2 2. Run with new Dancer: $ perl -I ../sources/dancer2/lib ./bin/app.pl I get this output: === core: binding app to main core: binding app to d2test2 core: [d2test2] running 'get' with /, CODE(0x320b1d8) core: [d2test2] running 'true' with core: [main] running 'dance' with HTTP::Server::Simple::PSGI: You can connect to your server at http://localhost:3000/ core: [d2test2] running 'template' with index ==== But when visiting "http://localhost:3000" I get: === Internal Server Error Can't locate object method "context" via package "Dancer::Template::Simple" at /home/gordon/sources/dancer2/lib/Dancer.pm line 141, <DATA> line 16. === Changing the template engine to "template_toolkit" simply changes the error message to: === Internal Server Error Can't locate object method "context" via package "Dancer::Template::TemplateToolkit" at /home/gordon/sources/dancer2/lib/Dancer.pm line 141, <DATA> line 16. === Problem 2: ========== 1. created a new Dancer application" $ dancer -a d2test3 $ cd d2test3 2. Added a single line to "./lib/d2test3.pm" (with "prefix "/testme";"): $ sed -i '6iprefix "/testme";' lib/d2test3.pm 3. Run with new Dancer, I get the following error: === $ perl -I ../sources/dancer2/lib ./bin/app.pl core: binding app to main core: binding app to d2test3 core: [d2test3] running 'prefix' with /testme core: [d2test3] running 'get' with /, CODE(0x1870da8) core: [d2test3] running 'true' with core: [main] running 'dance' with Cannot combine a prefix (/testme) with a regular expression ((?-xism:.*)) at (eval 72) line 74 === Using perl 5.12.4 (on debian), Template::Toolkit 2.22, Dancer2 74a925baac7f67c306404e4a0316060211c8ef5d (Oct 2). -gordon