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

using with mis-capitalized package name #5789

Closed
malmaud opened this issue Feb 13, 2014 · 2 comments
Closed

using with mis-capitalized package name #5789

malmaud opened this issue Feb 13, 2014 · 2 comments
Labels
packages Package management and loading system:mac Affects only macOS

Comments

@malmaud
Copy link
Contributor

malmaud commented Feb 13, 2014

At least under OS X, there's a slight issue if you try using [some module], where the module is spelled right but capitalized incorrectly. It issues a warning when it (arguably) should issue an error.

julia> using distributions
Warning: requiring "distributions" did not define a corresponding module.

julia> Normal(0,1)
ERROR: Normal not defined

julia> using Distributions

julia> Normal(0,1)
Normal( μ=0.0 σ=1.0 )
@StefanKarpinski
Copy link
Sponsor Member

This is arguably one place where we should probably work around the braindeadness case insensitivity of the underlying file-system.

@goretkin
Copy link
Contributor

If you do it in the opposite order, other interesting (but seemingly inconsequential) things happen

julia> using Distributions

julia> using distributions
Warning: replacing module Distributions
Warning: Method definition convert(Type{BigFloat},MathConst{:halfπ}) in module Distributions at constants.jl:38 overwritten in module Distributions at constants.jl:38.
Warning: Method definition convert(Type{Float64},MathConst{:halfπ}) in module Distributions at constants.jl:43 overwritten in module Distributions at constants.jl:43.
...
Warning: Method definition convert(Type{Float32},MathConst{:loghalf}) in module Distributions at constants.jl:44 overwritten in module Distributions at constants.jl:44.
Warning: requiring "distributions" did not define a corresponding module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages Package management and loading system:mac Affects only macOS
Projects
None yet
Development

No branches or pull requests

4 participants