Closed YellowApple closed 8 years ago
Thanks for filling this issue! I've been meaning to update this. I should have done it back when I pushed that commit but didn't really notice it. :frowning:
Good news is that it should be a straightforward fix. I'll try to get to this soon if you haven't already.
I have tried to use Sugar recently and apparently this is still a problem…
@Annwenn Sorry about that! I must have forgotten to push the changes that I did for this a while ago. It should be fixed as of v0.4.9
. Let me know if you have any issues with that
v0.4.9
seems to have fixed it.
On first run of an iex session involving a minimal Sugar app (router, one controller, minimal mix.exs and config.exs):
It looks like Plug.Builder.compile/3 expects an
env
to be the first argument, followed by the pipeline as the second and a list of objects as the third. Creating a bug report to track this and remind myself to get around to doing the necessary refactoring in Sugar.Controller (and in HttpRouter, which - per the above console vomiting - is also affected by this). Not sure why Jose felt the need to swap the args around, but it shouldn't be difficult to work around it on our end.