-
Notifications
You must be signed in to change notification settings - Fork 16
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
Potential conflict with Pluto? #39
Comments
FWIW surrounding the block with another |
Hah I remember seeing this error once and not understanding it, but now I do. The problem is that the string julia> Meta.@dump @chain begin
"3,4,3,1,2"
strip
split(",")
end
Expr
head: Symbol macrocall
args: Array{Any}((3,))
1: Symbol @chain
2: LineNumberNode
line: Int64 1
file: Symbol REPL[5]
3: Expr
head: Symbol block
args: Array{Any}((4,))
1: LineNumberNode
line: Int64 2
file: Symbol REPL[5]
2: Expr
head: Symbol macrocall
args: Array{Any}((4,))
1: GlobalRef
mod: Module Core
name: Symbol @doc
2: LineNumberNode
line: Int64 2
file: Symbol REPL[5]
3: String "3,4,3,1,2"
4: Symbol strip
3: LineNumberNode
line: Int64 4
file: Symbol REPL[5]
4: Expr
head: Symbol call
args: Array{Any}((2,))
1: Symbol split
2: String "," Of course, now that I think about it, I could specifically intercept this situation and re-expand the doc macro call into a string and a function.. |
The workaround is to put the string before the |
Thanks @jkrumbiegel! I'm less familiar with how this works — should I put an issue in Pluto? Or is this unavoidable on their side too? |
No they're just expanding the macro and finding the docstring, I could try to fix that, remove the doc string in the first line if there's one |
Fixed in #41 |
I'm new to Julia and so I might be making a naive mistake.
In Pluto, running something like this prints the docs! This may be because in pluto, the docs are offered in a pop-up on the bottom right.
and running
returns an error
It's not purely a Pluto issue though —
@_
fromUnderscores.jl
doesn't have this problem, maybe because it doesn't use multiple lines?Thank you!
The text was updated successfully, but these errors were encountered: