Skip to content

[Bug] Error when using search tool in workspaces with 20 or more projects open #24

Open

Description

@mxalis

Environment

  • OS: Windows 11
  • Eclipse Version: 2026-03
  • Plugin Version: 0.16

Describe the bug
When Copilot is trying to search using the built in ripgrep tool in a larger-than-micro sized workspace (>= 20 projects, eg Maven or Gradle submodules) the tool fails with error messages related to task queue size exceeded:

[Error] [ripgrepProcessManager] Task queue limit reached: 20

To Reproduce
Steps to reproduce the behavior:

  1. Open a workspace with at least 20 projects open
  2. Assign a task to Copilot in Agent mode (task should require Copilot to search files)
  3. Search files task fails and Copilot failovers to using findstr in command line, requiring user approval continuously.

This pretty much forces you to constantly babysit Copilot and click Approve on the approval requests for using findstr

Expected behavior
Built in search tool should work even in workspaces with >= 20 projects

I understand the 20 queue limit is hard coded somewhere and it may be difficult to have it being adjustable. But it would be very much appreciated if at least the hard coded limit could be raised to something like 100 or 200.

Activity

  1. added
    bug
    on Apr 27, 2026
  2. iloveeclipse commented on Apr 27, 2026

    @iloveeclipse
    Contributor

    I've also encountered few times that agents started to search my entire workstation content (started searchat /), which makes no sense (and of course failed later while looking on all NFS mounts) if the only files needed were located inside the specific project.

    I wonder if the plugin can use a wrapper around "built in" Eclipse text search engine API and told agents to use that wrapper instead of external grep? See org.eclipse.search.core.text.TextSearchEngine & friends. It would not be only faster but more accurate.

  3. changed the title [-][Bug][/-] [+][Bug] Error when using search tool in workspaces with 20 or more projects open[/+] on Apr 27, 2026
  4. jdneo commented on Apr 29, 2026

    @jdneo
    Member

    Andrey Loskutov (@iloveeclipse)

    If I use

    to find 'workspacefolders' instead of one IProject, one workspace folder, will it breaks your case?

    Or in other words, in your workspace setup, does each sub-module also contains its own .md?

  5. iloveeclipse commented on Apr 29, 2026

    @iloveeclipse
    Contributor

    Or in other words, in your workspace setup, does each sub-module also contains its own .md?

    I believe the question belongs to another ticket? #62

    In any case: we don't use nested projects, but all projects are inside one single and huge git repository.

  6. jdneo commented on May 6, 2026

    @jdneo
    Member

    In any case: we don't use nested projects, but all projects are inside one single and huge git repository.

    Then what about cli? I mean, if you or your team member uses cli agents (like copilot cli), do you open it under the root of the huge git repo?

  7. iloveeclipse commented on May 6, 2026

    @iloveeclipse
    Contributor

    Then what about cli? I mean, if you or your team member uses cli agents (like copilot cli), do you open it under the root of the huge git repo?

    No idea, I'm not CLI user :-)
    Philipp K. (@Philipp0205) : any insights?

  8. jdneo commented on May 6, 2026

    @jdneo
    Member

    Just to provide more context here. Currently we treat every IProject as a workspace folder, but that introduces some issues like this one.

    I was thinking about making the root folder containing .git/ as the workspace folder

  9. iloveeclipse commented on May 6, 2026

    @iloveeclipse
    Contributor

    I was thinking about making the root folder containing .git/ as the workspace folder

    Well, it will most likely work for many "small" repositories, but probably not well for our huge one, but this need to be evaluated.

    It will be fore sure better to start search from git repository root and not from file system root as I've seen few times.

    I believe this ticket is very similar to #62 in the sense, the context for search ideally should be linked to the projects of referenced files in the chat view, but it can also be linked to git repositories which include referenced files.

    Dietrich Travkin (@travkin79), Sheng Chen (@jdneo) Actually I wonder if this should be a third option in the #136, like

    • All projects
    • referenced projects
    • referenced git repositories

    and same settings could also apply for the search?

  10. jdneo commented on May 6, 2026

    @jdneo
    Member

    Dietrich Travkin (@travkin79), Sheng Chen (@jdneo) Actually I wonder if this should be a third option in the #136, like

    • All projects
    • referenced projects
    • referenced git repositories

    and same settings could also apply for the search?

    This looks good to me.

    Let's keep #136 as its current scope. The new setting should be introduced in another pr

  11. travkin79 commented on May 6, 2026

    @travkin79
    Contributor

    The options

    • referenced projects
    • referenced git repositories

    look to me as if they could be both active at the same time, at least collecting custom instructions from referenced projects and git repos at the same time could make sense for repos with multiple (hierarchical?) projects. WDYT?

  12. jdneo commented on May 6, 2026

    @jdneo
    Member

    referenced projects should contains referenced git repositories. Cuz usually the root project(also an IProject) is the git repo.

  13. iloveeclipse commented on May 6, 2026

    @iloveeclipse
    Contributor

    Cuz usually the root project(also an IProject) is the git repo.

    Nope. In Eclipse or also our product a single repo hosts multiple projects :-)

  14. jdneo commented on May 7, 2026

    @jdneo
    Member

    Cuz usually the root project(also an IProject) is the git repo.

    Nope. In Eclipse or also our product a single repo hosts multiple projects :-)

    So the root folder is not imported as an IProject into the workspace?

  15. iloveeclipse commented on May 7, 2026

    @iloveeclipse
    Contributor

    So the root folder is not imported as an IProject into the workspace?

    Correct. Check for example https://github.com/eclipse-platform/eclipse.platform (all other Eclipse SDK repos are similar).

    Each has few folders under the root that host groups of related projects (tests, examples, production code for different domains etc). In each group folder there are either again some groups of projects or multiple projects.
    The only real Eclipse projects (IProject corresponds to .project files in the repo) are deeper in the tree, never at the root folder.

    In our aplication is is even more extreme, we have significantly more code, to understand it is like a full operating system from low level drivers up to UI layer. In both cases (Eclipse platform & our app) a root project doesn't make any sense.

  16. apeteri commented on May 7, 2026

    @apeteri

    The Maven project importer can pick up parent and aggregator POMs and create projects for them, so directories containing a pom.xml file will also be represented as Eclipse projects configured with the Maven project nature ID. This would include the root directory of eclipse-platform.

    Some Maven sub-modules are POM-less, like in the case of https://github.com/eclipse-platform/eclipse.platform/blob/master/runtime/pom.xml and https://github.com/eclipse-platform/eclipse.platform/blob/master/runtime/bundles/build.properties: the former refers to sub-modules that are only represented as folders and a small build.properties file.

  17. iloveeclipse commented on May 7, 2026

    @iloveeclipse
    Contributor

    The Maven project importer can

    Not every project/repo/organisation uses maven.

  18. apeteri commented on May 7, 2026

    @apeteri

    I can't disagree with this statement 🙂 Note however that both Eclipse Platform and OP uses Maven, and if projects from such Git repositories are imported with m2e installed, you can end up with IProjects standing in for parent and aggregator modules, and this includes the working directory (root) of the repository.

    ...so it either is or isn't a project. This then has implications on whether Copilot for Eclipse can rely on the search infrastructure built into Eclipse, I imagine.

  19. mxalis commented on May 7, 2026

    @mxalis
    Author

    We have one large Maven based project that has been divided into around 25 Maven sub modules. Therefore we cannot even temporarily close the projects/sub modules to get around the 20 project limit, since if we close some of the sub modules it will result in compilation errors in the dependent modules.

  20. jdneo commented on May 7, 2026

    @jdneo
    Member

    mxalis András Péteri (@apeteri) how do you persist those .md (instructions.md), are they at the root or each sub project has its own?

  21. mxalis commented on May 7, 2026

    @mxalis
    Author

    We have the instructions in two places. One instruction set in the root folder of the main project/.github folder. This contains instructions specifically for this project and the sub modules. Then we also have a separate project ('agents') that contains instructions that are shared between this project and many others.

  22. jdneo commented on May 7, 2026

    @jdneo
    Member

    We have the instructions in two places. One instruction set in the root folder of the main project/.github folder. This contains instructions specifically for this project and the sub modules. Then we also have a separate project ('agents') that contains instructions that are shared between this project and many others.

    So instructions from both places need to be loaded, right?

  23. mxalis commented on May 7, 2026

    @mxalis
    Author

    Preferably yes. At least for agent instructions this works at the moment, as I can see all the agents (from the project root folder and from the separate agents project) in the Copilot chat agent selection drop down menu. I have not tried it for the Chat instructions.

  24. apeteri commented on May 7, 2026

    @apeteri

    I encountered the problem in the title (and mxalis' opening message) when Copilot is trying to use the search tool to look for text content, not specifically related to custom instructions resolution. Issues #24 and #62 are starting to blend together on this aspect (hopefully neither "subthread" is off-topic here).

    Interactions like the following are resulting in "Task queue limit reached: 20" messages in the Error Log for large workspaces (my query was essentially "describe what each bundle does in this repository"):

    From here Copilot either takes the findstr external command route or gathers information using an alternative tool.

  25. mxalis commented on May 7, 2026

    @mxalis
    Author

    Yes this is how I originally encountered the issue as well. For me it will always end up having to use findstr when trying to use the search tool when either searching for text in files or files. Using findstr works but it is very annoying as Copilot prompts for approval every time it wants to run the command

  26. mxalis commented on Jun 23, 2026

    @mxalis
    Author

    Sheng Chen (@jdneo) any chance of getting this looked at? Tools grep_search and file_search keep failing with more than 20 projects open

  27. apeteri commented on Jul 27, 2026

    @apeteri

    I tried to figure out where ripgrep leaps into action, but it might be in the proprietary portions of the language server that gets downloaded and runs as a (Node) executable, i.e. github/copilot-language-server-release. I couldn't find any relevant code in the Copilot for Eclipse plugin itself.

    A possible alternative would be to incorporate an MCP server that exposes platform functionality similar to how velo/eclipse-mcp works (or contribute a "Ctrl+H" find tool to that project), but I haven't checked the specifics yet.

  28. dougbreaux commented on Aug 19, 2026

    @dougbreaux

    I came here looking for how I can get it to quit looking outside the current project entirely. Is there another issue for that? It's ignoring my instructions to quit wasting time looking in unrelated projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions