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
Tab-completing a name prefixed with @, like @undefined.<tab> shows an error, when i think ideally it would just do nothing. I ran into this when trying to type @Meta.dump and save myself those 4 extra keystrokes.
Here's a longer story, with example (using Julia v1.6.2):
In the REPL, you can tab-complete to get a list of accessible name e.g.
And if you try to tab-complete after an undefined name, then nothing happens (well, the little julia> prompt will flash, which is cute and helpful, but there'l be no output)
julia> Nonexistant. # <tab> ...nothing happens
You can (unfortunately, in my view) spell macros like Meta.@dump as @Meta.dump
julia> Meta.@dump1+2
Expr
head: Symbol call
args:Array{Any}((3,))
1: Symbol +2: Int64 13: Int64 2
julia>@Meta.dump 1+2
Expr
head: Symbol call
args:Array{Any}((3,))
1: Symbol +2: Int64 13: Int64 2
But if you combine these two things and try to tab-complete @Meta.<tab>, then a big ugly error message is shown:
(as this shows, even in the case where these is a valid name available e.g. @Meta.dump)
I think the appropriate behaviour here would be either (i) do nothing (treat @Meta.<tab> or @undefined.<tab> same as Nonexistant.<tab>), or possibly (ii) show the macro names that are valid e.g. @Meta.<tab> would show
julia>@Meta. # <tab>
dump lower
But really i'd be happy with the first option (i) do nothing.
The text was updated successfully, but these errors were encountered:
nickrobinson251
changed the title
REPL shows error when trying to tab-complete after macro name @undefined.<tab>
REPL shows error when trying to tab-complete after undefined macro name like @undefined.<tab>Nov 4, 2021
Tab-completing a name prefixed with
@
, like@undefined.<tab>
shows an error, when i think ideally it would just do nothing. I ran into this when trying to type@Meta.dump
and save myself those 4 extra keystrokes.Here's a longer story, with example (using Julia v1.6.2):
In the REPL, you can tab-complete to get a list of accessible name e.g.
And if you try to tab-complete after an undefined name, then nothing happens (well, the little
julia>
prompt will flash, which is cute and helpful, but there'l be no output)You can (unfortunately, in my view) spell macros like
Meta.@dump
as@Meta.dump
But if you combine these two things and try to tab-complete
@Meta.<tab>
, then a big ugly error message is shown:(as this shows, even in the case where these is a valid name available e.g.
@Meta.dump
)I think the appropriate behaviour here would be either (i) do nothing (treat
@Meta.<tab>
or@undefined.<tab>
same asNonexistant.<tab>
), or possibly (ii) show the macro names that are valid e.g.@Meta.<tab>
would showBut really i'd be happy with the first option (i) do nothing.
The text was updated successfully, but these errors were encountered: