-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
__precompile__(false) does not work #28384
Comments
What if you |
Nope, same problem. Turns out our tests checked whether diff --git a/test/precompile.jl b/test/precompile.jl
index f834e029a2..6c47416a75 100644
--- a/test/precompile.jl
+++ b/test/precompile.jl
@@ -281,6 +281,7 @@ try
"""
__precompile__(false)
module Baz
+ baz() = 1
end
""")
@@ -291,6 +292,8 @@ try
isa(exc, ErrorException) || rethrow(exc)
occursin("__precompile__(false)", exc.msg) && rethrow(exc)
end
+ @eval using Baz
+ @test Baz.baz() == 1
# Issue #12720
FooBar1_file = joinpath(dir, "FooBar1.jl") leads to a test failure. Work around coming. |
And make it equivalent to `exit(125)` Fixes #28384
And make it equivalent to `exit(125)` Fixes #28384
I still see this issue in 1.0.2 and 1.1.0-DEV.655
|
Also, |
Same problem for me with a newly created package and Julia 1.0.2 on Ubuntu. |
I can also confirm this bug on 1.0.2. Disabling precompilation is not possible |
@vtjnash, this seems unfixed for many people... |
While this remains unfixed, is there another way to disable precompilation of a package? I'm developing a package with a dependency that doesn't precompile ( |
Browsing the code, I think the issue is that the call to e: Realised I could test this theory by sticking |
c.f. #30064 we could also perhaps early-parse the file to look for an obvious |
And make it equivalent to `exit(125)` Fixes #28384
I believe this is resurfacing again: #43535 |
Seems fixed for me, but does seem to be a bit of a heisenbug
|
I'm on a branch that includes #28366.
The text was updated successfully, but these errors were encountered: