-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Remove mentions of “home project” in documentation and comments #3547
Conversation
The concept of “home project” was removed in JuliaLang/julia#36434. Also see JuliaLang#1891. Fixes JuliaLang#3127
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
This is still inaccurate. The first entry in the default
However, what happens when calling How about:
|
Note that #1891 remains open, so it may be better to spend effort getting that merged? |
@danielwe Come to think of it, the somewhat unclear meaning of Lines 1818 to 1836 in 46b7eef
It seems like this is more of a historical leftover without any actual remaining functionality and should probably be removed? |
@StefanKarpinski perhaps you could weigh in here about the design and perhaps a post merge review of these changes? |
Not the expert here, I had never looked at this code before I wrote the previous comment, but it looks like it makes a difference in Without it, code loading won't know about the active project: (@v1.9) pkg> activate --temp
Activating new project at `/tmp/jl_ujp5um`
(jl_ujp5um) pkg> add EnumX
Resolving package versions...
Updating `/tmp/jl_ujp5um/Project.toml`
[4e289a0a] + EnumX v1.0.4
Updating `/tmp/jl_ujp5um/Manifest.toml`
[4e289a0a] + EnumX v1.0.4
julia> popfirst!(LOAD_PATH)
"@"
julia> using EnumX
│ Package EnumX not found, but a package named EnumX is available from a
│ registry.
│ Install package?
│ (jl_ujp5um) pkg> add EnumX
└ (y/n/o) [y]: |
Ah right, sorry. I think what’s confusing here is that Given all this, I think the clearest option would be to simply say
(By the way, the comment line
seems to be inaccurate?) |
Yes, that's simple and clear. Though I do think it's worth pointing out what this implies in the usual case, i.e., that it activates
You're right: user@host:~/tmp$ ls
Manifest.toml Project.toml
user@host:~/tmp$ JULIA_LOAD_PATH="@" julia -q --startup-file=no
julia> LOAD_PATH
1-element Vector{String}:
"@"
pkg> status
ERROR: no active project user@host:~/tmp$ JULIA_LOAD_PATH="@" julia -q --startup-file=no --project=.
julia> LOAD_PATH
1-element Vector{String}:
"@"
(tmp) pkg> status
Status `~/tmp/Project.toml` (empty project) In the first case, expanding (EDIT: Replaced confused example that used |
I don’t have any objections against mentioning what happens for the default @IanButterworth What’s the best way forward here? Should I make another PR incorporating the things that were discussed here? |
Sounds good to me. I think this PR is an improvement, at least. |
Yeah, sorry about that, I'm just a passer-by and didn't know about the PR until I got the email notification when the linked issue was closed by the PR merge (since I had contributed an MWE to the issue way back). |
Oh no worries, not blaming anyone for anything. That was just a general remark about the situation as a whole 🙂 |
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com> (cherry picked from commit 6024c0f)
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com> (cherry picked from commit 6024c0f)
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com> (cherry picked from commit 6024c0f)
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com> (cherry picked from commit 6024c0f)
When the meaning of `"@"` in `LOAD_PATH` was changed and `"@."` introduced as the new name for the previous meaning of `"@"` in 9a4ecaa, a comment in `load_path_expand()` wasn’t updated to reflect this change. This left the comment being incorrect, leading to potential confusion. I hope I’m not creating more hassle than it’s worth with this super-tiny PR, but since it’s caused some confusion (e. g. JuliaLang/Pkg.jl#3547 (comment)), I thought it might be worthwhile to fix it.
The concept of “home project” was removed in JuliaLang/julia#36434. Also see #1891.
Fixes #3127.