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

textDocument/didChange - System.Collections.Generic.KeyNotFoundException #89

Open
FelesNoctis opened this issue Sep 8, 2019 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed needs repro

Comments

@FelesNoctis
Copy link

Describe the bug

[Error - 8:17:16 PM] Failed to handle request textDocument/didChange - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at DarkId.Papyrus.Server.TextDocumentScriptTextProvider.Handle(DidChangeTextDocumentParams request, CancellationToken cancellationToken) in C:\projects\papyrus-lang\src\DarkId.Papyrus.Server\TextDocumentScriptTextProvider.cs:line 102
   at OmniSharp.Extensions.Embedded.MediatR.Internal.RequestHandlerWrapperImpl`2.<>c__DisplayClass0_0.<Handle>g__Handler|0()
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2.<Handle>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at OmniSharp.Extensions.LanguageServer.Server.LspRequestRouter.<RouteNotification>d__10.MoveNext()

To Reproduce
Unsure, the trigger appears to be inconsistent. However I did notice it most often appearing after the script file has been saved, at which time every action that would modify the file's contents would throw this error. It also appeared to persist through closing and reopening the document's tab, and would sometimes continue even after closing and reopening the document through the recent files menu option. Opening the file manually seemed to reset the issue until the next instance, as did reloading VSCode's window.

@FelesNoctis FelesNoctis added the bug Something isn't working label Sep 8, 2019
@joelday joelday added help wanted Extra attention is needed needs repro labels Sep 27, 2023
@joelday joelday removed their assignment Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed needs repro
Projects
None yet
Development

No branches or pull requests

2 participants