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

don't tab complete deprecated functions #3526

Closed
StefanKarpinski opened this issue Jun 24, 2013 · 4 comments
Closed

don't tab complete deprecated functions #3526

StefanKarpinski opened this issue Jun 24, 2013 · 4 comments
Labels
REPL Julia's REPL (Read Eval Print Loop)

Comments

@StefanKarpinski
Copy link
Member

It would be ideal not to tab complete deprecated functions. Kind of a nice-to-have, but it would be nice to have.

@JeffBezanson
Copy link
Member

Some functions are only deprecated for some argument types, so we'd have to distinguish the fully deprecated from the partially deprecated.

Our globals are starting to acquire lots of properties: constant, exported, and now deprecated. I'm worried about "does name x exist" becoming too fuzzy a concept.

@StefanKarpinski
Copy link
Member Author

That's true, but the only names we'd want to avoid tab completing are the ones that have no non-deprecated methods, so that's not really an issue. I'm not sure that we can really avoid this kind of complexity and I don't really think that it actually muddles the question of whether a name exists or not – rather, it adds properties to names that definitely exist. The real complication to that question, honestly, is the whole using business, which makes it quite subtle whether a name exists and what it means.

@staticfloat
Copy link
Member

Just to reiterate @lindahua's idea of representing this via data attached to functions, that approach would depend on #3988.

@KristofferC
Copy link
Member

We do not tab complete deprecated bindings so if a function is fully deprecated its binding can be deprecated and thus won't tab-complete.

KristofferC pushed a commit that referenced this issue Aug 25, 2023
Stdlib: Pkg
URL: https://github.com/JuliaLang/Pkg.jl.git
Stdlib branch: master
Julia branch: master
Old commit: 08e1eb6ed
New commit: 047734e4c
Julia version: 1.11.0-DEV
Pkg version: 1.11.0
Bump invoked by: @DilumAluthge
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaLang/Pkg.jl@08e1eb6...047734e

```
$ git log --oneline 08e1eb6ed..047734e4c
047734e4c Test suite: activate a temp project if we need to install HistoricalStdlibVersions during the test suite (#3602)
ff833e9d4 Throw an error if the current Julia version (`Base.VERSION`) is incompatible with the `[compat]` entry for `julia` in the `Project.toml` file (#3526)
2c37a5907 Fix lacking `subdir` information when altering packages (#3597)
051ab5bdd Don't mutate project.deps during project write (#3591)
f4d64d2c7 Update manifest entry of project for non-local manifests (#3579)
```

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

5 participants