{"action":"created","issue":{"url":"https://api.github.com/repos/SimonDanisch/FixedSizeArrays.jl/issues/91","repository_url":"https://api.github.com/repos/SimonDanisch/FixedSizeArrays.jl","labels_url":"https://api.github.com/repos/SimonDanisch/FixedSizeArrays.jl/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/SimonDanisch/FixedSizeArrays.jl/issues/91/comments","events_url":"https://api.github.com/repos/SimonDanisch/FixedSizeArrays.jl/issues/91/events","html_url":"https://github.com/SimonDanisch/FixedSizeArrays.jl/issues/91","id":144002579,"number":91,"title":"Various errors with zero-size vectors and matrices","user":{"login":"rdeits","id":591886,"avatar_url":"https://avatars.githubusercontent.com/u/591886?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeits","html_url":"https://github.com/rdeits","followers_url":"https://api.github.com/users/rdeits/followers","following_url":"https://api.github.com/users/rdeits/following{/other_user}","gists_url":"https://api.github.com/users/rdeits/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeits/subscriptions","organizations_url":"https://api.github.com/users/rdeits/orgs","repos_url":"https://api.github.com/users/rdeits/repos","events_url":"https://api.github.com/users/rdeits/events{/privacy}","received_events_url":"https://api.github.com/users/rdeits/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-28T15:24:18Z","updated_at":"2016-06-11T16:18:32Z","closed_at":null,"body":"Fixed-size vectors and matrices with one or more dimensions of zero length can cause various different issues when constructed:\r\n\r\n```julia\r\njulia> using FixedSizeArrays\r\n\r\njulia> m = Mat{0, 0, Float64}()\r\nFixedSizeArrays.Mat{0,0,Float64}(\r\n)\r\n\r\n\r\njulia> m = Mat{0, 0, Float64}(0)\r\nERROR: type Union has no field name\r\n in fsa_abstract at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/core.jl:46\r\n in size_or at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/core.jl:52\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/constructors.jl:77\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/FixedSizeArrays.jl:18\r\n\r\njulia> m = Mat{0, 1, Float64}()\r\nERROR: MethodError: `convert` has no method matching convert(::Type{Tuple{Tuple{}}}, ::Tuple{})\r\nThis may have arisen from a call to the constructor Tuple{Tuple{}}(...),\r\nsince type constructors fall back to convert methods.\r\nClosest candidates are:\r\n  call{T}(::Type{T}, ::Any)\r\n  convert{T<:Tuple{Any,Vararg{Any}}}(::Type{T<:Tuple{Any,Vararg{Any}}}, ::T<:Tuple{Any,Vararg{Any}})\r\n  convert{T<:Tuple{Any,Vararg{Any}}}(::Type{T<:Tuple{Any,Vararg{Any}}}, ::Tuple{Any,Vararg{Any}})\r\n  ...\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/constructors.jl:92\r\n\r\njulia> m = Mat{0, 1, Float64}(0)\r\nERROR: type Union has no field name\r\n in fsa_abstract at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/core.jl:46\r\n in size_or at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/core.jl:52\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/constructors.jl:77\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/FixedSizeArrays.jl:18\r\n\r\njulia> m = Mat{1, 0, Float64}()\r\nFixedSizeArrays.Mat{1,0,Float64}(\r\nError showing value of type FixedSizeArrays.Mat{1,0,Float64}:\r\nERROR: TypeError: show: in new, expected FixedSizeArrays.Mat{1,0,Float64}, got FixedSizeArrays.Mat{0,1,Union{}}\r\n in show at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/FixedSizeArrays.jl:44\r\n in anonymous at show.jl:1299\r\n in with_output_limit at ./show.jl:1276\r\n in showlimited at show.jl:1298\r\n in writemime at replutil.jl:4\r\n in display at REPL.jl:114\r\n in display at REPL.jl:117\r\n [inlined code] from multimedia.jl:151\r\n in display at multimedia.jl:163\r\n in print_response at REPL.jl:134\r\n in print_response at REPL.jl:121\r\n in anonymous at REPL.jl:624\r\n in anonymous at REPL.jl:827\r\n in anonymous at LineEdit.jl:767\r\n in prompt! at ./LineEdit.jl:1636\r\n in run_interface at ./LineEdit.jl:1605\r\n in run_frontend at ./REPL.jl:863\r\n in run_repl at ./REPL.jl:167\r\n in _start at ./client.jl:420\r\n\r\njulia> m = Mat{1, 0, Float64}(0)\r\nERROR: type Union has no field name\r\n in fsa_abstract at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/core.jl:46\r\n in size_or at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/core.jl:52\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/constructors.jl:77\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/FixedSizeArrays.jl:18\r\n\r\njulia> m = Vec{0, Float64}()\r\nFixedSizeArrays.Vec{0,Float64}(())\r\n\r\njulia> m = Vec{0, Float64}(0)\r\nERROR: type Union has no field name\r\n in fsa_abstract at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/core.jl:46\r\n in size_or at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/core.jl:52\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/constructors.jl:77\r\n in call at /home/rdeits/.julia/v0.4/FixedSizeArrays/src/FixedSizeArrays.jl:26\r\n```\r\n\r\nI'll see if I can tell what's going on. "},"comment":{"url":"https://api.github.com/repos/SimonDanisch/FixedSizeArrays.jl/issues/comments/225372549","html_url":"https://github.com/SimonDanisch/FixedSizeArrays.jl/issues/91#issuecomment-225372549","issue_url":"https://api.github.com/repos/SimonDanisch/FixedSizeArrays.jl/issues/91","id":225372549,"user":{"login":"SimonDanisch","id":1010467,"avatar_url":"https://avatars.githubusercontent.com/u/1010467?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonDanisch","html_url":"https://github.com/SimonDanisch","followers_url":"https://api.github.com/users/SimonDanisch/followers","following_url":"https://api.github.com/users/SimonDanisch/following{/other_user}","gists_url":"https://api.github.com/users/SimonDanisch/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonDanisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonDanisch/subscriptions","organizations_url":"https://api.github.com/users/SimonDanisch/orgs","repos_url":"https://api.github.com/users/SimonDanisch/repos","events_url":"https://api.github.com/users/SimonDanisch/events{/privacy}","received_events_url":"https://api.github.com/users/SimonDanisch/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T16:18:32Z","updated_at":"2016-06-11T16:18:32Z","body":"I fixed it in https://github.com/SimonDanisch/FixedSizeArrays.jl/pull/126\r\n"}}
{"actor":{"display_login":"SimonDanisch"}}