{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/16970","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/16970/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/16970/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/16970/events","html_url":"https://github.com/JuliaLang/julia/issues/16970","id":160749006,"number":16970,"title":"Strange BoundsError when trying to import Compose in userimg.jl","user":{"login":"tkelman","id":5934628,"avatar_url":"https://avatars.githubusercontent.com/u/5934628?v=3","gravatar_id":"","url":"https://api.github.com/users/tkelman","html_url":"https://github.com/tkelman","followers_url":"https://api.github.com/users/tkelman/followers","following_url":"https://api.github.com/users/tkelman/following{/other_user}","gists_url":"https://api.github.com/users/tkelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tkelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkelman/subscriptions","organizations_url":"https://api.github.com/users/tkelman/orgs","repos_url":"https://api.github.com/users/tkelman/repos","events_url":"https://api.github.com/users/tkelman/events{/privacy}","received_events_url":"https://api.github.com/users/tkelman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-06-16T20:06:46Z","updated_at":"2016-06-17T17:35:04Z","closed_at":null,"body":"Linux x86_64, 4accf8a4f5b68dc9bfe410ae332fdc9d7b237722 - you'll need to check out Compose to latest master to avoid an unrelated syntax error on 0.5.\r\n```\r\ntkelman@nanosoldier1:~/Julia/julia-0.5$ echo 'import Compose' > base/userimg.jl\r\ntkelman@nanosoldier1:~/Julia/julia-0.5$ make > /dev/null\r\nWARNING: Method definition (::Type{#T<:Any})(Any) in module Inference at coreimg.jl:48 overwritten in module Base at sysimg.jl:60.\r\n\r\n<a bunch of deprecation warnings that are no longer fatal and hopefully don't matter here>\r\n\r\nLoadError(\"sysimg.jl\",373,LoadError(\"/home/tkelman/Julia/julia-0.5/base/userimg.jl\",1,LoadError(\"/home/tkelman/.julia/v0.5/Compose/src/Compose.jl\",174,BoundsError(String[],(1,)))))\r\nmake[1]: *** [/home/tkelman/Julia/julia-0.5/usr/lib/julia/sys.o] Error 1\r\nmake: *** [julia-sysimg-release] Error 2\r\n```\r\n\r\nI feel like this may have worked once upon a time, before `__precompile__` existed? Though I get the same basic error on 0.4, and trying to go back to older versions of Compose doesn't change much either. It works outside of userimg, so what's happening here?"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/226832492","html_url":"https://github.com/JuliaLang/julia/issues/16970#issuecomment-226832492","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/16970","id":226832492,"user":{"login":"tkelman","id":5934628,"avatar_url":"https://avatars.githubusercontent.com/u/5934628?v=3","gravatar_id":"","url":"https://api.github.com/users/tkelman","html_url":"https://github.com/tkelman","followers_url":"https://api.github.com/users/tkelman/followers","following_url":"https://api.github.com/users/tkelman/following{/other_user}","gists_url":"https://api.github.com/users/tkelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tkelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkelman/subscriptions","organizations_url":"https://api.github.com/users/tkelman/orgs","repos_url":"https://api.github.com/users/tkelman/repos","events_url":"https://api.github.com/users/tkelman/events{/privacy}","received_events_url":"https://api.github.com/users/tkelman/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T17:35:04Z","updated_at":"2016-06-17T17:35:04Z","body":"The only reliable way to do optional dependencies and precompilation right now is to separate the code that depends on both packages being present into a third package that can unconditionally depend on both. Until `extern` gets implemented, anyway."}}
{"actor":{"display_login":"tkelman"}}