You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Error when using search tool in workspaces with 20 or more projects open #24
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:
Assign a task to Copilot in Agent mode (task should require Copilot to search files)
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.
Reacted by András Péteri, heikoaverbeck-ctrl, Paul Galbraith, Johannes Krämer, Takayuki Maruyama and Cédric Damioli
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.
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.
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?
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.
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.
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.
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.
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.
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?
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.
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.
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
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.
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.
Activity
iloveeclipse commentedon Apr 27, 2026
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.[-][Bug][/-][+][Bug] Error when using search tool in workspaces with 20 or more projects open[/+]jdneo commentedon Apr 29, 2026
Andrey Loskutov (@iloveeclipse)
If I use
copilot-for-eclipse/com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/utils/WorkspaceUtils.java
Line 26 in f94e037
'workspacefolders'instead ofone 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?
iloveeclipse commentedon Apr 29, 2026
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.
jdneo commentedon May 6, 2026
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?
iloveeclipse commentedon May 6, 2026
No idea, I'm not CLI user :-)
Philipp K. (@Philipp0205) : any insights?
jdneo commentedon May 6, 2026
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 folderiloveeclipse commentedon May 6, 2026
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
and same settings could also apply for the search?
jdneo commentedon May 6, 2026
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
travkin79 commentedon May 6, 2026
The options
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?
jdneo commentedon May 6, 2026
referenced projectsshould containsreferenced git repositories. Cuz usually the root project(also an IProject) is the git repo.iloveeclipse commentedon May 6, 2026
Nope. In Eclipse or also our product a single repo hosts multiple projects :-)
jdneo commentedon May 7, 2026
So the root folder is not imported as an IProject into the workspace?
iloveeclipse commentedon May 7, 2026
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 (
IProjectcorresponds to.projectfiles 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.
apeteri commentedon May 7, 2026
The Maven project importer can pick up parent and aggregator POMs and create projects for them, so directories containing a
pom.xmlfile will also be represented as Eclipse projects configured with the Maven project nature ID. This would include the root directory ofeclipse-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.propertiesfile.iloveeclipse commentedon May 7, 2026
Not every project/repo/organisation uses maven.
apeteri commentedon May 7, 2026
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.
mxalis commentedon May 7, 2026
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.
jdneo commentedon May 7, 2026
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?
mxalis commentedon May 7, 2026
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.
jdneo commentedon May 7, 2026
So instructions from both places need to be loaded, right?
mxalis commentedon May 7, 2026
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.
apeteri commentedon May 7, 2026
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
findstrexternal command route or gathers information using an alternative tool.mxalis commentedon May 7, 2026
Yes this is how I originally encountered the issue as well. For me it will always end up having to use
findstrwhen trying to use the search tool when either searching for text in files or files. Usingfindstrworks but it is very annoying as Copilot prompts for approval every time it wants to run the commandmxalis commentedon Jun 23, 2026
Sheng Chen (@jdneo) any chance of getting this looked at? Tools grep_search and file_search keep failing with more than 20 projects open
apeteri commentedon Jul 27, 2026
I tried to figure out where
ripgrepleaps 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.
dougbreaux commentedon Aug 19, 2026
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.