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

global-copilot-mode Opens too many files #337

Open
djhunter67 opened this issue Sep 2, 2024 · 1 comment
Open

global-copilot-mode Opens too many files #337

djhunter67 opened this issue Sep 2, 2024 · 1 comment

Comments

@djhunter67
Copy link

Too many files open

  • I have recompiled emacs with the relevant compile flags and increased my Arch Linux max number of open files
  • Spent many hours investigating after spending months activating copilot using copilot-diagnose instead of global-copilot-mode

Problem

  • Read the elisp source code and learned that global-copilot-mode enables copilot in all open buffers.

Suspicion

  • global-copilot-mode actually enables copilot for every file ever previously opened.

Rust

  • Over the past 12 months or so I have started every project in Rust and everytime global-copilot-mode is executed emacs runs into the Too many open files error.
  • Using global-copilot-mode appears to enable copilot in every single file I have ever used with my LSP simultaneously. Hence, not encountering this issue when I first started working and using copilot at work. I do not know how to rationalize copilot being immediately available in files that I open for the first time in a instance of work but have opened previously in the life of the project. Even other projects I open, while developing on a particular project, have copilot immediately available for them with any indication copilot was enabled for them.

Proposed solution

  • projectile-copilot-mode
  • Only enable copilot in project-specific buffers.

P.S.

If I have completely missed the mark please take away the following:

  • On two different Arch development machines (work and home) emacs soft locks with 'Too many open files' error after enabling global-copilot-mode.
@ncaq
Copy link
Contributor

ncaq commented Sep 6, 2024

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