June 1, 2025

Github Copilot file not found

Ever try to run a script generated by github copilot and it does not run? This simple step will solve that problem.

The Problem

Github copilot when using some models does not call the file save function so it tries to run code like:

cd "t:\TimeToLearn" && python test_trained_model.py

In the console nothing will appear... Why is this?

Well we found that it does not appear to call the file save correctly on new file creation in (Claude Sonnet 4) the most

The solution

In Visual Studio Code click on the file before running it with copilot and press CRTL + S

Boom now you fixed the first bug in your agentic coding future

Author:
No items found.
Discover how we can help you >

Related Posts