Skip to content

REPL: cannot assign variables whose names match a name exported from Base after any tab autocompletion #30234

@yurivish

Description

@yurivish

If you press tab twice to autocomplete a name, the variable names is no longer assignable in global scope.

In a new REPL session:

julia> f<tab><tab>
factorial   fieldoffset  finalizer    findnext     flipsign     for
false       fieldtype    finally      findprev     float        foreach
falses      filemode     findall      first        floatmax     frexp
fd          filesize     findfirst    firstindex   floatmin     fullname
fdio        fill         findlast     fld          floor        function
fetch       fill!        findmax      fld1         flush        functionloc
fieldcount  filter       findmax!     fldmod       fma
fieldname   filter!      findmin      fldmod1      foldl
fieldnames  finalize     findmin!     flip         foldr
julia> names = 10
ERROR: cannot assign variable Base.names from module Main
Stacktrace:
 [1] top-level scope at none:0

julia> versioninfo()
Julia Version 1.0.2
Commit d789231e99 (2018-11-08 20:11 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, ivybridge)
Environment:
  JULIA_EDITOR = subl

I saw a few related issues (e.g. #23677) but am not sure if they describe the same issue. If they do, feel free to close.

Metadata

Metadata

Assignees

Labels

REPLJulia's REPL (Read Eval Print Loop)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions