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

Faulty completions #14643

Open
KAAtheWiseGit opened this issue Dec 20, 2024 · 0 comments
Open

Faulty completions #14643

KAAtheWiseGit opened this issue Dec 20, 2024 · 0 comments
Labels
🐛 bug Something isn't working completions Issues related to tab completion

Comments

@KAAtheWiseGit
Copy link
Contributor

Describe the bug

When completing a cell path on a variable inside a closure, global variables get suggested, even though they are invalid in that position.

How to reproduce

| ls | each {|f| $f.$                                            12/20/2024 01:05:30 PM
$env                $in                 $nu                 

I ran this with nu --no-config-file, so it's not the fault of the external completion engine.

Expected behavior

No suggestions or variable-specific keys.

Configuration

key value
version 0.100.0
major 0
minor 100
patch 0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-alpine-linux-musl
rust_version rustc 1.82.0 (f6e511eec 2024-10-15) (Alpine Linux 1.82.0-r1)
cargo_version cargo 1.82.0 (8f40fc59f 2024-08-21)
build_time 2024-11-22 15:42:11 +00:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash
installed_plugins endecode 0.100.0, template 0.100.0
@KAAtheWiseGit KAAtheWiseGit added the needs-triage An issue that hasn't had any proper look label Dec 20, 2024
@sholderbach sholderbach added 🐛 bug Something isn't working completions Issues related to tab completion and removed needs-triage An issue that hasn't had any proper look labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working completions Issues related to tab completion
Projects
None yet
Development

No branches or pull requests

2 participants