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

incorrect error message #22

Closed
AshtonSBradley opened this issue Jun 20, 2018 · 1 comment
Closed

incorrect error message #22

AshtonSBradley opened this issue Jun 20, 2018 · 1 comment

Comments

@AshtonSBradley
Copy link

A simple syntax error when calling QuadGK returns an error giving the impression that QuadGK is not installed:

julia> using QuadGK

julia> g(x)=x^2
g (generic function with 1 method)

julia> quadgk(f,(0,1))
ERROR: quadgk(f, (0, 1)) has been moved to the package QuadGK.jl.
Run Pkg.add("QuadGK") to install QuadGK on Julia v0.6 and later, and then run `using QuadGK`.
Stacktrace:
 [1] #quadgk#771(::Array{Any,1}, ::Function, ::Function, ::Vararg{Any,N} where N) at ./deprecated.jl:698
 [2] quadgk(::Function, ::Tuple{Int64,Int64}) at ./deprecated.jl:698

julia> 

This can cause quite a bit confusion for students learning Julia (and even some of the more familiar!).

By the way, great package!

@stevengj
Copy link
Member

This is a general problem with these deprecations, it should be a MethodError. This will go away in 0.7, but it's not practical to do much about it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants