Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: get has no method matching #5

Open
msainz opened this issue Dec 20, 2014 · 0 comments
Open

ERROR: get has no method matching #5

msainz opened this issue Dec 20, 2014 · 0 comments
Labels

Comments

@msainz
Copy link
Owner

msainz commented Dec 20, 2014

Given a Morsel.jl app as follows:

using Morsel
using Redis

redis = redis()
app = Morsel.app()

route(app, GET | POST | PUT, "/") do req, res
    "This is the root"
end

get(app, "/about") do req, res
    "This app is running on Morsel"
end

start(app, 8000)

execution produces the following error:

○ → julia app.jl
WARNING: Dict-based `@docstring` config is deprecated. Use keywords instead.
Warning: imported binding for redis overwritten in module Main
ERROR: `get` has no method matching get(::Function, ::App, ::ASCIIString)
you may have intended to import Base.get
 in include at /usr/local/Cellar/julia/0.3.3/lib/julia/sys.dylib
 in include_from_node1 at loading.jl:128
 in process_options at /usr/local/Cellar/julia/0.3.3/lib/julia/sys.dylib
 in _start at /usr/local/Cellar/julia/0.3.3/lib/julia/sys.dylib (repeats 2 times)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant