You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The matrix-sdk and it's subcrates contain several structs with the name SyncResponse. When calling client.sync_once as seen below, the function returns matrix_sdk::sync::SyncResponse. However, rust-analyzer determines the type to be from the matrix_sdk_base it indicates matrix_sdk_base::sync::SyncResponse. This can be seen by doing either of those:
Ctrl+Click on the Type jumps in to the source code of matrix_sdk_base
Trying to extract SyncResponse::next_batch as seen in the code below. This field does exist in matrix_sdk::sync::SyncResponse but not in matrix_sdk_base::sync::SyncResponse. Since rust-analyzer resolves to matrix_sdk_base::sync::SyncResponse, the type of token cannot be resolved.
The matrix-sdk and it's subcrates contain several structs with the name
SyncResponse
. When callingclient.sync_once
as seen below, the function returnsmatrix_sdk::sync::SyncResponse
. However, rust-analyzer determines the type to be from thematrix_sdk_base
it indicatesmatrix_sdk_base::sync::SyncResponse
. This can be seen by doing either of those:matrix_sdk_base
SyncResponse::next_batch
as seen in the code below. This field does exist inmatrix_sdk::sync::SyncResponse
but not inmatrix_sdk_base::sync::SyncResponse
. Since rust-analyzer resolves tomatrix_sdk_base::sync::SyncResponse
, the type oftoken
cannot be resolved.rust-analyzer version: 0.4.1954-standalone
rustc version: rustc 1.78.0 (9b00956e5 2024-04-29)
editor or extension: VSCode extension v0.3.1950
relevant settings: Unchanged default settings
code snippet to reproduce:
The text was updated successfully, but these errors were encountered: