{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/25313","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/25313/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/25313/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/25313/events","html_url":"https://github.com/JuliaLang/julia/issues/25313","id":285034414,"number":25313,"title":"Conditional \"using\" not working?","user":{"login":"PetrKryslUCSD","id":9855832,"avatar_url":"https://avatars0.githubusercontent.com/u/9855832?v=4","gravatar_id":"","url":"https://api.github.com/users/PetrKryslUCSD","html_url":"https://github.com/PetrKryslUCSD","followers_url":"https://api.github.com/users/PetrKryslUCSD/followers","following_url":"https://api.github.com/users/PetrKryslUCSD/following{/other_user}","gists_url":"https://api.github.com/users/PetrKryslUCSD/gists{/gist_id}","starred_url":"https://api.github.com/users/PetrKryslUCSD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PetrKryslUCSD/subscriptions","organizations_url":"https://api.github.com/users/PetrKryslUCSD/orgs","repos_url":"https://api.github.com/users/PetrKryslUCSD/repos","events_url":"https://api.github.com/users/PetrKryslUCSD/events{/privacy}","received_events_url":"https://api.github.com/users/PetrKryslUCSD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-29T05:01:30Z","updated_at":"2017-12-29T05:03:55Z","closed_at":null,"author_association":"NONE","body":"The following used to work for 0.7.\r\n```\r\nif VERSION >= v\"0.7-\"\r\n    using   IterativeEigenSolvers\r\nend\r\n```\r\nWith today's nightly this is working no longer, but including the module as\r\n```\r\nusing IterativeEigensolvers\r\n```\r\ndoes.\r\n\r\nHere is the error I get when I use the conditional \"using\".\r\n```\r\n[ Warning: Replacing module `IterativeEigensolvers` @ Base loading.jl:332\r\nAcoustics: Error During Test at C:\\Users\\PetrKrysl\\.julia\\v0.7\\FinEtools\\test\\runtests.jl:3\r\n  Got an exception of type LoadError outside of a @test\r\n  LoadError: KeyError: key :IterativeEigenSolvers not found\r\n  Stacktrace:\r\n   [1] getindex at .\\abstractdict.jl:491 [inlined]\r\n   [2] root_module at .\\loading.jl:357 [inlined]\r\n   [3] require(::Symbol) at .\\loading.jl:321\r\n   [4] top-level scope at C:\\Users\\PetrKrysl\\.julia\\v0.7\\FinEtools\\test\\test_acoustics.jl:210\r\n   [5] include(::Module, ::String) at .\\boot.jl:295\r\n   [6] include_relative(::Module, ::String) at .\\loading.jl:503\r\n   [7] include(::Module, ::String) at .\\sysimg.jl:26\r\n   [8] include(::String) at .\\sysimg.jl:65\r\n   [9] macro expansion at C:\\Users\\PetrKrysl\\.julia\\v0.7\\FinEtools\\test\\runtests.jl:3 [inlined]\r\n   [10] macro expansion at C:\\cygwin\\home\\Administrator\\buildbot\\worker\\package_win64\\build\\usr\\share\\julia\\site\\v0.7\\Test\\src\\Test.jl:980 [inlined]\r\n   [11] top-level scope at C:\\Users\\PetrKrysl\\.julia\\v0.7\\FinEtools\\test\\runtests.jl:3\r\n   [12] include(::Module, ::String) at .\\boot.jl:295\r\n   [13] include_relative(::Module, ::String) at .\\loading.jl:503\r\n   [14] include(::Module, ::String) at .\\sysimg.jl:26\r\n   [15] process_options(::Base.JLOptions) at .\\client.jl:332\r\n   [16] _start() at .\\client.jl:383\r\n  in expression starting at C:\\Users\\PetrKrysl\\.julia\\v0.7\\FinEtools\\test\\test_acoustics.jl:210\r\n```\r\nThe error fires at the `using` line within the if block."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/354398463","html_url":"https://github.com/JuliaLang/julia/issues/25313#issuecomment-354398463","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/25313","id":354398463,"user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars1.githubusercontent.com/u/1282691?v=4","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"created_at":"2017-12-29T05:03:55Z","updated_at":"2017-12-29T05:03:55Z","author_association":"CONTRIBUTOR","body":"`S`  -> `s` in the module name? "}}
{"actor":{"display_login":"KristofferC"}}