Closed dddddjent closed 9 months ago
Does your Documents dir contain .git folder or package.json file? and do you run nvim . inside Documents or you run in elsewhere and navigate to Documents dir?
I think there are no .git folder and package.json file. And I run nvim in Documents directly.
Plugin only works in dirs where .git/ or package.json file exist, can you share more details, whats is in your Documents folder, do you have nested projects maybe, or in ~/ home folder you have some projects that contains this files and folders that I mention above. Does nested folder rn folder from ~/ have .git or package.json file? I need these details so I can try to reproduce same problem.
My Documents folder is the /home/ljl(my user name)/Documents. It contains a lot of projects and files, and many of them contain .git folder. I created a ThirdParty folder under Documents, and put a gcc-linaro compiler (which can be seen in the screenshot above) inside. When the function comes to the directories end with .html/, it generates the error. And there's no .git/ or package.json in that compiler's folder
Error detected while processing /home/ljl/.config/nvim/init.lua: E5113: Error while calling lua chunk: ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: .../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:404: Failed to spawn process: { _additional_on_exit_callbacks = {}, _shutdown_check = <userdata 1>, _stderr_results = {}, _stdout_results = {}, _user_on_exit = <function 1>, args = { "-sSL", "-D", "/run/user/1000/plenary_curl_fc354d0c.headers", "--compressed", "-X", "GET", "http://www.doxygen.org/index.html" }, command = "curl", enable_handlers = true, enable_recording = true, interactive = true, pid = "EMFILE: too many open files", stderr = <userdata 2>, stdin = <userdata 3>, stdout = <userdata 4>, user_data = {},
When I try to open my nvim at ~/Documents, it parses every files (or may be even directories?) end up with .html So it generates this error: I add a print() in hrefs.lua, and it prints the file name for me. Here's the result before the error: However, this doesn't happen when I get into the directory above or inside. I don't know why it only happens at that specific dir.