Language model unavailable #188977
Select Topic AreaQuestion Copilot Feature AreaVS Code BodyI can no longer use the Copilot plugin in VSCode, but it works fine in the Copilot CLI. |
Replies: 5 comments 1 reply
|
Have you tried signing out and signing back into GitHub Copilot in VS Code? Sometimes the extension loses authentication and stops working even though Copilot CLI continues to function normally. What worked for me was checking a few things:
If it still doesn’t work, reinstalling the Copilot extension can sometimes fix the issue. |
|
The above operations have all been retried, but the Copilot plugin still doesn't work. Only the Copilot CLI can run normally. 版本: 1.110.1 (user setup) 名称: GitHub Copilot Chat |
|
If Copilot works in the CLI but not in VS Code, that usually means your GitHub account and subscription are fine, and the issue is more likely related to the VS Code extension, authentication, or editor setup. A few things you could try:
Since Copilot CLI is working, the problem is probably isolated to the VS Code client rather than your account access. If possible, sharing the screenshot or any error message from VS Code would help narrow it down further. |
|
The problem has been resolved and the root cause was identified. The error I had agent skill files created by another AI tool stored in the following directories: GitHub Copilot Chat automatically scans these directories when initializing agent skills. Some of these skill files had duplicate skill names or unsupported formatting (e.g. XML tags). This caused the agent discovery process to return an unexpected value, which eventually triggered the error inside the extension: SolutionRenaming or removing the following directories fixed the problem: After restarting VS Code, Copilot Chat initialized normally and the error disappeared. NoteIf you encounter the same issue, check whether there are agent skill files from other AI tools inside |
The problem has been resolved and the root cause was identified.
The error
TypeError: e is not iterablewas not caused by the Copilot extension version itself. Instead, it was triggered by Copilot Chat's Agent/Skills discovery mechanism.I had agent skill files created by another AI tool stored in the following directories:
GitHub Copilot Chat automatically scans these directories when initializing agent skills. Some of these skill files had duplicate skill names or unsupported formatting (e.g. XML tags). This caused the agent discovery process to return an unexpected value, which eventually triggered the error inside the extension: