Unhelpful completions #358
Replies: 34 comments 53 replies
-
Seeing this a fair bit. It seems the newline after the comment is being ignored, or else we need to add some heuristics. |
Beta Was this translation helpful? Give feedback.
-
I did not expect or want this to generate a multi-line completion. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
I haven't caught a picture of this but there's one issue that I find super annoying that happened to me a lot of times today. It happens when you move the cursor around, making some changes to a larger chunk of code, when sometimes you're accidentally hitting an earlier cache for a very large and now unrelated mutli-line completion. I think for multi-line completions to be served from cache, we should still include a few hundred ms of a delay, just to make sure the user is not immediately editing the text. 🤔 |
Beta Was this translation helpful? Give feedback.
-
Seems to be because the context after the cursor is not sent to the LLM |
Beta Was this translation helpful? Give feedback.
-
Cody recommending an exactly identical comment (from @Strum355) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
@philipp-spiess In some cases, I see like incomplete generated completions. Can we handle this case? |
Beta Was this translation helpful? Give feedback.
-
@philipp-spiess This early completion new UX is awesome! Although, there's this bracket issue quite often. Can we fix this? This might be a known issue, so I just wanted to add it here to keep track of. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
When the whole line is deleted ( Screen.Recording.2023-08-09.at.10.09.05.mov(Other code completion extensions behave the same) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Looks like comparing against the next non-empty line alone is not enough 😬 cc @vovakulikov |
Beta Was this translation helpful? Give feedback.
-
I often find multi-line completions useful, but sometimes they are just wrong. Common characteristics of unhelpful multi-line completions (mentioned in case they help with heuristics to detect and avoid them):
|
Beta Was this translation helpful? Give feedback.
-
Cody suggests code that is already present |
Beta Was this translation helpful? Give feedback.
-
VS Code, Cody suggests declaring a variable inside an object literal |
Beta Was this translation helpful? Give feedback.
-
It would be nice if a completion (like |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
After typing Expected |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@philipp-spiess Not sure if there's any change to the model being used with completions, but I am getting a lot of unhelpful completions while working with Python codebases. Some of them are:
|
Beta Was this translation helpful? Give feedback.
-
Cody'd keep making the same suggestions after accepting it: issues_944.repeated.suggestions.mp4Issue filed: #944 |
Beta Was this translation helpful? Give feedback.
-
JetBrains, local build. Cody autocomplete suggested defining a function inside of another function. The resulting code would not parse |
Beta Was this translation helpful? Give feedback.
-
I was trying to get Cody autocomplete to find the Intellij IDEA API to get the name of the current JetBrains product (IntelliJ/GoLand/PhpStorm/...) and it suggested the product name |
Beta Was this translation helpful? Give feedback.
-
reported by @deepak2431
|
Beta Was this translation helpful? Give feedback.
-
Suggested the same code from the other resources in the same file. It looks like the cache improvements. CC: @abeatrix |
Beta Was this translation helpful? Give feedback.
-
Unhelpful single-line completion in TypeScript (via WebStorm) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello, we will be closing our GitHub Discussions and moving to our new community forum. You can log in using your GitHub account. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Whenever Cody gives you an unhelpful completion, post a new comment here with:
Beta Was this translation helpful? Give feedback.
All reactions