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

Suppress warning of require #49

Closed
shipengcheng1230 opened this issue Aug 4, 2019 · 1 comment · Fixed by #50
Closed

Suppress warning of require #49

shipengcheng1230 opened this issue Aug 4, 2019 · 1 comment · Fixed by #50

Comments

@shipengcheng1230
Copy link

Hello, starting a fresh installation:

julia> using Measurements

julia> using SpecialFunctions
┌ Warning: Package Measurements does not have SpecialFunctions in its dependencies:- If you have Measurements checked out for development and have
│   added SpecialFunctions as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with Measurements
└ Loading SpecialFunctions into Measurements from project dependency, future warnings for Measurements are suppressed.

According to the Require.jl doc:

In the @require block, or any included files, you can use or import the package, but note that you must use the syntax using .Gadfly or import .Gadfly, rather than the usual syntax. Otherwise you will get a warning about Gadfly not being in dependencies.

Perhaps we should use using .SpecialFunctions in the corresponding file and the same for all @require file to suppress this warning.

@giordano
Copy link
Member

giordano commented Aug 4, 2019

Good catch, thank you so much! This should be fixed by #50.

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

Successfully merging a pull request may close this issue.

2 participants