Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jishnub opened this issue Aug 9, 2024 · 0 comments · May be fixed by #57767 or #56281
Open

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

jishnub opened this issue Aug 9, 2024 · 0 comments · May be fixed by #57767 or #56281
Labels
bug Indicates an unexpected problem or unintended behavior completions Tab and autocompletion in the repl REPL Julia's REPL (Read Eval Print Loop)

Comments

@jishnub
Copy link
Member

jishnub commented Aug 9, 2024

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.

@jishnub jishnub added the REPL Julia's REPL (Read Eval Print Loop) label Aug 9, 2024
@IanButterworth IanButterworth added the completions Tab and autocompletion in the repl label Sep 24, 2024
@IanButterworth IanButterworth added the bug Indicates an unexpected problem or unintended behavior label Oct 20, 2024
@xal-0 xal-0 linked a pull request Mar 13, 2025 that will close this issue
@giordano giordano linked a pull request Mar 14, 2025 that will close this issue
xal-0 added a commit to xal-0/julia that referenced this issue Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior completions Tab and autocompletion in the repl REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
2 participants