This repository was archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 173
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Language server stops working after adding a new file #720
Copy link
Copy link
Closed
Labels
area: editorExtensions for Visual Studio and Visual Studio CodeExtensions for Visual Studio and Visual Studio CodebugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
The language server randomly crashes while working on a Q# project in VS Code. When it does, it will not restart until VS Code re-opened and closed.
To Reproduce
Create a new Q# project. This particular one had a couple of not very big files (a couple of operations each). As I was working in VS Code I would get this Exception:
[Error - 11:11:46 PM]
=============================
Microsoft.Quantum.QsCompiler.QsCompilerException: error while running queued task
NullReferenceException: Object reference not set to an instance of an object.
Stack trace:
at Microsoft.Quantum.QsCompiler.CompilationBuilder.FileContentManager.PushChange(TextDocumentContentChangeEvent change, Boolean& publishDiagnostics) in D:\a\1\s\submodules\qsharp-compiler\src\QsCompiler\CompilationManager\FileContentManager.cs:line 999
at Microsoft.Quantum.QsCompiler.CompilationBuilder.FileContentManager.ReplaceFileContent(String text) in D:\a\1\s\submodules\qsharp-compiler\src\QsCompiler\CompilationManager\FileContentManager.cs:line 1053
at Microsoft.Quantum.QsCompiler.CompilationBuilder.CompilationUnitManager.<>c__DisplayClass18_0.<AddOrUpdateSourceFileAsync>b__0() in D:\a\1\s\submodules\qsharp-compiler\src\QsCompiler\CompilationManager\CompilationUnitManager.cs:line 275
at Microsoft.Quantum.QsCompiler.QsCompilerError.RaiseOnFailure(Action action, String header) in D:\a\1\s\submodules\qsharp-compiler\src\QsCompiler\DataStructures\ErrorHandling.fs:line 56
at Microsoft.Quantum.QsCompiler.QsCompilerError.Raise(String message, Exception innerException) in D:\a\1\s\submodules\qsharp-compiler\src\QsCompiler\DataStructures\ErrorHandling.fs:line 27
at Microsoft.Quantum.QsCompiler.QsCompilerError.RaiseOnFailure(Action action, String header) in D:\a\1\s\submodules\qsharp-compiler\src\QsCompiler\DataStructures\ErrorHandling.fs:line 56
at Microsoft.Quantum.QsCompiler.CompilationBuilder.ProcessingQueue.<>c__DisplayClass4_0.<ProcessingTaskAsync>b__0() in D:\a\1\s\submodules\qsharp-compiler\src\QsCompiler\CompilationManager\ProcessingQueue.cs:line 48
=============================
System information
- VS Code: 1.50.1
- Extension: 0.13.20102604
- OS: Mac OSX Catalina
- .NET Core: 3..403
Metadata
Metadata
Assignees
Labels
area: editorExtensions for Visual Studio and Visual Studio CodeExtensions for Visual Studio and Visual Studio CodebugSomething isn't workingSomething isn't working