This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
"Could not find the source file" error after deleting .qs file when no .csproj exists #613
Open
Description
Describe the bug
In latest beta builds from master
, the language server is creating a temporary project to compile and provide IntelliSense features for .qs
files that do not have an associated .csproj
file in the folder.
If one of these .qs
files is deleted during a VS Code session, an error appears in the Problems tab, such as:
Could not find the source file "c:\QDK\RyanTest\TestPython\Test2.qs" to compile.
To Reproduce
Steps to reproduce the behavior:
- Create a folder containing a couple of
.qs
files (but no.csproj
). - Open that folder in VS Code.
- Open the
.qs
files and wait for the Q# extension to finish loading (check theOutput
tab in VS Code). - Delete one of the
.qs
files. - Observe the error on the Problems tab. The error persists until VS Code is closed (but it does go away after restarting).
Expected behavior
No such error should occur when deleting a file.
System information
- Extension version 0.12.20090307-beta
- Windows 10, .NET Core 3.1