Weird argument error in Sinatra app

39 views
Skip to first unread message

Jonathan Mason

unread,
Mar 11, 2013, 3:03:10 PM3/11/13
to MagLev Discussion
Anyone want to take a crack at an argument error I'm seeing in Sinatra on master-1.9 ? 

I use isolate and rake 0.9.6, I'm sure any rake version will be fine.
$ maglev-gem list
isolate (3.2.2)
rake (0.9.6)

The rest of the gems get installed in ./tmp through Isolate and that bit all seems fine.
you run it with

$ maglev-ruby rack.rb 

and it argument errors. I think it does so in a method called encode in Sinatra::Base. It uses some Regexp stuff, but it looks pretty simple, and I can't see any problems with those Regexps from maglev-irb

I attached a tarball. Along with rack.rb to start it, there should be config.ru, Isolate and web_app.rb with the actual routes in them.

cheers,
Jon
simplesinatra.tar.gz

Conrad Taylor

unread,
Mar 12, 2013, 5:53:22 PM3/12/13
to maglev-d...@googlegroups.com
On Mon, Mar 11, 2013 at 12:03 PM, Jonathan Mason <jonathan...@gmail.com> wrote:
Anyone want to take a crack at an argument error I'm seeing in Sinatra on master-1.9 ? 

I use isolate and rake 0.9.6, I'm sure any rake version will be fine.
$ maglev-gem list
isolate (3.2.2)
rake (0.9.6)


Which version of Maglev are you using?
 
The rest of the gems get installed in ./tmp through Isolate and that bit all seems fine.
you run it with

$ maglev-ruby rack.rb 

and it argument errors. I think it does so in a method called encode in Sinatra::Base. It uses some Regexp stuff, but it looks pretty simple, and I can't see any problems with those Regexps from maglev-irb

I attached a tarball. Along with rack.rb to start it, there should be config.ru, Isolate and web_app.rb with the actual routes in them.

cheers,
Jon

--
You received this message because you are subscribed to the Google Groups "MagLev Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maglev-discuss...@googlegroups.com.
To post to this group, send email to maglev-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/maglev-discussion?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Think different and code well,

-Conrad

Tim Felgentreff

unread,
Mar 12, 2013, 7:27:28 PM3/12/13
to maglev-d...@googlegroups.com
I have just merged an updated version of Uri lib into master-1.9. with this, your example application starts and says hello world.

Jonathan Mason

unread,
Mar 12, 2013, 8:27:51 PM3/12/13
to MagLev Discussion

Excellent news. Thanks Tim!

Reply all
Reply to author
Forward
0 new messages