Keep getting "Couldn't run get_file" Message #176521
Replies: 5 comments · 6 replies
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Hi there! This essentially means that Copilot Chat tried to read files from your workspace for context but couldn’t access them. Here are a few things you can try to fix it: Trust your workspace – Go to the top bar in VS Code -> Manage Workspace Trust -> mark your folder as Trusted. Copilot can’t read files in untrusted workspaces. Open the full folder, not just individual files. Copilot needs to see the workspace root. Update your extensions – make sure both GitHub Copilot and GitHub Copilot Chat are fully up to date. If you’re using GPT-5 in agent mode, try switching to GPT-4 temporarily, just to eliminate any variables. After doing these steps, re-run your prompt and the “get_file” errors should disappear. If all else fails, try restarting VSCode as well :) Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
I am getting the same error in Visual Studio 2022 latest update (17.14.16 with GitHub Copilot 17.14.1231.31060), I see in the GitHub Copilot log:
|
Beta Was this translation helpful? Give feedback.
-
Same experience here, downgrade to Claude Sonnet 4 solves issue. |
Beta Was this translation helpful? Give feedback.
-
I am getting similar errors with Claude Sonnet 4.5, but not other models. Are these failed calls using up our premium requests? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Copilot Feature Area
Copilot Agent Mode
Body
Can you please fix? Pretty please?
Microsoft Visual Studio Professional
Channel: Insiders
Version: 18.0.0 Insiders [11109.219]
Beta Was this translation helpful? Give feedback.
All reactions