You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsing a documented function with a missing (undefined) macro gives an error related to the doc expression (which is valid):
andrew@laptop:/tmp> cat nasty.jl
"""this is a doc string"""
function myfunc()
@doesnotexist begin
end
end
andrew@laptop:/tmp> julia-0.4 nasty.jl
ERROR: LoadError: invalid doc expression:
function myfunc()
$(Expr(:line, 4, symbol("/tmp/nasty.jl")))
@doesnotexist begin
end
end
in include at ./boot.jl:261
in include_from_node1 at ./loading.jl:304
in process_options at ./client.jl:308
in _start at ./client.jl:411
while loading /tmp/nasty.jl, in expression starting on line 7
Using
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.1-pre+22 (2015-11-01 00:06 UTC)
_/ |\__'_|_|_|\__'_| | Commit 669222e (5 days old release-0.4)
|__/ | x86_64-suse-linux
The text was updated successfully, but these errors were encountered:
When `macroexpand` fails due to an undefined macro in the expression
return the resulting error rather than the more generic and misleading
"invalid doc expression..." error message.
FixesJuliaLang#13905.
When `macroexpand` fails due to an undefined macro in the expression
return the resulting error rather than the more generic and misleading
"invalid doc expression..." error message.
Fixes#13905.
(cherry picked from commit c4c38d1)
ref #13908
Parsing a documented function with a missing (undefined) macro gives an error related to the doc expression (which is valid):
Using
The text was updated successfully, but these errors were encountered: