-
Notifications
You must be signed in to change notification settings - Fork 57
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
Change from isdefined function to @isdefined macro #94
Conversation
In Julia v0.7.0 the function form is deprecated and results in what looks like a parse error: ``` julia> Pkg.build("Conda") INFO: Building Conda =================================================================[ ERROR: Conda ]================================================================== LoadError: type CodeInfo has no field def in expression starting at /Users/patrick/.julia/v0.7/Conda/deps/build.jl:7 =================================================================================================================================================== =================================================================[ BUILD ERRORS ]================================================================== WARNING: Conda had build errors. - packages with build errors remain installed in /Users/patrick/.julia/v0.7 - build the package(s) and all dependencies with `Pkg.build("Conda")` - build a single package by running its `deps/build.jl` script =================================================================================================================================================== ```
I'm a bit puzzled why this doesn't seem to have impacted others (at least, I can't find evidence of that) since I'd assume that this package would be used by most who are on master of Julia. Aside from that a couple of questions arise:
My first PR, be gentle ;) |
Typically with Julia the latest syntax is introduced using the Compat.jl package. The
I'm also unclear on why this issue hasn't appeared for others (including myself). I'm really not sure why you were getting an error here. |
Hmm, I think the issue I'm seeing probably has nothing to do with the Conda package. It seems that my build for some reason doesn't like the function form of
|
Seems to be a base julia bug and the depwarn code may need to be updated for the toplevel frame. |
I'm going to pull the latest master of the Julia repo and see if I can still reproduce. If so I'll open a ticket over there. |
In Julia v0.7.0 the function form is deprecated and results in what looks like a parse error: