Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In src/jenny.cr:1:1
- 1 | require "../config/application"
- ^
- Error: while requiring "../config/application"
- In config/application.cr:29:1
- 29 | require "./routes"
- ^
- Error: while requiring "./routes"
- In config/routes.cr:1:15
- 1 | Amber::Server.configure do
- ^--------
- Error: instantiating 'Amber::Server.class#configure()'
- In config/routes.cr:1:15
- 1 | Amber::Server.configure do
- ^--------
- Error: instantiating 'Amber::Server.class#configure()'
- In config/routes.cr:47:3
- 47 | routes :auth do
- ^
- Error: expanding macro
- There was a problem expanding macro 'routes'
- Called macro defined in lib/amber/src/amber/dsl/server.cr:2:3
- 2 | macro routes(valve, scope = "")
- Which expanded to:
- > 1 | router.draw :auth, "" do
- > 2 | begin get("/profile", UserController, :show)
- > 3 | get("/profile/edit", UserController, :edit)
- > 4 | patch("/profile", UserController, :update)
- > 5 | end
- > 6 | end
- > 7 |
- Error: instantiating 'Amber::Router::Router#draw(Symbol, String)'
- In config/routes.cr:47:3
- 47 | routes :auth do
- ^
- Error: expanding macro
- There was a problem expanding macro 'routes'
- Called macro defined in lib/amber/src/amber/dsl/server.cr:2:3
- 2 | macro routes(valve, scope = "")
- Which expanded to:
- > 1 | router.draw :auth, "" do
- > 2 | begin get("/profile", UserController, :show)
- > 3 | get("/profile/edit", UserController, :edit)
- > 4 | patch("/profile", UserController, :update)
- > 5 | end
- > 6 | end
- > 7 |
- Error: instantiating 'Amber::Router::Router#draw(Symbol, String)'
- There was a problem expanding macro 'get'
- Called macro defined in macro 'macro_139732170961120'
- 2 | macro get(*args)
- Which expanded to:
- > 1 | route :get, "/profile", UserController, :show
- > 2 |
- > 3 | route :head, "/profile", UserController, :show
- > 4 |
- > 5 |
- > 6 | route :options, "/profile", UserController, :show
- > 7 |
- > 8 |
- Error: expanding macro
- There was a problem expanding macro 'route'
- Called macro defined in lib/amber/src/amber/dsl/router.cr:10:1
- 10 |
- Which expanded to:
- > 1 | __temp_2939 = ->(context : HTTP::Server::Context){
- > 2 | controller = UserController.new(context)
- > 3 | controller.run_before_filter(:show) unless context.content
- > 4 | unless context.content
- > 5 | context.content = controller.show.to_s
- > 6 | controller.run_after_filter(:show)
- > 7 | end
- > 8 | }
- > 9 | __temp_2940 = "GET"
- > 10 | __temp_2941 = Amber::Route.new(
- > 11 | __temp_2940, "/profile", __temp_2939, :show, valve, scope, "UserController", {} of String => Regex
- > 12 | )
- > 13 |
- > 14 | router.add(__temp_2941)
- > 15 |
- Error: instantiating 'UserController#show()'
- In src/controllers/user_controller.cr:18:21
- 18 | contract.render.user_show
- ^--------
- Error: instantiating 'Mochi::Helpers::RenderHandler#user_show()'
- There was a problem expanding macro 'render_template'
- Called macro defined in lib/amber/src/amber/controller/helpers/render.cr:33:13
- 33 | private macro render_template(filename, path = "src/views")
- Which expanded to:
- > 1 | Kilt.render("#{"src/views"}/user/show.ecr")
- > 2 |
- Error: expanding macro
- There was a problem expanding macro 'render'
- Called macro defined in lib/kilt/src/kilt.cr:22:3
- 22 | macro render(filename, *args)
- Which expanded to:
- > 1 | String.build do |__kilt_io__|
- > 2 | Kilt.embed("src/views/user/show.ecr", "__kilt_io__", )
- > 3 | end
- > 4 |
- Error: instantiating 'String.class#build()'
- In /usr/share/crystal/src/string.cr:268:21
- 268 | String::Builder.build(capacity) do |builder|
- ^----
- Error: instantiating 'String::Builder.class#build(Int32)'
- In /usr/share/crystal/src/string.cr:268:21
- 268 | String::Builder.build(capacity) do |builder|
- ^----
- Error: instantiating 'String::Builder.class#build(Int32)'
- There was a problem expanding macro 'render_template'
- Called macro defined in lib/amber/src/amber/controller/helpers/render.cr:33:13
- 33 | private macro render_template(filename, path = "src/views")
- Which expanded to:
- > 1 | Kilt.render("#{"src/views"}/user/show.ecr")
- > 2 |
- Error: expanding macro
- There was a problem expanding macro 'render'
- Called macro defined in lib/kilt/src/kilt.cr:22:3
- 22 | macro render(filename, *args)
- Which expanded to:
- > 1 | String.build do |__kilt_io__|
- > 2 | Kilt.embed("src/views/user/show.ecr", "__kilt_io__", )
- > 3 | end
- > 4 |
- Error: instantiating 'String.class#build()'
- There was a problem expanding macro 'method_missing'
- Called macro defined in macro 'forward_missing_to'
- 1 | macro method_missing(call)
- Which expanded to:
- > 1 | @controller.link_to(_arg0, _arg1, class: class)
- > 2 |
- Error: can't define class inside def
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement