{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaOpt/GLPKMathProgInterface.jl/issues/26","labels_url":"https://api.github.com/repos/JuliaOpt/GLPKMathProgInterface.jl/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/JuliaOpt/GLPKMathProgInterface.jl/issues/26/comments","events_url":"https://api.github.com/repos/JuliaOpt/GLPKMathProgInterface.jl/issues/26/events","html_url":"https://github.com/JuliaOpt/GLPKMathProgInterface.jl/pull/26","id":112708071,"number":26,"title":"Fix solver option handling: `names` was deprecated in favor of `fieldnames`","user":{"login":"czlee","id":1725499,"avatar_url":"https://avatars.githubusercontent.com/u/1725499?v=3","gravatar_id":"","url":"https://api.github.com/users/czlee","html_url":"https://github.com/czlee","followers_url":"https://api.github.com/users/czlee/followers","following_url":"https://api.github.com/users/czlee/following{/other_user}","gists_url":"https://api.github.com/users/czlee/gists{/gist_id}","starred_url":"https://api.github.com/users/czlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czlee/subscriptions","organizations_url":"https://api.github.com/users/czlee/orgs","repos_url":"https://api.github.com/users/czlee/repos","events_url":"https://api.github.com/users/czlee/events{/privacy}","received_events_url":"https://api.github.com/users/czlee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-22T00:56:45Z","updated_at":"2015-10-22T02:04:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaOpt/GLPKMathProgInterface.jl/pulls/26","html_url":"https://github.com/JuliaOpt/GLPKMathProgInterface.jl/pull/26","diff_url":"https://github.com/JuliaOpt/GLPKMathProgInterface.jl/pull/26.diff","patch_url":"https://github.com/JuliaOpt/GLPKMathProgInterface.jl/pull/26.patch"},"body":"This error was happening:\r\n```\r\nERROR: LoadError: type DataType has no field names\r\n in model at /home/czlee/.julia/v0.4/GLPKMathProgInterface/src/GLPKInterfaceMIP.jl:187\r\n in buildInternalModel at /home/czlee/.julia/v0.4/JuMP/src/solvers.jl:236\r\n in solve at /home/czlee/.julia/v0.4/JuMP/src/solvers.jl:77\r\n [inlined code] from util.jl:155\r\n...\r\n```\r\n\r\nI think the issue occurred because `typeof(lpm.param).names` stopped making sense when they deprecated `names` in favor of `fieldnames` at https://github.com/JuliaLang/julia/pull/10332, and changed `DataType.names` to `DataType.name.names` in https://github.com/JuliaLang/julia/commit/afd4eb038dcd9fa3e512509f4c332a9e7763ba59, both of which are introduced in Julia 0.4.\r\n\r\n`fieldnames` isn't defined in Julia 0.3 though (as far as I can tell), so I presume this would break 0.3 compatibility.\r\n\r\nI'm new to Julia, so apologies if I got something wrong."},"comment":{"url":"https://api.github.com/repos/JuliaOpt/GLPKMathProgInterface.jl/issues/comments/150080639","html_url":"https://github.com/JuliaOpt/GLPKMathProgInterface.jl/pull/26#issuecomment-150080639","issue_url":"https://api.github.com/repos/JuliaOpt/GLPKMathProgInterface.jl/issues/26","id":150080639,"user":{"login":"czlee","id":1725499,"avatar_url":"https://avatars.githubusercontent.com/u/1725499?v=3","gravatar_id":"","url":"https://api.github.com/users/czlee","html_url":"https://github.com/czlee","followers_url":"https://api.github.com/users/czlee/followers","following_url":"https://api.github.com/users/czlee/following{/other_user}","gists_url":"https://api.github.com/users/czlee/gists{/gist_id}","starred_url":"https://api.github.com/users/czlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czlee/subscriptions","organizations_url":"https://api.github.com/users/czlee/orgs","repos_url":"https://api.github.com/users/czlee/repos","events_url":"https://api.github.com/users/czlee/events{/privacy}","received_events_url":"https://api.github.com/users/czlee/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T02:04:08Z","updated_at":"2015-10-22T02:04:08Z","body":"I'm sure that shouldn't be too hard, it was a pretty reliable bug. It should be reproducible when passing pretty much any option to `GLPKSolverMIP` and then attempting to run the solver. I'm using JuMP, which might complicate things a little with my (lack of) understanding of how `GLPKSolverMIP` is used, but will have a think about short snippets to test for it that don't rely on other packages. :smiley:"}}