Skip to content
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

Ambiguous methods on 1.9 #120

Closed
haberdashPI opened this issue Apr 12, 2024 · 1 comment
Closed

Ambiguous methods on 1.9 #120

haberdashPI opened this issue Apr 12, 2024 · 1 comment

Comments

@haberdashPI
Copy link

haberdashPI commented Apr 12, 2024

On 1.10 I can correctly install Infiltrator 1.8.1 but:

 4:30pm ❯ julia +1.9
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.4 (2023-11-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.9) pkg> add Infiltrator
   Resolving package versions...
    Updating `~/.julia/environments/v1.9/Project.toml`
  [5903a43b] + Infiltrator v1.8.1
    Updating `~/.julia/environments/v1.9/Manifest.toml`
  [5903a43b] + Infiltrator v1.8.1

(@v1.9) pkg> precompile
Precompiling project...
  ✗ Infiltrator
  0 dependencies successfully precompiled in 1 seconds. 18 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

Infiltrator [5903a43b-9cc3-4c30-8d17-598619ec4e9b]

Failed to precompile Infiltrator [5903a43b-9cc3-4c30-8d17-598619ec4e9b] to "/Users/davidlittle/.julia/compiled/v1.9/Infiltrator/jl_FMswVp".
ERROR: LoadError: syntax: ambiguous signature in function definition. Try adding a comma if this is a 1-argument anonymous function.
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/Infiltrator/YA22i/src/Infiltrator.jl:870
 [2] include
   @ ./Base.jl:457 [inlined]
 [3] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2049
 [4] top-level scope
   @ stdin:3
in expression starting at /Users/davidlittle/.julia/packages/Infiltrator/YA22i/src/Infiltrator.jl:870
in expression starting at stdin:3

julia> import Pkg; Pkg.precompile()
Precompiling project...
  ✗ Infiltrator
  0 dependencies successfully precompiled in 1 seconds. 18 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

Infiltrator [5903a43b-9cc3-4c30-8d17-598619ec4e9b]

Failed to precompile Infiltrator [5903a43b-9cc3-4c30-8d17-598619ec4e9b] to "/Users/davidlittle/.julia/compiled/v1.9/Infiltrator/jl_8jyakb".
ERROR: LoadError: syntax: ambiguous signature in function definition. Try adding a comma if this is a 1-argument anonymous function.
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/Infiltrator/YA22i/src/Infiltrator.jl:870
 [2] include
   @ ./Base.jl:457 [inlined]
 [3] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2049
 [4] top-level scope
   @ stdin:3
in expression starting at /Users/davidlittle/.julia/packages/Infiltrator/YA22i/src/Infiltrator.jl:870
in expression starting at stdin:3
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types ~/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Pkg/src/Types.jl:69
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
   @ Pkg.API ~/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Pkg/src/API.jl:1619
 [3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API ~/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Pkg/src/API.jl:156
 [4] precompile(pkgs::Vector{Pkg.Types.PackageSpec})
   @ Pkg.API ~/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Pkg/src/API.jl:145
 [5] precompile(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API ~/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Pkg/src/API.jl:171
 [6] precompile()
   @ Pkg.API ~/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Pkg/src/API.jl:162
 [7] top-level scope
   @ REPL[3]:1

julia>
@pfitzseb
Copy link
Member

Oops, that's what I get for pushing an innocuous looking change directly to master...

Fixed by e23d487.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants