Hi all,
I’m in the process of upgrading some v0.5 code to v0.7. For various reasons this code is on a local machine rather than a GitHub repository, so FemtoCleaner is not an option (that I’m aware of - maybe there is a way to use it locally?).
Instead, I’ve cloned Deprecations.jl and was hoping to use the edit_text and edit_file functions in this package. However, I can’t get the package to load on either v0.6 or v0.7. Note, for both versions, I checked out both AbstractTrees and CSTParser so they’re on master. The issue appears to be in Deprecations itself. Specifically, when using Deprecations, I get the following error:
ERROR: LoadError: LoadError: LoadError: TypeError: in Type{…} expression, expected UnionAll, got Type{CSTParser.OPERATOR}
Stacktrace:
[1] include_relative(::Module, ::String) at ./loading.jl:464
[2] include at ./sysimg.jl:14 [inlined]
[3] include(::String) at /home/colin/.julia/v0.7/Deprecations/src/Deprecations.jl:1
[4] include_relative(::Module, ::String) at ./loading.jl:464
[5] include at ./sysimg.jl:14 [inlined]
[6] include(::String) at /home/colin/.julia/v0.7/Deprecations/src/Deprecations.jl:1
[7] include_relative(::Module, ::String) at ./loading.jl:464
[8] _require(::Symbol) at ./loading.jl:401
[9] require(::Symbol) at ./loading.jl:318
while loading /home/colin/.julia/v0.7/Deprecations/src/database/versioncompare.jl, in expression starting on line 54
while loading /home/colin/.julia/v0.7/Deprecations/src/database.jl, in expression starting on line 9
while loading /home/colin/.julia/v0.7/Deprecations/src/Deprecations.jl, in expression starting on line 71
The line that is causing the problem follows:
opcode(x::EXPR{CSTParser.OPERATOR{6,op,false}}) where {op} = op
I’m not too familiar with UnionAll or how it works (am currently reading up), but I thought I would simultaneously check if the community has any ideas about how to either fix this issue, or else another way to update my code that doesn’t involve FemtoCleaner and Github.
Thanks in advance.
Colin