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

Documentation of default LOAD_PATH entries #757

Closed
carstenbauer opened this issue Sep 18, 2018 · 3 comments
Closed

Documentation of default LOAD_PATH entries #757

carstenbauer opened this issue Sep 18, 2018 · 3 comments

Comments

@carstenbauer
Copy link
Member

See https://stackoverflow.com/questions/52378974/in-my-julia-1-0-0-repl-load-path-returns-unexpected-results.

As per default, the load path seems to be

julia> LOAD_PATH
3-element Array{String,1}:
 "@"
 "@v#.#"
 "@stdlib"

Except for comments in the source code itself I couldn't find any documentation of what those things actually mean. People don't really need to know I guess but, still, it should be easy to add this information to the Pkg documentation.

@epogrebnyak
Copy link

Are you sure the issue belongs to Pkg.il? The named enviroments like @. get resolved by
Base.load_path_expand(). I agree any piece of documentation would have helped, but perhaps we just need a good docstring for that function in Base to start with.

https://github.com/JuliaLang/julia/blob/7920a2a1fbef934a08b61b4bb26c3147f0bf9e41/base/initdefs.jl#L154-L160

Also may use a very informative answer on related subject.

@carstenbauer
Copy link
Member Author

Are you sure the issue belongs to Pkg.il?

I'm not.

The named enviroments like @. get resolved by Base.load_path_expand(). I agree any piece of documentation would have helped, but perhaps we just need a good docstring for that function in Base to start with.

Actually, I think it makes sense to directly add a docstring to LOAD_PATH, wherever it is defined.

@KristofferC
Copy link
Sponsor Member

Documented well on Julia 1.2+

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

No branches or pull requests

4 participants