Skip to content

Tab completion not working with module specification in @time calls involving another macro #55429

@jishnub

Description

@jishnub

This seems similar to #51827.
What doesn't work:

julia> @time @eval Base.Iden<TAB>

No completion or suggestions are offered.
Using either @time or @eval in isolation works, but the combination doesn't.
Versioninfo:

julia> versioninfo()
Julia Version 1.12.0-DEV.1024
Commit e7e8768a775 (2024-08-08 23:44 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)
Environment:
  JULIA_EDITOR = subl

However, this behavior is present on v1.10.4 as well.

This isn't specific to @eval, as the same behavior is seen if other macros are used:

julia> @time @code_warntype Base.Iden<TAB>

Curiously, swapping the order of the macros gets completion to work:

julia> @eval @time Base.Iden<TAB>
julia> @code_warntype @time Base.Iden<TAB>

These complete as expected, so perhaps it's only certain macros for which this doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)bugIndicates an unexpected problem or unintended behaviorcompletionsTab and autocompletion in the repl

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions