-
Notifications
You must be signed in to change notification settings - Fork 256
Failing CI tests #1118
Comments
Problem is due to multiple defs from save-analysis. Working on fixing it. |
With rust-lang/rust#55936 and the most recent changes to rls-analysis, we are now passing rename, however, we now fail deglob and find_impls :-( |
OK, I have all tests passing locally. Needs rust-lang/rust#55936 to land and get into nightly to pass everywhere. |
Possibly root cause of #1122 |
On a separate note, the What happens is there are 2 packages, a binary and a library. The test checks if, by changing the type signature in the library function, the change is propagated and binary reports an error. Unfortunately, what happens, is: [
{
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [
{
"code": "E0425",
"message": "cannot find function `fetch_u32` in module `library`\n\nnot found in `library`",
"range": {
"end": {
"character": 53,
"line": 4
},
"start": {
"character": 44,
"line": 4
}
},
"severity": 1,
"source": "rustc"
}
],
"uri": "file:///checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/rlsit/t1/simple_workspace/binary/src/main.rs"
}
},
{
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [
{
"code": "E0308",
"message": "mismatched types\n\nexpected u32, found u64",
"range": {
"end": {
"character": 62,
"line": 9
},
"start": {
"character": 44,
"line": 9
}
},
"severity": 1,
"source": "rustc"
},
{
"code": "unused_variables",
"message": "unused variable: `unused`\n\nnote: #[warn(unused_variables)] on by default\nhelp: consider using `_unused` instead: `_unused`",
"range": {
"end": {
"character": 30,
"line": 2
},
"start": {
"character": 24,
"line": 2
}
},
"severity": 2,
"source": "rustc"
}
],
"uri": "file:///checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/rlsit/t1/simple_workspace/library/src/lib.rs"
}
}
] We expect "code": "E0308",
"message": "mismatched types\n\nexpected u32, found u64", for the "code": "E0425",
"message": "cannot find function `fetch_u32` in module `library`\n\nnot found in `library`", which is weird. I tried to reproduce it locally but couldn't. |
Another case in rust-lang/rust#55947 (comment), seems like it just started happening with basically almost every PR now? |
There are 4 remaining failures in the 1. enum variant name change2. enum variant missing hover3.
|
It seems that Racer got smarter? 🤷 rust-lang#1118
Cool these 4 seem to be addressed now, nice one @Xanewok! |
paths/variants were fixed by rust-lang/rust#56060 so that would be @nrc's doing :) What's worrying is that we have macOS-specific tooltip failures and they seem to like we're not able to show type definitions in those tooltips. I don't have access to a macOS machine, so I can't really dig into that - if some of you have, could you verify some of these failures and see if there's a problem with type definition on hover in general? |
Now we have 1 hover test failing I haven't been following the upstream change closely enough to know which one is best. Maybe we can just update the test? Update: I got the expected/actual the wrong way round the first time. |
Yeah we should - it’s due to rust-lang/rust#53586. |
Actually I got expected/actual reversed there, fixed now. So I think the test is correct, and we shouldn't be seeing the |
Fixed that in #1155. |
I don't believe the |
We're almost there now with Windows builds passing. But it looks like the mac tooltip tests are a bit flaky, they sometimes pass, sometimes fail. |
In the https://travis-ci.org/rust-lang/rls/jobs/465961072 (#1152) failure it looks like we get type definition from the Racer fallback but we expect the rls-analysis info. We should only execute the fallback when we don't have the type info, correct? |
Yep it should be fallback on error. Lines 899 to 913 in c84b8ad
This is why it would perhaps be clearer to have tests that are for analysis only, in these we'll disable Right now it's hard to know which bit is meant to work. |
Rest of tests work correctly now, closing this in favor of #1151 since that test needs some work and fails intermittently on macOS. |
For some time now, the CI seems to fail on tooltip tests and
test_rename
: https://travis-ci.org/rust-lang-nursery/rls/jobs/452854404#L1519The text was updated successfully, but these errors were encountered: