-
Notifications
You must be signed in to change notification settings - Fork 257
tests: Add a test for rust-lang/rust#57462 and go-to-definition without racer in general. #1230
Conversation
Are you sure? I tried with Could you try initializing with "rootPath": root_path,
"capabilities": {},
"initializationOptions": {
"settings": {
"rust": {
"goto_def_racer_fallback": false
}
}
} and see if we can go-to-def on |
Will try, thanks for the hint! |
bd3ddba
to
5c0e545
Compare
5c0e545
to
89eb079
Compare
Ok, what was going on is that I wasn't waiting for the I added a more complete test where I query all the points in the program with racer disabled, but I can keep it simple and just test that I find |
(The reason I did that is because we have a couple more bugs reported against searchfox.org which may share the same root cause, but if they don't I may need to go and fix them and extend this test :P). |
89eb079
to
bd003e4
Compare
Ok, this should be good to go now. Test fails without my patch, passes with it. Also sent an improvement to existing tests in #1232. |
That seems total but I like that, thanks! As I understand it, this should fail now and we should retrigger it when rust-lang/rust#57474 lands upstream? |
Yes, that's right. |
Sorry for the merge conflict; could you rebase, please? Also the upstream change got merged, so I think this should be good to go. |
bd003e4
to
afd1179
Compare
Sure, should be done :) |
|
||
rls.wait_until_done_indexing(rls_timeout()); | ||
|
||
let uri = format!("file://{}/src/main.rs", root_path.display()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Windows tests fail:
Got
"file:///C:/Users/travis/build/rust-lang/rls/target/rlsit/t13/simple_workspace/src/main.rs"
Expected
file://C:\\Users\\travis\\build\\rust-lang\\rls\\target\\rlsit\\t13\\simple_workspace/src/main.rs
I think something like let uri = Url::from_file_path(p.root().join("src/main.rs")).unwrap();
should make it work cross-platform
…ut racer in general.
afd1179
to
e9e643b
Compare
Tweaked it to avoid having to compare the URL instead. |
@bors r+ |
📌 Commit e9e643b has been approved by |
tests: Add a test for rust-lang/rust#57462 and go-to-definition without racer in general.
☀️ Test successful - checks-travis |
@emilio Thank you again for the test =) |
NP! :) |
submodule: update rls from c9d25b to e2145d Update rls rust-lang/rls@c9d25b6...e2145d rust-lang/rls#1276 - h-michael:clippy, r=Xanewok rust-lang/rls#1269 - rust-lang:dependabot/cargo/rand-0.6.5, r=Xanewok Remove extra backticks in contributing.md rust-lang/rls#1267 from h-michael/contributingmd rust-lang/rls#1268 from matthiaskrgr/rustup rust-lang/rls#1262 from rust-lang/dependabot/cargo/tokio-0.1.15 rust-lang/rls#1264 - h-michael:pub-crate, r=alexheretic rust-lang/rls#1261 - rust-lang:dependabot/cargo/tokio-timer-0.2.9, r=Xanewok rust-lang/rls#1263 - Xanewok:update-clippy, r=Xanewok rust-lang/rls#1257 from Xanewok/architecture rust-lang/rls#1258 - rust-lang:dependabot/cargo/lsp-types-0.55.1, r=Xanewok rust-lang/rls#1255 - Xanewok:you-only-complete-once-fool, r=Xanewok rust-lang/rls#1252 - rust-lang:dependabot/cargo/cargo_metadata-0.7.0, r=alexheretic rust-lang/rls#1253 - rust-lang:dependabot/cargo/lsp-types-0.55.0, r=Xanewok rust-lang/rls#1254 - rust-lang:dependabot/cargo/serde_json-1.0.37, r=Xanewok dependabot: Explicitly list default allowed_updates dependabot: Add automerge strategy for clippy_lints rust-lang/rls#1251 - Xanewok:translate-deglob-test, r=Xanewok rust-lang/rls#1250 from alexheretic/master rust-lang/rls#1244 - Xanewok:translate-tests, r=alexheretic rust-lang/rls#1247 - alexheretic:register-more-clippy, r=Xanewok rust-lang/rls#1230 - emilio:testing-testing, r=Xanewok rust-lang/rls#1246 from alexheretic/did-save-manifest Merge branch 'beta-version-bump' of https://github.com/rust-lang-nursery/rls
submodule: update rls from c9d25b to f331ff7 Update rls rust-lang/rls@c9d25b6...e2145d rust-lang/rls#1276 - h-michael:clippy, r=Xanewok rust-lang/rls#1269 - rust-lang:dependabot/cargo/rand-0.6.5, r=Xanewok Remove extra backticks in contributing.md rust-lang/rls#1267 from h-michael/contributingmd rust-lang/rls#1268 from matthiaskrgr/rustup rust-lang/rls#1262 from rust-lang/dependabot/cargo/tokio-0.1.15 rust-lang/rls#1264 - h-michael:pub-crate, r=alexheretic rust-lang/rls#1261 - rust-lang:dependabot/cargo/tokio-timer-0.2.9, r=Xanewok rust-lang/rls#1263 - Xanewok:update-clippy, r=Xanewok rust-lang/rls#1257 from Xanewok/architecture rust-lang/rls#1258 - rust-lang:dependabot/cargo/lsp-types-0.55.1, r=Xanewok rust-lang/rls#1255 - Xanewok:you-only-complete-once-fool, r=Xanewok rust-lang/rls#1252 - rust-lang:dependabot/cargo/cargo_metadata-0.7.0, r=alexheretic rust-lang/rls#1253 - rust-lang:dependabot/cargo/lsp-types-0.55.0, r=Xanewok rust-lang/rls#1254 - rust-lang:dependabot/cargo/serde_json-1.0.37, r=Xanewok dependabot: Explicitly list default allowed_updates dependabot: Add automerge strategy for clippy_lints rust-lang/rls#1251 - Xanewok:translate-deglob-test, r=Xanewok rust-lang/rls#1250 from alexheretic/master rust-lang/rls#1244 - Xanewok:translate-tests, r=alexheretic rust-lang/rls#1247 - alexheretic:register-more-clippy, r=Xanewok rust-lang/rls#1230 - emilio:testing-testing, r=Xanewok rust-lang/rls#1246 from alexheretic/did-save-manifest Merge branch 'beta-version-bump' of https://github.com/rust-lang-nursery/rls
No description provided.