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
I often use Profile.Allocs.@profile without using Profile beforehand. I suppose this needs some small tweak in this package somewhere, to make the following part of my startup.jl work.
julia> BasicAutoloads.register_autoloads([
["foo"] => :(println("Foo!")),
["bar"] => :(println("Bar!")),
])
julia> foo
Foo!
ERROR: UndefVarError: `foo` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
julia> x.bar
ERROR: UndefVarError: `x` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ REPL[7]:1
Entering Profile.Allocs.@profile in the REPL should but does not trigger autoloads for "@Profile".
the "Profile.Allocs.@profile" trigger will only match var"Profile.Allocs.@profile", not Profile.Allocs.@Profile. As per the docstring of BasicAutoloads.register_autoloads`
Each trigger must be a String. If the trigger is found as a symbol (e.g. variable, function, or macro name) in an input expression to the REPL...
I often use
Profile.Allocs.@profile
withoutusing Profile
beforehand. I suppose this needs some small tweak in this package somewhere, to make the following part of mystartup.jl
work.The text was updated successfully, but these errors were encountered: