Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidOperationException in DocumentBuffer.Update on didChange #1651

jakebailey opened this issue Oct 8, 2019 · 1 comment · Fixed by #1662


Copy link

commented Oct 8, 2019

Seeing this a lot in the list:

   at Microsoft.Python.Core.Diagnostics.Check.InvalidOperation(Boolean condition, String message) in E:\A\_work\2\s\src\Core\Impl\Diagnostics\Check.cs:line 86
   at Microsoft.Python.Analysis.Documents.DocumentBuffer.Update(IEnumerable`1 changes) in E:\A\_work\2\s\src\Analysis\Ast\Impl\Documents\DocumentBuffer.cs:line 72
   at Microsoft.Python.Analysis.Modules.PythonModule.Update(IEnumerable`1 changes) in E:\A\_work\2\s\src\Analysis\Ast\Impl\Modules\PythonModule.cs:line 315
   at Microsoft.Python.LanguageServer.Implementation.Server.DidChangeTextDocument(DidChangeTextDocumentParams params) in E:\A\_work\2\s\src\LanguageServer\Impl\Implementation\Server.Documents.cs:line 36
   at Microsoft.Python.LanguageServer.Implementation.LanguageServer.DidChangeTextDocument(JToken token, CancellationToken cancellationToken) in E:\A\_work\2\s\src\LanguageServer\Impl\LanguageServer.cs:line 132
@jakebailey jakebailey added the bug label Oct 8, 2019

This comment has been minimized.

Copy link
Member Author

commented Oct 8, 2019

This is happening on 0.4.57, which is pretty recent. Line 72 doesn't make any sense, as it's after both of the checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.