-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[analysis_server] LSP test failing on adding extension with specific name #40636
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
Comments
I was able to repro a crash where we could try to create SymbolInformation's without a Kind - however it happens in my testing for extensions with a name, since without a name the symbol is not included. https://dart-review.googlesource.com/c/sdk/+/135902 fixes that, though I'm not sure if you're seeing something else. |
Sorry, I mis-read the original issue. This wasn't named vs unnamed, it was So it is the same issue (named extensions are causing issues). The reason it didn't show up without the word |
Thanks for the quick fix! =) |
There was another slight issue - there's an assert to catch when we don't map a kind, but it was firing on the bots (because they run with asserts enabled) when the underlying kind was |
Bug: #40636 Change-Id: I28855dac790291a16717c20cf46c33dfae23e9ff Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135902 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Danny Tuppeny <[email protected]>
@dcharkes the fix has been merged. Let me know if you hit any problems putting the name back as you had it (assuming you plan to). Also, if the fix looks good please close this - I don't have the power here and forgot to include it in the commit message. Thanks! |
When I add an extension
DynamicLibraryExtension
todart:ffi
in the mock_sdk the test below starts failing. However, when the extension is namedLibraryExtension
, no issue at all.Workaround: https://dart-review.googlesource.com/c/sdk/+/135463/8..9
Failure thrown in:
sdk/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart
Lines 288 to 302 in edd64e6
cc @DanTup
Failure log:
Full log: https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8888553385798619536/+/steps/test_results/0/logs/new_test_failures__logs_/0
The text was updated successfully, but these errors were encountered: