-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
pkgdir(@__MODULE__)
returns nothing
during __init__
on 1.11.0
#56077
Comments
pkgdir(@__MODULE__)
returns nothing
during __init__
on 1.11pkgdir(@__MODULE__)
returns nothing
during __init__
on 1.11.0
Appears on |
Just noting here that this is very likely responsible for JuliaIO/JLD2.jl#610, which makes it impossible to JLD2-load variables in |
Can we see if this is fixed on nightly. It might be that we need to backport something. There's been a lot of loading tweaks on master. |
I tried yesterday using nightly but it was still not working. |
@vtjnash I'm guessing pkgorigins is set after the inits have run? |
@fatteneder I just tried this on nightly 4c076c8 and it worked? The active project was the MWE package, and there's no Manifest so the old serial precompile path is used.
|
Its now working too. I might have forgotten to update the nightly channel before testing. Sorry. |
Any idea which commit you were on? |
I fear not, because I just updated it since juliaup showed that its outdated ... |
Just bisected the fix to #56329 |
I don't understand why you would call this at |
This comment has been minimized.
This comment has been minimized.
@fatteneder looks like the same issue, no? @MichaelAguadze,i think that should have been fixed by JuliaGPU/GPUCompiler.jl#589 so maybe you need to update the version. |
On Julia 1.11.0, generating a new package whose
src/MWE.jl
is just the following, where we print thepkgdir
for the current@__MODULE__
:produces the following when being loaded (note the
nothing
forpkgdir
):However, on Julia 1.10.5, the proper directory is printed:
The text was updated successfully, but these errors were encountered: