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: LoadError: LoadError: UndefVarError: Dir not defined #510

Closed
scls19fr opened this issue Jul 18, 2018 · 6 comments
Closed

ERROR: LoadError: LoadError: UndefVarError: Dir not defined #510

scls19fr opened this issue Jul 18, 2018 · 6 comments

Comments

@scls19fr
Copy link

Hello,

I'm trying to use with Julia 0.7 a library which was written for Julia 0.6

When doing

using ThisLibrary

I'm getting the following error:

ERROR: LoadError: LoadError: UndefVarError: Dir not defined

Maybe we should have a depreciation warning instead.

Kind regards

@KristofferC
Copy link
Sponsor Member

Pkg.Dir was never part of the Pkg API, Pkg.dir was and it has a deprecation warning. Also, Pkg.dir should seldom be used inside packages.

@scls19fr
Copy link
Author

$ /Applications/Julia-0.6.app/Contents/Resources/julia/bin/julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.4 (2018-07-09 19:09 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin14.5.0

julia> Pkg.Dir
Base.Pkg.Dir

help?> Pkg.Dir
  No documentation found.

  No docstring or README.md found for module Base.Pkg.Dir.

Maybe we should consider using convention like Python with _ so it's more explicit that it's not part of API

@KristofferC
Copy link
Sponsor Member

KristofferC commented Jul 18, 2018

The call the package is actually doing is Pkg.Dir._pkgroot() though.

@scls19fr
Copy link
Author

With Julia 0.6

julia> Pkg.Dir._pkgroot()
"/Users/scls/.julia"

How can it be replaced for Julia 0.7?

@KristofferC
Copy link
Sponsor Member

The package manager system used right now is very different so there is no direct translation that would work the same way.

@StefanKarpinski
Copy link
Sponsor Member

I don’t think there’s anything actionable here. This package was using an internal private function of the ackage manager which does not exist anymore.

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

3 participants