Closed marvindore closed 1 month ago
Currently, the internal pattern matching logic expects this exact format in the result buffer:
"Replace lines: {{start_line}}-{{end_line}}"
(e.g., "Replace lines: 5-7"
)Even minor deviations from this pattern, such as those produced by deepseek-coder-v2:16, can cause the system to fail. For example, if the result is " Replace lines: 5-7"
(with a leading space) or "Replace line: 5"
(singular), the changes won't be applied because the system doesn't recognize these variations.
I've addressed the most common variations in #589.
Please feel free to share any additional patterns you encounter or let me know if you suspect a different cause for the issue.
@ddillert thank you so much for the quick response, I can confirm that is indeed what is happening. When I switch over to using openai the functionality begins to work.
Describe the bug
After getting a code suggestion from the llm, I try to apply the change so that it creates the diff patch but only my cursor jumps to my code, the code patch diff does not get inserted. I am using Lazy for package manager and accessing the deepseek model locally via ollama.
To reproduce
}, }
Expected behavior
I expect that after pressing the 'a' key a diff would be created in my code file.
Environment
Neovim version: v0.11.0-dev-757+g5931f780e Platform: Fedora40
Repro