Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. In src/jenny.cr:1:1
  2.  
  3. 1 | require "../config/application"
  4. ^
  5. Error: while requiring "../config/application"
  6.  
  7.  
  8. In config/application.cr:29:1
  9.  
  10. 29 | require "./routes"
  11. ^
  12. Error: while requiring "./routes"
  13.  
  14.  
  15. In config/routes.cr:1:15
  16.  
  17. 1 | Amber::Server.configure do
  18. ^--------
  19. Error: instantiating 'Amber::Server.class#configure()'
  20.  
  21.  
  22. In config/routes.cr:1:15
  23.  
  24. 1 | Amber::Server.configure do
  25. ^--------
  26. Error: instantiating 'Amber::Server.class#configure()'
  27.  
  28.  
  29. In config/routes.cr:47:3
  30.  
  31. 47 | routes :auth do
  32. ^
  33. Error: expanding macro
  34.  
  35.  
  36. There was a problem expanding macro 'routes'
  37.  
  38. Called macro defined in lib/amber/src/amber/dsl/server.cr:2:3
  39.  
  40. 2 | macro routes(valve, scope = "")
  41.  
  42. Which expanded to:
  43.  
  44. > 1 | router.draw :auth, "" do
  45. > 2 | begin get("/profile", UserController, :show)
  46. > 3 | get("/profile/edit", UserController, :edit)
  47. > 4 | patch("/profile", UserController, :update)
  48. > 5 | end
  49. > 6 | end
  50. > 7 |
  51. Error: instantiating 'Amber::Router::Router#draw(Symbol, String)'
  52.  
  53.  
  54. In config/routes.cr:47:3
  55.  
  56. 47 | routes :auth do
  57. ^
  58. Error: expanding macro
  59.  
  60.  
  61. There was a problem expanding macro 'routes'
  62.  
  63. Called macro defined in lib/amber/src/amber/dsl/server.cr:2:3
  64.  
  65. 2 | macro routes(valve, scope = "")
  66.  
  67. Which expanded to:
  68.  
  69. > 1 | router.draw :auth, "" do
  70. > 2 | begin get("/profile", UserController, :show)
  71. > 3 | get("/profile/edit", UserController, :edit)
  72. > 4 | patch("/profile", UserController, :update)
  73. > 5 | end
  74. > 6 | end
  75. > 7 |
  76. Error: instantiating 'Amber::Router::Router#draw(Symbol, String)'
  77.  
  78.  
  79. There was a problem expanding macro 'get'
  80.  
  81. Called macro defined in macro 'macro_139732170961120'
  82.  
  83. 2 | macro get(*args)
  84.  
  85. Which expanded to:
  86.  
  87. > 1 | route :get, "/profile", UserController, :show
  88. > 2 |
  89. > 3 | route :head, "/profile", UserController, :show
  90. > 4 |
  91. > 5 |
  92. > 6 | route :options, "/profile", UserController, :show
  93. > 7 |
  94. > 8 |
  95. Error: expanding macro
  96.  
  97.  
  98. There was a problem expanding macro 'route'
  99.  
  100. Called macro defined in lib/amber/src/amber/dsl/router.cr:10:1
  101.  
  102. 10 |
  103.  
  104. Which expanded to:
  105.  
  106. > 1 | __temp_2939 = ->(context : HTTP::Server::Context){
  107. > 2 | controller = UserController.new(context)
  108. > 3 | controller.run_before_filter(:show) unless context.content
  109. > 4 | unless context.content
  110. > 5 | context.content = controller.show.to_s
  111. > 6 | controller.run_after_filter(:show)
  112. > 7 | end
  113. > 8 | }
  114. > 9 | __temp_2940 = "GET"
  115. > 10 | __temp_2941 = Amber::Route.new(
  116. > 11 | __temp_2940, "/profile", __temp_2939, :show, valve, scope, "UserController", {} of String => Regex
  117. > 12 | )
  118. > 13 |
  119. > 14 | router.add(__temp_2941)
  120. > 15 |
  121. Error: instantiating 'UserController#show()'
  122.  
  123.  
  124. In src/controllers/user_controller.cr:18:21
  125.  
  126. 18 | contract.render.user_show
  127. ^--------
  128. Error: instantiating 'Mochi::Helpers::RenderHandler#user_show()'
  129.  
  130.  
  131. There was a problem expanding macro 'render_template'
  132.  
  133. Called macro defined in lib/amber/src/amber/controller/helpers/render.cr:33:13
  134.  
  135. 33 | private macro render_template(filename, path = "src/views")
  136.  
  137. Which expanded to:
  138.  
  139. > 1 | Kilt.render("#{"src/views"}/user/show.ecr")
  140. > 2 |
  141. Error: expanding macro
  142.  
  143.  
  144. There was a problem expanding macro 'render'
  145.  
  146. Called macro defined in lib/kilt/src/kilt.cr:22:3
  147.  
  148. 22 | macro render(filename, *args)
  149.  
  150. Which expanded to:
  151.  
  152. > 1 | String.build do |__kilt_io__|
  153. > 2 | Kilt.embed("src/views/user/show.ecr", "__kilt_io__", )
  154. > 3 | end
  155. > 4 |
  156. Error: instantiating 'String.class#build()'
  157.  
  158.  
  159. In /usr/share/crystal/src/string.cr:268:21
  160.  
  161. 268 | String::Builder.build(capacity) do |builder|
  162. ^----
  163. Error: instantiating 'String::Builder.class#build(Int32)'
  164.  
  165.  
  166. In /usr/share/crystal/src/string.cr:268:21
  167.  
  168. 268 | String::Builder.build(capacity) do |builder|
  169. ^----
  170. Error: instantiating 'String::Builder.class#build(Int32)'
  171.  
  172.  
  173. There was a problem expanding macro 'render_template'
  174.  
  175. Called macro defined in lib/amber/src/amber/controller/helpers/render.cr:33:13
  176.  
  177. 33 | private macro render_template(filename, path = "src/views")
  178.  
  179. Which expanded to:
  180.  
  181. > 1 | Kilt.render("#{"src/views"}/user/show.ecr")
  182. > 2 |
  183. Error: expanding macro
  184.  
  185.  
  186. There was a problem expanding macro 'render'
  187.  
  188. Called macro defined in lib/kilt/src/kilt.cr:22:3
  189.  
  190. 22 | macro render(filename, *args)
  191.  
  192. Which expanded to:
  193.  
  194. > 1 | String.build do |__kilt_io__|
  195. > 2 | Kilt.embed("src/views/user/show.ecr", "__kilt_io__", )
  196. > 3 | end
  197. > 4 |
  198. Error: instantiating 'String.class#build()'
  199.  
  200.  
  201. There was a problem expanding macro 'method_missing'
  202.  
  203. Called macro defined in macro 'forward_missing_to'
  204.  
  205. 1 | macro method_missing(call)
  206.  
  207. Which expanded to:
  208.  
  209. > 1 | @controller.link_to(_arg0, _arg1, class: class)
  210. > 2 |
  211. Error: can't define class inside def
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement