JunoLab / Juno.jl

MIT License
144 stars 23 forks source link

[BUG] Incorrect "understanding" of Dict codeblock with new lines #543

Open Datseris opened 4 years ago

Datseris commented 4 years ago

Code:

newattrib = Dict(
    "title" => "Fourier seasonal + residual decomposition of CERES EBAF fields",
    "comment" => "Generated using SignalDecomposition.jl, the method \"Fourier\".",
    "history" => "\n$(now()): decomposition",
    "Conventions" => "CF-1.4",
    "institution" => "Max Planck Institute for Meteorology",
    "author" => "George Datseris",
)

when I go anywhere inside this Dict and press "Ctr+Enter", it errors , Juno doesn't understand this is a correct expression. If I select all lines of this expression and press Ctrl+enter, it works.

pfitzseb commented 4 years ago

That's happening because of the string interpolation. Will look into fixing it.