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

Pluto imports packages from false if-condition statements #1365

Closed
bvdmitri opened this issue Aug 4, 2021 · 1 comment
Closed

Pluto imports packages from false if-condition statements #1365

bvdmitri opened this issue Aug 4, 2021 · 1 comment
Labels
one day Closed because we won't work on it soon, will be opened again later.

Comments

@bvdmitri
Copy link

bvdmitri commented Aug 4, 2021

Pluto imports packages in global name space in cases where import is guarded with some condition, mwe:

image

This behaviour might be wrong, especially if using SomePackage has some side-effects and name conflicts

For example:

if false
    using CairoMakie
else
    using Plots
end

results in

WARNING: both Plots and CairoMakie export "plot"; uses of it in module workspace11 must be qualified

In REPL for example that doesn't happen and it is possible to load packages based on some condition.

image

@fonsp fonsp added the one day Closed because we won't work on it soon, will be opened again later. label Nov 3, 2021
@fonsp
Copy link
Owner

fonsp commented Nov 3, 2021

This is too difficult too fix right now :)

@fonsp fonsp closed this as completed Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one day Closed because we won't work on it soon, will be opened again later.
Projects
None yet
Development

No branches or pull requests

2 participants