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

Companion issue #14

Closed
kersulis opened this issue Jan 26, 2017 · 2 comments
Closed

Companion issue #14

kersulis opened this issue Jan 26, 2017 · 2 comments

Comments

@kersulis
Copy link

kersulis commented Jan 26, 2017

In the REPL, the line

Companion([1;2;3])

throws this error:

Error showing value of type SpecialMatrices.Companion{Int64}:
ERROR: MethodError: isassigned(::SpecialMatrices.Companion{Int64}, ::Int64, ::Int64) is ambiguous. Candidates:
  isassigned(C::SpecialMatrices.Companion, i, j) at /home/jkersulis/.julia/v0.5/SpecialMatrices/src/companion.jl:18
  isassigned(a::AbstractArray, i::Int64...) at abstractarray.jl:185
 in alignment(::IOContext{Base.Terminals.TTYTerminal}, ::SpecialMatrices.Companion{Int64}, ::Array{Int64,1}, ::Array{Int64,1}, ::Int64, ::Int64, ::Int64) at ./show.jl:1277
 in print_matrix(::IOContext{Base.Terminals.TTYTerminal}, ::SpecialMatrices.Companion{Int64}, ::String, ::String, ::String, ::String, ::String, ::String, ::Int64, ::Int64) at ./show.jl:1407
 in print_matrix(::IOContext{Base.Terminals.TTYTerminal}, ::SpecialMatrices.Companion{Int64}, ::String, ::String, ::String) at ./show.jl:1379
 in #showarray#330(::Bool, ::Function, ::IOContext{Base.Terminals.TTYTerminal}, ::SpecialMatrices.Companion{Int64}, ::Bool) at ./show.jl:1618
 in display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::SpecialMatrices.Companion{Int64}) at ./REPL.jl:132
 in display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::SpecialMatrices.Companion{Int64}) at ./REPL.jl:135
 in display(::SpecialMatrices.Companion{Int64}) at ./multimedia.jl:143
 in print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:154
 in print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:139
 in (::Base.REPL.##22#23{Bool,Base.REPL.##33#42{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:652
 in run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1579
 in run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:903
 in run_repl(::Base.REPL.LineEditREPL, ::Base.##930#931) at ./REPL.jl:188
 in _start() at ./client.jl:360

Can anyone else reproduce this?

@ivanslapnicar
Copy link
Contributor

Did you try Pkg.checkout("SpecialMatrices")?
If you are running Julia 5.0 this is necessary.

@kersulis
Copy link
Author

That did it, thanks! There should probably be a note about this in the README, since that error message didn't suggest it was a version incompatibility issue.

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