Skip to content

Language Server: System.ObjectDisposedException: PriorityProducerConsumer`1 instance is disposed #2387

@derekwallace

Description

@derekwallace

Latest Insiders
vscode-pythong: 2018.8.0-alpha1

creating a new class the language server produced following to OUtput.

[Info - 7:14:27 AM] Found 28 completions for file:///p:/perforce_Playground/derekw_de02-1777_rce_dev/del.py at (13, 17) after filtering
[Error - 7:14:29 AM] System.ObjectDisposedException: PriorityProducerConsumer1 instance is disposed Object name: 'PriorityProducerConsumer1'.
at Microsoft.PythonTools.Analysis.Infrastructure.DisposeToken.ThrowIfDisposed()
at Microsoft.PythonTools.Analysis.Infrastructure.PriorityProducerConsumer`1.Produce(T value, Int32 priority)
at Microsoft.PythonTools.Intellisense.AnalysisQueue.Enqueue(IAnalyzable item, AnalysisPriority priority)
at Microsoft.PythonTools.Analysis.LanguageServer.Server.OnDocumentChangeProcessingComplete(IDocument doc, VersionCookie vc, Boolean enqueueForAnalysis, AnalysisPriority priority, IDisposable disposeWhenEnqueued)

Code when crash happened
image

Outline is all wrong at the crash point.
image

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions