Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

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]

image
You must be logged in to vote

Replies: 5 comments · 6 replies

Comment options

💬 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 ⏩

  • Your input will be carefully reviewed and cataloged by members of our product teams. 
    • Due to the high volume of submissions, we may not always be able to provide individual responses.
    • Rest assured, your feedback will help chart our course for product improvements.
  • Other users may engage with your post, sharing their own perspectives or experiences. 
  • GitHub staff may reach out for further clarification or insight. 
    • We may 'Answer' your discussion if there is a current solution, workaround, or roadmap/changelog post related to the feedback.

Where to look to see what's shipping 👀

  • Read the Changelog for real-time updates on the latest GitHub features, enhancements, and calls for feedback.
  • Explore our Product Roadmap, which details upcoming major releases and initiatives.

What you can do in the meantime 💻

  • Upvote and comment on other user feedback Discussions that resonate with you.
  • Add more information at any point! Useful details include: use cases, relevant labels, desired outcomes, and any accompanying screenshots.

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. ⭐

You must be logged in to vote
0 replies
Comment options

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!

You must be logged in to vote
5 replies
@TroyCoderBoy
Comment options

I'm not using VSCode I'm using Visual Studio, and the Workspace Trust issue is not relevant because it works fine for a few prompts then crashes out as per the image I posted. This happens every session. It works fine for a while then suddenly dies.

@TroyCoderBoy
Comment options

Btw why does everyone just assume we are all using VS Code? Very bizarre.

@acozy03
Comment options

Oh understood! My apologies, I wish I could be of more help but am not familiar with Visual Studio Professional. Have you been trying different models or observing Co-Pilot logs during these failures?

@TroyCoderBoy
Comment options

No worries. Sorry for my tone but agent mode in Visual Studio has been a buggy mess across all models since release and it is massively frustrating that they can't get it stable after all these months. Also, I'm paying a Pro+ subscription, and it feels like I'm using a product that is in an Alpha state, not even Beta quality, let alone release state. Anyway... I will post logs next time it happens. Another issue that's started is that copilot will corrupt code in a file that it is working on that is not relevant to the prompt. e.g. it will remove a brace or change a command word causing a compile error, so then has to do another pass to fix it. LOL. Sometimes I feel like head butting a brick wall, it drives me nuts because it has the potential to be a great product, but they just can't get it stable.

@acozy03
Comment options

You're all good! I didn't take it personally. Everybody that uses these coding agents has to deal with some sort of bad hallucinations, (for me it was Gemini 2.5 Pro that would be really bad about breaking already functional code). I started using Codex since the operations run in the cloud and I can merge changes and revert back to my local state if they do mess up. I try and stay away from agents that modify my files locally with full permissions as that tends to get kinda messy fast.

Comment options

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:

[Conversations Information] Copilot auth status: OK. Copilot badge status: Active
[Conversations Warning] [CopilotClient] Failed to deserialize tool call arguments for tool call toolu_vrtx_01GvPEM2xvQ9VaZyVsxnqLsD with name get_file. Arguments: {"filename": "MyProject\\Program.cs"}{"filename": "MyProject\\WinForms\\MainForm.cs"}
[FunctionInvoker Error] Calling function 'get_file' failed: StreamJsonRpc.RemoteInvocationException: Invalid arguments to method, missing parameter filename.
   at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__156`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Conversations.Copilot.FunctionInvoker.<InvokeAsync>d__6.MoveNext()
RPC server exception:
System.ArgumentException: Invalid arguments to method, missing parameter filename.
      at Microsoft.VisualStudio.Copilot.Internal.CopilotFunction.GetArguments(CopilotFunctionInvocationContext context, IReadOnlyDictionary`2 arguments, CancellationToken cancellation) in D:\a\_work\1\s\src\Copilot\Functions\CopilotFunction.cs:line 120
      at Microsoft.VisualStudio.Copilot.Internal.CopilotFunction.<InvokeAsync>d__1.MoveNext() in D:\a\_work\1\s\src\Copilot\Functions\CopilotFunction.cs:line 26
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Microsoft.DiagnosticsHub.VisualStudio.DataWarehouse.Copilot.PerformanceProfilerFunctionProxy.<InvokeAsync>d__6.MoveNext()
You must be logged in to vote
1 reply
@acozy03
Comment options

https://developercommunity.visualstudio.com/t/couldnt-run-get_file-error/10977033

Seems like this is being actively investigated. Apologies that I can't find a solution at the moment since it seems to be on Co-Pilot and not the fault of the user.

Comment options

Same experience here, downgrade to Claude Sonnet 4 solves issue.

You must be logged in to vote
0 replies
Comment options

I am getting similar errors with Claude Sonnet 4.5, but not other models. Are these failed calls using up our premium requests?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Copilot Agent Mode Agent Mode is capable of iterating on its own code, recognizing errors, and fix
5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.