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

Automatically add "fix" on compile errors #318

Open
beberman opened this issue Jun 16, 2024 · 2 comments
Open

Automatically add "fix" on compile errors #318

beberman opened this issue Jun 16, 2024 · 2 comments

Comments

@beberman
Copy link

My biggest issue with copilot (not the integration) is that it generates code that looks right but doesn't actually compile because the function names are wrong. It would be amazing if comments were automatically inserted into a code block that said "fix" and then showed the list of errors. I did some experiments and this additional hint can help copilot understand how to fix the code.

@dov
Copy link

dov commented Jun 23, 2024

The problem is that copilot and eglot (the emacs lsp client) don't talk to one another. So copilot "hallucinates" based on generic code, and not based on the actual symbols. One small improvement would be if the client at least filters the results so that eglot compatible suggestions are given higher priority.

@dov
Copy link

dov commented Sep 23, 2024

I'll open a separate issue about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants