print missing from completions in function scope with isIncomplete: true
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15.6k
- Forks
- 1.8k
- Avg merge
- 12h 13m
- Merged PRs (30d)
- 52
Description
**Describe the bug**
When requesting completions for the word pri, the builtin print is missing from the returned items. Reproduces inside a function body, and also at module level once any import exists in the file. At module level in a completely empty file, print is returned. Responses always carry isIncomplete: true.
**Code or Screenshots**
https://github.com/user-attachments/assets/7ee51451-48a2-49e8-88a2-13ff75316e08
**VS Code extension or command-line**
I use nvim v0.12.4, [Here is my nvim config](https://github.com/Magiclovekorean/dotfiles/tree/main/.config/nvim)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing completion requests for `pri` inside a function and at module level after adding an import, then compare them with an empty module where `print` is returned. Trace the completion handling for responses with `isIncomplete: true`; done when the builtin `print` appears in all described scopes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100