Guest User

Untitled

a guest
Dec 26th, 2017
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.53 KB | None | 0 0
  1. running 1 test
  2. 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"}}`
  3. 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")}) }`
  4. TRACE:rls::server: Handling `initialize`
  5. TRACE:rls::server: init: InitializationOptions { omit_init_build: false }
  6. TRACE:rls::build: request_build Cargo
  7. TRACE:rls::config: root manifest_path: "/home/alex/code/rls/test_data/workspace_symbol/Cargo.toml"
  8. TRACE:rls::build: run_build, "/home/alex/code/rls/test_data/workspace_symbol" Cargo
  9. TRACE:rls::build: running build
  10. 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
  11. DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/rls/test_data/Cargo.toml
  12. DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/rls/Cargo.toml
  13. TRACE:cargo::util::toml: read_manifest; path=/home/alex/code/rls/Cargo.toml; source-id=file:///home/alex/code/rls
  14. DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/Cargo.toml
  15. DEBUG:cargo::core::workspace: find_root - trying /home/alex/Cargo.toml
  16. DEBUG:cargo::core::workspace: find_root - trying /home/Cargo.toml
  17. DEBUG:cargo::core::workspace: find_root - trying /Cargo.toml
  18. DEBUG:cargo::core::workspace: find_members - only me as a member
  19. TRACE:rls::config: infer_config_defaults: Auto-detected `workspace_symbol` package
  20. TRACE:rls::config: infer_config_defaults: build_lib: false, build_bin: Some("workspace_symbol")
  21. TRACE:rls::build::cargo: root manifest_path: "/home/alex/code/rls/test_data/workspace_symbol/Cargo.toml"
  22. 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
  23. DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/rls/test_data/Cargo.toml
  24. DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/rls/Cargo.toml
  25. TRACE:cargo::util::toml: read_manifest; path=/home/alex/code/rls/Cargo.toml; source-id=file:///home/alex/code/rls
  26. DEBUG:cargo::core::workspace: find_root - trying /home/alex/code/Cargo.toml
  27. DEBUG:cargo::core::workspace: find_root - trying /home/alex/Cargo.toml
  28. DEBUG:cargo::core::workspace: find_root - trying /home/Cargo.toml
  29. DEBUG:cargo::core::workspace: find_root - trying /Cargo.toml
  30. DEBUG:cargo::core::workspace: find_members - only me as a member
  31. TRACE:rls::build::cargo: Cargo compilation options:
  32. CargoOptions { package: [], target: None, lib: false, bin: ["workspace_symbol"], bins: false, all: false, exclude: [], all_features: false, no_default_features: false, features: [], jobs: None }
  33. TRACE:cargo::ops::resolve: previous: graph: Graph {
  34. - workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  35. }
  36.  
  37. features: {
  38. }
  39. TRACE:cargo::core::registry: register_lock: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  40. DEBUG:cargo::core::registry: load/missing file:///home/alex/code/rls/test_data/workspace_symbol
  41. DEBUG:cargo::sources::config: loading: file:///home/alex/code/rls/test_data/workspace_symbol
  42. TRACE:cargo::core::source::source_id: loading SourceId; file:///home/alex/code/rls/test_data/workspace_symbol
  43. 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
  44. 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
  45. TRACE:cargo::core::registry: locking summary of workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  46. DEBUG:cargo::core::resolver: initial activation: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  47. TRACE:cargo::core::resolver: activating workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  48. TRACE:cargo::core::resolver: resolved: graph: Graph {
  49. - workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  50. }
  51.  
  52. features: {
  53. }
  54. TRACE:cargo::ops::resolve: previous: graph: Graph {
  55. - workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  56. }
  57.  
  58. features: {
  59. }
  60. TRACE:cargo::core::registry: register_lock: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  61. DEBUG:cargo::core::registry: load/locked file:///home/alex/code/rls/test_data/workspace_symbol
  62. TRACE:cargo::core::registry: locking summary of workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  63. DEBUG:cargo::core::resolver: initial activation: workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  64. TRACE:cargo::core::resolver: activating workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  65. TRACE:cargo::core::resolver: resolved: graph: Graph {
  66. - workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  67. }
  68.  
  69. features: {
  70. }
  71. TRACE:cargo::core::registry: getting packages; sources=1
  72. TRACE:cargo::sources::path: getting packages; id=workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol)
  73. DEBUG:cargo::ops::cargo_compile: found bin `workspace_symbol`
  74. DEBUG:cargo::ops::cargo_rustc::context: probe_target_info: crate_types={"bin", "rlib"}
  75. DEBUG:cargo::ops::cargo_rustc::fingerprint: fingerprint at: /home/alex/code/rls/target/tests/0/debug/.fingerprint/workspace_symbol-5ae3283dbd9f6964/bin-workspace_symbol-5ae3283dbd9f6964
  76. 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`
  77. INFO:cargo::ops::cargo_rustc::fingerprint: cause: No such file or directory (os error 2)
  78. 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)]
  79. TRACE:cargo::ops::cargo_rustc::job_queue: queue: DependencyQueue {
  80. dep_map: {
  81. workspace_symbol v0.1.0 (file:///home/alex/code/rls/test_data/workspace_symbol) => Target(bin: workspace_symbol)/Profile(check) => Host: (
  82. {},
  83. [
  84. (
  85. Job { ... },
  86. Dirty
  87. )
  88. ]
  89. )
  90. },
  91. reverse_dep_map: {},
  92. dirty: {},
  93. pending: {}
  94. }
  95. 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
  96. TRACE:rls::build::cargo: exec: workspace_symbol
  97. 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")}
  98. DEBUG:cargo::ops::cargo_rustc::fingerprint: write fingerprint: /home/alex/code/rls/target/tests/0/debug/.fingerprint/workspace_symbol-5ae3283dbd9f6964/bin-workspace_symbol-5ae3283dbd9f6964
  99. 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
  100. 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 }}
  101. Dependency graph:
  102. (PackageId { name: "workspace_symbol", version: "0.1.0", source: "file:///home/alex/code/rls/test_data/workspace_symbol" }, Bin)
  103. Reverse dependency graph:
  104. (PackageId { name: "workspace_symbol", version: "0.1.0", source: "file:///home/alex/code/rls/test_data/workspace_symbol" }, Bin)
  105. 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 } } }) }}
  106.  
  107. 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"
  108. TRACE:rls::build: Files still dirty after the build: {}
  109. TRACE:rls::actions::post_build: build - Success
  110. DEBUG:rls::actions::post_build: reload analysis: "/home/alex/code/rls/test_data/workspace_symbol"
  111. 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"]
  112. TRACE:rls_analysis: hard_reload "/home/alex/code/rls/test_data/workspace_symbol" "/home/alex/code/rls"
  113. test test::test_workspace_symbol ... FAILED
  114.  
  115. failures:
  116.  
  117. ---- test::test_workspace_symbol stdout ----
  118. expect_messages:
  119. results: [
  120. "{\"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\"]}}}}",
  121. "{\"jsonrpc\":\"2.0\",\"method\":\"rustDocument/beginBuild\",\"params\":null}",
  122. "{\"jsonrpc\":\"2.0\",\"method\":\"rustDocument/diagnosticsBegin\",\"params\":null}",
  123. "{\"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\"}}"
  124. ],
  125. expected: [
  126. ExpectedMessage {
  127. id: Some(
  128. 0
  129. ),
  130. contains: [
  131. "capabilities"
  132. ]
  133. },
  134. ExpectedMessage {
  135. id: None,
  136. contains: [
  137. "beginBuild"
  138. ]
  139. },
  140. ExpectedMessage {
  141. id: None,
  142. contains: [
  143. "diagnosticsBegin"
  144. ]
  145. },
  146. ExpectedMessage {
  147. id: None,
  148. contains: [
  149. "diagnosticsEnd"
  150. ]
  151. }
  152. ]
  153. 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
  154.  
  155.  
  156. failures:
  157. test::test_workspace_symbol
  158.  
  159. test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 27 filtered out
Add Comment
Please, Sign In to add comment