Skip to content

<TAB> completion for "~" should hint nothing #22599

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

Closed
iagobaapellaniz opened this issue Jun 28, 2017 · 4 comments
Closed

<TAB> completion for "~" should hint nothing #22599

iagobaapellaniz opened this issue Jun 28, 2017 · 4 comments
Labels
filesystem Underlying file system and functions that use it REPL Julia's REPL (Read Eval Print Loop)

Comments

@iagobaapellaniz
Copy link
Contributor

iagobaapellaniz commented Jun 28, 2017

Let me show you a simple example, assuming there is a Documents/ folder in $HOME, of this bug

julia> cd("~/Doc

and hitting <TAB> one gets

julia> cd("~/Documents/")
ERROR: chdir ~/Documents/: no such file or directory (ENOENT)
Stacktrace:
 [1] uv_error at ./libuv.jl:68 [inlined]
 [2] cd(::String) at ./file.jl:50

whichever is the current directory.

@ararslan
Copy link
Member

This is because we don't perform tilde expansion in paths. See #1136

@iagobaapellaniz
Copy link
Contributor Author

iagobaapellaniz commented Jun 28, 2017

@ararslan Then <TAB> should give nothing. But that's not what happens

@iagobaapellaniz iagobaapellaniz changed the title <TAB> completion for "~" works but it is an invalid path <TAB> completion for "~" should hint nothing Jun 28, 2017
@ararslan
Copy link
Member

Will reopen as a suggested change

@ararslan ararslan reopened this Jun 28, 2017
@ararslan ararslan added filesystem Underlying file system and functions that use it REPL Julia's REPL (Read Eval Print Loop) labels Jun 28, 2017
@TotalVerb
Copy link
Contributor

Can we just improve this error message by checking if ~ is in the result, and suggesting user possibly call expanduser if so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filesystem Underlying file system and functions that use it REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

3 participants