-
Notifications
You must be signed in to change notification settings - Fork 23
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
Disable REPL hack in Julia 1.10 #866
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #866 +/- ##
==========================================
+ Coverage 75.34% 75.63% +0.29%
==========================================
Files 50 51 +1
Lines 4104 4117 +13
==========================================
+ Hits 3092 3114 +22
+ Misses 1012 1003 -9
|
I cannot reproduce this. I have tried the nightly builds julia-1dcac5eb40 (10 days old) and julia-4e782bf91a (of today) with the proposed change. Why do I get a different behaviour? (Is it because of the operating system (ubuntu 20.04) or because of the terminal (xfce), or what?) |
Argh. No, you are right, my mistake: I only tested ... because we are not actually running the REPL completion tests 😠 so I just made PR #867 to fix that. I'll resume looking for a proper solution. But in the meantime I will revamp this PR into simply disabling the REPL completion & tests for 1.10, to avoid the warnings when precompiling GAP.jl; we won't be worse off than we are this way. |
Thanks.
The pull request does this already, except for the comment
|
Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks.
You can add the following patch to get reasonable completions for cases like diff --git a/src/globals.jl b/src/globals.jl
index 8ee3805..0b7a3ac 100644
--- a/src/globals.jl
+++ b/src/globals.jl
@@ -37,7 +37,7 @@ Main
"""
const Globals = GlobalsType()
-function getproperty(::GlobalsType, name::Symbol)
+Base.@assume_effects :effect_free :terminates_globally function getproperty(::GlobalsType, name::Symbol)
v = _ValueGlobalVariable(name)
v === C_NULL && error("GAP variable $name not bound")
return _GAP_TO_JULIA(v) I am not sure if the |
OK, thanks for the hint! I am a bit wary of these annotations, after past experiments with |
Resolves #864
@ThomasBreuer turns out this is much easier than we thought ;-)