Skip to content

Instantly share code, notes, and snippets.

@bararchy
Created July 1, 2015 13:49
Show Gist options
  • Save bararchy/67de1c721d96ad8aed29 to your computer and use it in GitHub Desktop.
Save bararchy/67de1c721d96ad8aed29 to your computer and use it in GitHub Desktop.
Error in ./src/rsaccess-web.cr:31: instantiating 'RSAccessApp#serve()'
app.serve
^~~~~
instantiating 'serve(Int32)'
in /home/unshadow/Desktop/git-projects/Amethyst/src/amethyst/base/app.cr:45: instantiating 'HTTP::Server#listen()'
server.listen
^~~~~~
in macro 'spawn' /usr/lib/crystal/concurrent/concurrent.cr:24, line 8:
1.
2. ->(
3.
4. __arg0 : typeof(server.accept),
5.
6. ) {
7. spawn do
8. handle_client(
9.
10. __arg0,
11.
12. )
13. end
14. }.call(server.accept)
15.
handle_client(
^~~~~~~~~~~~~
instantiating 'handle_client(TCPSocket+)'
in /usr/lib/crystal/http/server/server.cr:73: instantiating 'Amethyst::Base::Handler#call(HTTP::Request)'
response = @handler.call(request)
^~~~
in /home/unshadow/Desktop/git-projects/Amethyst/src/amethyst/base/handler.cr:9: instantiating '(Amethyst::Dispatch::Router | Amethyst::Middleware::Base+)#call(Amethyst::Http::Request)'
response = @app.call(request)
^~~~
in /home/unshadow/Desktop/git-projects/Amethyst/src/amethyst/dispatch/router.cr:76: instantiating 'process_named_route(Amethyst::Http::Request, Amethyst::Http::Response)'
response = process_named_route(request, response)
^~~~~~~~~~~~~~~~~~~
in /home/unshadow/Desktop/git-projects/Amethyst/src/amethyst/dispatch/router.cr:52: instantiating 'Amethyst::Base::Controller+#call_action(String)'
response = @controllers_instances[controller].call_action(@matched_route.action)
^~~~~~~~~~~
in /home/unshadow/Desktop/git-projects/Amethyst/src/amethyst/base/controller.cr:103: instantiating 'send(String)'
send action
^~~~
instantiating 'send(String, Hash(Symbol, String))'
in /home/unshadow/Desktop/git-projects/Amethyst/src/amethyst/support/sendable.cr:32: macro didn't expand to a valid program, it expanded to:
================================================================================
--------------------------------------------------------------------------------
1. case method
2.
3.
4. else
5. raise WrongInstanceMethod.new("Amethyst::Base::Controller+", "#{method}")
6. end
7.
--------------------------------------------------------------------------------
Syntax error in expanded macro: create_send:4: unexpected token: else (expecting when)
else
^
================================================================================
create_send
^~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment