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

E903: Process failed to start: too many open files #50

Open
kurko opened this issue Aug 12, 2023 · 3 comments
Open

E903: Process failed to start: too many open files #50

kurko opened this issue Aug 12, 2023 · 3 comments

Comments

@kurko
Copy link

kurko commented Aug 12, 2023

I'm getting an error that I'm not sure its root cause is vim-ai, but it is happening when using the plugin.

I'm getting the error from the title when the plugin outputs lines to the editor, generally after the 14th line.

Here's an example prompt:

:AI write an rspec file template so I can start coding on it. the class name is SomeJob

It starts outputting code, and when it finishes line 14, it errors out with the following:

Error detected while processing function vim_ai#AIRun[19]..provider#python3#Call:
line   18:
Error invoking 'python_execute_file' on channel 2254 (python3-script-host):
Traceback (most recent call last):
  File "/Users/alex/.vim/plugins/vim-ai/py/complete.py", line 55, in <module>
    handle_completion_error(error)
  File "/Users/alex/.vim/plugins/vim-ai/py/utils.py", line 172, in handle_completion_error
    raise error
  File "/Users/alex/.vim/plugins/vim-ai/py/complete.py", line 52, in <module>
    render_text_chunks(text_chunks)
  File "/Users/alex/.vim/plugins/vim-ai/py/utils.py", line 57, in render_text_chunks
    vim.command("normal! a" + text)
  File "/opt/homebrew/lib/python3.11/site-packages/pynvim/api/nvim.py", line 287, in command
    return self.request('nvim_command', string, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: function vim_ai#AIRun[19]..provider#python3#Call[18]..vim_ai#AIRun[19]..InsertLeave Autocommands for "*"..function ale#Queue[33]..<SNR>1
37_Lint[20]..ale#engine#RunLinters[4]..<SNR>173_GetLintFileValues[27]..<lambda>4966[1]..<SNR>173_RunLinters[12]..<SNR>173_RunLinter[6]..<SNR>173_RunIfExecutable[43].
.<SNR>173_RunJob[27]..ale#command#Run[65]..ale#job#Start, line 21: Vim(let):E903: Process failed to start: too many open files: "/bin/bash"
Press ENTER or type command to continue
@aessiane
Copy link

aessiane commented Oct 5, 2023

I have the same issue!

@willemt
Copy link

willemt commented Nov 13, 2023

I had this issue too on macOS, but after running ulimit -n 5000 in my shell it has seemed to have gone away

@kurko
Copy link
Author

kurko commented Nov 15, 2023

No luck for me with ulimit 🙂

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

3 participants