jackMort / jackMort/ChatGPT.nvim

[bug] strange behaviour for `editWithInstruction` mode

Open
#235 0 comments 0 reactions 0 assignees View on GitHub
bug good first issue help wanted
Dominant language
Lua
Stars
4k
Forks
317
PR merge metrics
No merged PRs in 30d

Description

1. Open nvim
2. `:ChatGPTEditWithInstructions`
3. Selected whole file
![image](https://github.com/jackMort/ChatGPT.nvim/assets/53742299/5264c7cc-f09b-481e-87a6-af528052e822)
4. Select code
![image](https://github.com/jackMort/ChatGPT.nvim/assets/53742299/50353bcf-4ec1-4087-8077-f4393ab14c3d)
5. Run `:ChatGPTEditWithInstructions`
6. See error
![image](https://github.com/jackMort/ChatGPT.nvim/assets/53742299/d9375d62-8057-47f8-9142-9ba1a2f37603)
7. Run `:ChatGPTEditWithInstructions` one more time
8. See only one function
![image](https://github.com/jackMort/ChatGPT.nvim/assets/53742299/6862d3ca-cded-43a0-94f4-653885a33504)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the sequence with :ChatGPTEditWithInstructions, including a whole-file selection followed by a code selection. Start by tracing the editWithInstruction command and capture the reported error and resulting output. Done means the command handles the described selections consistently without an error or dropping functions.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, vim
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.