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

output during precompilation and errors during testing #77

Open
matthias314 opened this issue Jun 22, 2024 · 0 comments
Open

output during precompilation and errors during testing #77

matthias314 opened this issue Jun 22, 2024 · 0 comments

Comments

@matthias314
Copy link

With Julia 1.10.4 I get for v0.7.3:

(jl_uR6jC9) pkg> add AxisIndices
[...]
  2 dependencies had output during precompilation:
┌ AxisIndices
│  WARNING: Method definition isassigned(Base.AbstractRange{T} where T, Integer) in module Base at range.jl:908 overwritten in module StaticRanges at /tmp/depot/packages/StaticRanges/pepl0/src/utils.jl:109.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└  
┌ StaticRanges
│  WARNING: Method definition isassigned(Base.AbstractRange{T} where T, Integer) in module Base at range.jl:908 overwritten in module StaticRanges at /tmp/depot/packages/StaticRanges/pepl0/src/utils.jl:109.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└  

and

(jl_uR6jC9) pkg> test AxisIndices
[...]
SimpleAxis: Error During Test at /tmp/depot/packages/AxisIndices/fLvXk/test/simple_axis.jl:3
  Test threw exception
  Expression: #= /tmp/depot/packages/AxisIndices/fLvXk/test/simple_axis.jl:3 =# @inferred((typeof(SimpleAxis(1:10)))(2:3)) == 2:3
  MethodError: ==(::SimpleAxis{Int64, UnitRange{Int64}}, ::UnitRange{Int64}) is ambiguous.
  
  Candidates:
    ==(x::AbstractAxis, y::OrdinalRange)
      @ AxisIndices /tmp/depot/packages/AxisIndices/fLvXk/src/abstract_axis.jl:50
    ==(r::AbstractUnitRange, s::AbstractUnitRange)
      @ Base range.jl:1131
    ==(x::AbstractAxis, y::AbstractRange)
      @ AxisIndices /tmp/depot/packages/AxisIndices/fLvXk/src/abstract_axis.jl:46
    ==(r::OrdinalRange, s::OrdinalRange)
      @ Base range.jl:1125
    ==(x::AbstractAxis, y::AbstractArray)
      @ AxisIndices /tmp/depot/packages/AxisIndices/fLvXk/src/abstract_axis.jl:44
    ==(r::AbstractRange, s::AbstractRange)
      @ Base range.jl:1148
  
  Possible fix, define
    ==(::AbstractAxis, ::AbstractUnitRange)
  
  Stacktrace:
   [1] eval_test(evaluated::Expr, quoted::Expr, source::LineNumberNode, negate::Bool)
     @ Test /usr/local/julia-1.10.4/share/julia/stdlib/v1.10/Test/src/Test.jl:355
   [2] macro expansion
     @ /usr/local/julia-1.10.4/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined]
   [3] macro expansion
     @ /tmp/depot/packages/AxisIndices/fLvXk/test/simple_axis.jl:3 [inlined]
   [4] macro expansion
     @ /usr/local/julia-1.10.4/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
   [5] top-level scope
     @ /tmp/depot/packages/AxisIndices/fLvXk/test/simple_axis.jl:3
Test Summary: | Pass  Error  Total  Time
SimpleAxis    |    5      1      6  3.4s
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

1 participant