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

Flaky LSP test: DocumentAddedToExistingProjectDoesNotCrash #5434

Open
MikaelMayer opened this issue May 13, 2024 · 7 comments · Fixed by #5456
Open

Flaky LSP test: DocumentAddedToExistingProjectDoesNotCrash #5434

MikaelMayer opened this issue May 13, 2024 · 7 comments · Fixed by #5456
Assignees
Labels
kind: language development speed Slows down development of Dafny the language, flaky tests part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo) priority: next Will consider working on this after in progress work is done

Comments

@MikaelMayer
Copy link
Member

Seen here:
https://github.com/dafny-lang/dafny/actions/runs/9070337566/job/24922923041?pr=5433

Microsoft.Dafny.LanguageServer.IntegrationTest.Synchronization.CachingTest.DocumentAddedToExistingProjectDoesNotCrash [FAIL]
[xUnit.net 00:00:18.30]       diagnostics[1,1,0,0]: Diagnostic { Range = [start: (3, 12), end: (3, 14)], Severity = Error, Code = OmniSharp.Extensions.LanguageServer.Protocol.Models.DiagnosticCode, CodeDescription = CodeDescription { Href = https://dafny.org/dafny/HowToFAQ/Errors#none }, Source = Resolver, Message = RHS (of type bool) not assignable to LHS (of type int), Tags = , RelatedInformation = OmniSharp.Extensions.LanguageServer.Protocol.Models.Container`1[OmniSharp.Extensions.LanguageServer.Protocol.Models.DiagnosticRelatedInformation], Data =  }
[xUnit.net 00:00:18.30]       Stack Trace:
[xUnit.net 00:00:18.30]            at XunitAssertMessages.AssertM.WithMessage(String message, Action action)
[xUnit.net 00:00:18.30]            at XunitAssertMessages.AssertM.Equal[T](T expected, T actual, String userMessage)
[xUnit.net 00:00:18.30]         D:\a\dafny\dafny\dafny\Source\DafnyLanguageServer.Test\Synchronization\CachingTest.cs(380,0): at Microsoft.Dafny.LanguageServer.IntegrationTest.Synchronization.CachingTest.DocumentAddedToExistingProjectDoesNotCrash()
@MikaelMayer MikaelMayer added part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo) priority: next Will consider working on this after in progress work is done labels May 13, 2024
@MikaelMayer
Copy link
Member Author

Perhaps @keyboardDrummer ?

@keyboardDrummer keyboardDrummer self-assigned this May 14, 2024
@MikaelMayer MikaelMayer added the kind: language development speed Slows down development of Dafny the language, flaky tests label May 14, 2024
@MikaelMayer
Copy link
Member Author

@MikaelMayer
Copy link
Member Author

@MikaelMayer
Copy link
Member Author

@keyboardDrummer
Copy link
Member

@keyboardDrummer
Copy link
Member

keyboardDrummer commented May 21, 2024

Somehow in the final compilation, one of the sources is not considered owned by the project, so its errors are reported as "out of project" diagnostics on the project file. Caching on determining the project file of a file is turned off, and determinedRootFiles.Roots must contain the not owned file because diagnostics coming from the file are reported by the project.

Adding extra logging in #5447

keyboardDrummer added a commit to keyboardDrummer/dafny that referenced this issue May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: language development speed Slows down development of Dafny the language, flaky tests part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo) priority: next Will consider working on this after in progress work is done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants