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

Inline completion non-ideal given codebase context #616

Closed
cartermp opened this issue Aug 8, 2023 · 2 comments
Closed

Inline completion non-ideal given codebase context #616

cartermp opened this issue Aug 8, 2023 · 2 comments

Comments

@cartermp
Copy link

cartermp commented Aug 8, 2023

Here's a screenshot demonstrating the issue:

image

I have this code:

        user_description = input("Please describe what you want: ")
        # Make a GPT call to generate title and description
        # This will depend on how you want to generate them
        title, description = generate_title_description(user_description)

And it wanted to suggest this:

def generate_title_description(title, description):
    return f"Title: {title}\nDescription: {description}"

That seems like it's not taking codebase context into consideration, as I'm actually after something like this:

def generate_title_description(user_description):
    # do something with user_description...
@philipp-spiess
Copy link
Member

@cartermp Thanks for the detailed write-up! We're working on leveraging our code navigation data to find more relevant context that I think would be extremely helpful in cases like this -> We'll be able to find all the references to the generate_title_description function and include that in the context.

For now, unfortunately, code that is after the current cursor is not handled very well. That's something we're working on as well though!

I'll add this example to our tracking issue.

Copy link

This issue is marked as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed automatically in 5 days.

@github-actions github-actions bot added the Stale label Jan 26, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants