Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- running 1 test
- TRACE:rls::server: Read message `{"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"experimental":null,"textDocument":null,"workspace":null},"initializationOptions":null,"processId":null,"rootPath":"/home/alex/code/rls/test_data/workspace_symbol","rootUri":null,"trace":"off"}}`
- TRACE:rls::server: Parsed message `RawMessage { method: "initialize", id: Some(Num(0)), params: Object({"capabilities": Object({"experimental": Null, "textDocument": Null, "workspace": Null}), "initializationOptions": Null, "processId": Null, "rootPath": String("/home/alex/code/rls/test_data/workspace_symbol"), "rootUri": Null, "trace": String("off")}) }`
- TRACE:rls::server: Handling `initialize`
- TRACE:rls::server: init: InitializationOptions { omit_init_build: false }
- TRACE:rls::build: request_build Cargo
- TRACE:rls::config: root manifest_path: "/home/alex/code/rls/test_data/workspace_symbol/Cargo.toml"
- TRACE:rls::build: run_build, "/home/alex/code/rls/test_data/workspace_symbol" Cargo
- TRACE:rls::build: running build
- TRACE:cargo::util::toml: read_manifest; path=/home/alex/code/rls/test_data/workspace_symbol/Cargo.toml; source-id=file:///home/alex/code/rls/test_data/workspace_symbol
- DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/rls/test_data/Cargo.toml
- DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/rls/Cargo.toml
- TRACE:cargo::util::toml: read_manifest; path=/home/alex/code/rls/Cargo.toml; source-id=file:///home/alex/code/rls
- DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/Cargo.toml
- DEBUG:cargo::core::workspace: find_root - trying /home/alex/Cargo.toml
- DEBUG:cargo::core::workspace: find_root - trying /home/Cargo.toml
- DEBUG:cargo::core::workspace: find_root - trying /Cargo.toml
- DEBUG:cargo::core::workspace: find_members - only me as a member
- TRACE:rls::config: infer_config_defaults: Auto-detected `workspace_symbol` package
- TRACE:rls::config: infer_config_defaults: build_lib: false, build_bin: Some("workspace_symbol")
- TRACE:rls::build::cargo: root manifest_path: "/home/alex/code/rls/test_data/workspace_symbol/Cargo.toml"
- TRACE:cargo::util::toml: read_manifest; path=/home/alex/code/rls/test_data/workspace_symbol/Cargo.toml; source-id=file:///home/alex/code/rls/test_data/workspace_symbol
- DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/rls/test_data/Cargo.toml
- DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/rls/Cargo.toml
- TRACE:cargo::util::toml: read_manifest; path=/home/alex/code/rls/Cargo.toml; source-id=file:///home/alex/code/rls
- DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/Cargo.toml
- DEBUG:cargo::core::workspace: find_root - trying /home/alex/Cargo.toml
- DEBUG:cargo::core::workspace: find_root - trying /home/Cargo.toml
- DEBUG:cargo::core::workspace: find_root - trying /Cargo.toml
- DEBUG:cargo::core::workspace: find_members - only me as a member
- TRACE:rls::build::cargo: Cargo compilation options:
- CargoOptions { package: [], target: None, lib: false, bin: ["workspace_symbol"], bins: false, all: false, exclude: [], all_features: false, no_default_features: false, features: [], jobs: None }
- TRACE:cargo::ops::resolve: previous: graph: Graph {
- - workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- }
- features: {
- }
- TRACE:cargo::core::registry: register_lock: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- DEBUG:cargo::core::registry: load/missing file:///home/alex/code/rls/test_data/workspace_symbol
- DEBUG:cargo::sources::config: loading: file:///home/alex/code/rls/test_data/workspace_symbol
- TRACE:cargo::core::source::source_id: loading SourceId; file:///home/alex/code/rls/test_data/workspace_symbol
- TRACE:cargo::ops::cargo_read_manifest: read_package; path=/home/alex/code/rls/test_data/workspace_symbol/Cargo.toml; source-id=file:///home/alex/code/rls/test_data/workspace_symbol
- TRACE:cargo::util::toml: read_manifest; path=/home/alex/code/rls/test_data/workspace_symbol/Cargo.toml; source-id=file:///home/alex/code/rls/test_data/workspace_symbol
- TRACE:cargo::core::registry: locking summary of workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- DEBUG:cargo::core::resolver: initial activation: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- TRACE:cargo::core::resolver: activating workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- TRACE:cargo::core::resolver: resolved: graph: Graph {
- - workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- }
- features: {
- }
- TRACE:cargo::ops::resolve: previous: graph: Graph {
- - workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- }
- features: {
- }
- TRACE:cargo::core::registry: register_lock: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- DEBUG:cargo::core::registry: load/locked file:///home/alex/code/rls/test_data/workspace_symbol
- TRACE:cargo::core::registry: locking summary of workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- DEBUG:cargo::core::resolver: initial activation: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- TRACE:cargo::core::resolver: activating workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- TRACE:cargo::core::resolver: resolved: graph: Graph {
- - workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- }
- features: {
- }
- TRACE:cargo::core::registry: getting packages; sources=1
- TRACE:cargo::sources::path: getting packages; id=workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
- DEBUG:cargo::ops::cargo_compile: found bin `workspace_symbol`
- DEBUG:cargo::ops::cargo_rustc::context: probe_target_info: crate_types={"bin", "rlib"}
- DEBUG:cargo::ops::cargo_rustc::fingerprint: fingerprint at: /home/alex/code/rls/target/tests/0/debug/.fingerprint/workspace_symbol-5ae3283dbd9f6964/bin-workspace_symbol-5ae3283dbd9f6964
- INFO:cargo::ops::cargo_rustc::fingerprint: fingerprint error for workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol): failed to read `/home/alex/code/rls/target/tests/0/debug/.fingerprint/workspace_symbol-5ae3283dbd9f6964/bin-workspace_symbol-5ae3283dbd9f6964`
- INFO:cargo::ops::cargo_rustc::fingerprint: cause: No such file or directory (os error 2)
- INFO:cargo::ops::cargo_rustc::context: Target filenames: [("/home/alex/code/rls/target/tests/0/debug/deps/libworkspace_symbol-5ae3283dbd9f6964.rmeta", Some("/home/alex/code/rls/target/tests/0/debug/libworkspace_symbol.rmeta"), Linkable)]
- TRACE:cargo::ops::cargo_rustc::job_queue: queue: DependencyQueue {
- dep_map: {
- workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol) => Target(bin: workspace_symbol)/Profile(check) => Host: (
- {},
- [
- (
- Job { ... },
- Dirty
- )
- ]
- )
- },
- reverse_dep_map: {},
- dirty: {},
- pending: {}
- }
- INFO:cargo::ops::cargo_rustc::job_queue: start: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol) => Target(bin: workspace_symbol)/Profile(check) => Host
- TRACE:rls::build::cargo: exec: workspace_symbol
- TRACE:rls::build::cargo: rustc intercepted - args: ["--crate-name", "workspace_symbol", "src/main.rs", "--color", "never", "--crate-type", "bin", "--emit=dep-info,metadata", "-C", "debuginfo=2", "-C", "metadata=5ae3283dbd9f6964", "-C", "extra-filename=-5ae3283dbd9f6964", "--out-dir", "/home/alex/code/rls/target/tests/0/debug/deps", "-C", "incremental=/home/alex/code/rls/target/tests/0/debug/incremental", "-L", "dependency=/home/alex/code/rls/target/tests/0/debug/deps", "--error-format=json"] envs: {"CARGO_PKG_NAME": Some("workspace_symbol"), "CARGO_PKG_VERSION_MAJOR": Some("0"), "CARGO_MANIFEST_DIR": Some("/home/alex/code/rls/test_data/workspace_symbol"), "CARGO_PKG_VERSION_MINOR": Some("1"), "CARGO_PKG_DESCRIPTION": Some(""), "CARGO_PKG_AUTHORS": Some("Stuart Hinson <stuart.hinson@gmail.com>"), "CARGO_PKG_VERSION": Some("0.1.0"), "CARGO_PKG_HOMEPAGE": Some(""), "CARGO_PKG_VERSION_PRE": Some(""), "LD_LIBRARY_PATH": Some("/home/alex/code/rls/target/tests/0/debug/deps:/home/alex/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib"), "CARGO_PKG_VERSION_PATCH": Some("0"), "CARGO": Some("/home/alex/code/rls/target/debug/deps/rls-8f40ac958f426243")}
- DEBUG:cargo::ops::cargo_rustc::fingerprint: write fingerprint: /home/alex/code/rls/target/tests/0/debug/.fingerprint/workspace_symbol-5ae3283dbd9f6964/bin-workspace_symbol-5ae3283dbd9f6964
- INFO:cargo::ops::cargo_rustc::job_queue: end: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol) => Target(bin: workspace_symbol)/Profile(check) => Host
- TRACE:rls::build::cargo: Created build plan after Cargo compilation routine: Units: {(PackageId { name: "workspace_symbol", version: "0.1.0", source: "file:///home/alex/code/rls/test_data/workspace_symbol" }, Bin): OwnedUnit { id: PackageId { name: "workspace_symbol", version: "0.1.0", source: "file:///home/alex/code/rls/test_data/workspace_symbol" }, target: Target { kind: Bin, name: "workspace_symbol", src_path: NonHashedPathBuf { path: "/home/alex/code/rls/test_data/workspace_symbol/src/main.rs" }, required_features: None, tested: true, benched: true, doc: true, doctest: false, harness: true, for_host: false }, profile: Profile { opt_level: "0", lto: false, codegen_units: None, rustc_args: None, rustdoc_args: None, debuginfo: Some(2), debug_assertions: true, overflow_checks: true, rpath: false, test: false, doc: false, run_custom_build: false, check: true, panic: None, incremental: true }, kind: Host }}
- Dependency graph:
- (PackageId { name: "workspace_symbol", version: "0.1.0", source: "file:///home/alex/code/rls/test_data/workspace_symbol" }, Bin)
- Reverse dependency graph:
- (PackageId { name: "workspace_symbol", version: "0.1.0", source: "file:///home/alex/code/rls/test_data/workspace_symbol" }, Bin)
- Compiler jobs: {(PackageId { name: "workspace_symbol", version: "0.1.0", source: "file:///home/alex/code/rls/test_data/workspace_symbol" }, Bin): ProcessBuilder { program: "rustc", args: ["--crate-name", "workspace_symbol", "src/main.rs", "--color", "never", "--crate-type", "bin", "--emit=dep-info", "-C", "debuginfo=2", "-C", "metadata=5ae3283dbd9f6964", "-C", "extra-filename=-5ae3283dbd9f6964", "--out-dir", "/home/alex/code/rls/target/tests/0/debug/deps", "-C", "incremental=/home/alex/code/rls/target/tests/0/debug/incremental", "-L", "dependency=/home/alex/code/rls/target/tests/0/debug/deps", "--error-format=json", "--test", "--sysroot", "/home/alex/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu"], env: {"CARGO_PKG_NAME": Some("workspace_symbol"), "RLS_RUSTC_SHIM": Some("1"), "CARGO_PKG_VERSION_MAJOR": Some("0"), "CARGO_MANIFEST_DIR": Some("/home/alex/code/rls/test_data/workspace_symbol"), "CARGO_PKG_VERSION_MINOR": Some("1"), "CARGO_PKG_DESCRIPTION": Some(""), "CARGO_PKG_AUTHORS": Some("Stuart Hinson <stuart.hinson@gmail.com>"), "CARGO_PKG_VERSION": Some("0.1.0"), "CARGO_PKG_HOMEPAGE": Some(""), "CARGO_PKG_VERSION_PRE": Some(""), "LD_LIBRARY_PATH": Some("/home/alex/code/rls/target/tests/0/debug/deps:/home/alex/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib"), "CARGO_PKG_VERSION_PATCH": Some("0"), "CARGO": Some("/home/alex/code/rls/target/debug/deps/rls-8f40ac958f426243")}, cwd: Some("/home/alex/code/rls/test_data/workspace_symbol"), jobserver: Some(Client { inner: Client { read: File { fd: 5, path: "pipe:[3014068]", read: true, write: false }, write: File { fd: 6, path: "pipe:[3014068]", read: false, write: true } } }) }}
- TRACE:rls::build::rustc: rustc - args: `["rustc", "--crate-name", "workspace_symbol", "src/main.rs", "--color", "never", "--crate-type", "bin", "--emit=dep-info,metadata", "-C", "debuginfo=2", "-C", "metadata=5ae3283dbd9f6964", "-C", "extra-filename=-5ae3283dbd9f6964", "--out-dir", "/home/alex/code/rls/target/tests/0/debug/deps", "-C", "incremental=/home/alex/code/rls/target/tests/0/debug/incremental", "-L", "dependency=/home/alex/code/rls/target/tests/0/debug/deps", "--error-format=json", "--test", "--sysroot", "/home/alex/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu"]`, envs: {"CARGO_PKG_NAME": Some("workspace_symbol"), "CARGO_PKG_VERSION_MAJOR": Some("0"), "CARGO_MANIFEST_DIR": Some("/home/alex/code/rls/test_data/workspace_symbol"), "CARGO_PKG_VERSION_MINOR": Some("1"), "CARGO_PKG_DESCRIPTION": Some(""), "CARGO_PKG_AUTHORS": Some("Stuart Hinson <stuart.hinson@gmail.com>"), "CARGO_PKG_VERSION": Some("0.1.0"), "CARGO_PKG_HOMEPAGE": Some(""), "CARGO_PKG_VERSION_PRE": Some(""), "LD_LIBRARY_PATH": Some("/home/alex/code/rls/target/tests/0/debug/deps:/home/alex/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib"), "CARGO_PKG_VERSION_PATCH": Some("0"), "CARGO": Some("/home/alex/code/rls/target/debug/deps/rls-8f40ac958f426243")}, build dir: "/home/alex/code/rls/test_data/workspace_symbol"
- TRACE:rls::build: Files still dirty after the build: {}
- TRACE:rls::actions::post_build: build - Success
- DEBUG:rls::actions::post_build: reload analysis: "/home/alex/code/rls/test_data/workspace_symbol"
- TRACE:rls_analysis: reload_with_blacklist "/home/alex/code/rls/test_data/workspace_symbol" "/home/alex/code/rls" ["libc", "typenum", "alloc", "idna", "openssl", "unicode_normalization", "serde", "serde_json", "rustc_serialize", "unicode_segmentation", "cocoa", "gleam"]
- TRACE:rls_analysis: hard_reload "/home/alex/code/rls/test_data/workspace_symbol" "/home/alex/code/rls"
- test test::test_workspace_symbol ... FAILED
- failures:
- ---- test::test_workspace_symbol stdout ----
- expect_messages:
- results: [
- "{\"jsonrpc\":\"2.0\",\"id\":0,\"result\":{\"capabilities\":{\"textDocumentSync\":2,\"hoverProvider\":true,\"completionProvider\":{\"resolveProvider\":true,\"triggerCharacters\":[\".\",\":\"]},\"definitionProvider\":true,\"referencesProvider\":true,\"documentHighlightProvider\":true,\"documentSymbolProvider\":true,\"workspaceSymbolProvider\":true,\"codeActionProvider\":true,\"documentFormattingProvider\":true,\"documentRangeFormattingProvider\":false,\"renameProvider\":true,\"executeCommandProvider\":{\"commands\":[\"rls.applySuggestion\",\"rls.deglobImports\"]}}}}",
- "{\"jsonrpc\":\"2.0\",\"method\":\"rustDocument/beginBuild\",\"params\":null}",
- "{\"jsonrpc\":\"2.0\",\"method\":\"rustDocument/diagnosticsBegin\",\"params\":null}",
- "{\"jsonrpc\":\"2.0\",\"method\":\"textDocument/publishDiagnostics\",\"params\":{\"diagnostics\":[{\"code\":\"E0463\",\"message\":\"can\'t find crate for `cargo`\",\"range\":{\"end\":{\"character\":19,\"line\":24},\"start\":{\"character\":0,\"line\":24}},\"severity\":1,\"source\":\"rustc\"}],\"uri\":\"file:///home/alex/code/rls/src/main.rs\"}}"
- ],
- expected: [
- ExpectedMessage {
- id: Some(
- 0
- ),
- contains: [
- "capabilities"
- ]
- },
- ExpectedMessage {
- id: None,
- contains: [
- "beginBuild"
- ]
- },
- ExpectedMessage {
- id: None,
- contains: [
- "diagnosticsBegin"
- ]
- },
- ExpectedMessage {
- id: None,
- contains: [
- "diagnosticsEnd"
- ]
- }
- ]
- thread 'test::test_workspace_symbol' panicked at 'Could not find `diagnosticsEnd` in `{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"E0463","message":"can't find crate for `cargo`","range":{"end":{"character":19,"line":24},"start":{"character":0,"line":24}},"severity":1,"source":"rustc"}],"uri":"file:///home/alex/code/rls/src/main.rs"}}`', /checkout/src/libcore/option.rs:891:4
- failures:
- test::test_workspace_symbol
- test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 27 filtered out
Add Comment
Please, Sign In to add comment