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 doesn't see exported macros in the same cell where package is "using" #1340

Closed
bvdmitri opened this issue Jul 28, 2021 · 3 comments
Closed

Comments

@bvdmitri
Copy link

The issue is pretty straightforward, Pluto.jl doesn't see any exported macro from any package within the same cell where using SomePackage is called.

image

If you prefix macro with a package name it also doesn't work:

image

@fonsp
Copy link
Owner

fonsp commented Jul 28, 2021

This is a property of Julia: macros are expanded in an expression before evaluating it.

In this case, begin groups everything into a single expression, and the macro is not defined before evaluating it. The same happens in the REPL, or any other Julia environment.

@bvdmitri
Copy link
Author

@fonsp I see, that makes sense. This issue can be closed I believe.

@Pangoraw
Copy link
Collaborator

Pangoraw commented Jul 28, 2021

Sorry about the wrong pointer. You can also use DrWatson.@quickactivate to tell Pluto that the activate cell depends on DrWatson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants