Skip to content

Instantly share code, notes, and snippets.

@skeleten
Created January 3, 2018 02:10
Show Gist options
  • Save skeleten/791d8298e56994d7dabf87b32f08ff34 to your computer and use it in GitHub Desktop.
Save skeleten/791d8298e56994d7dabf87b32f08ff34 to your computer and use it in GitHub Desktop.
DEBUG:rls::server: Language Server starting up. Version: 0.124.0-nightly (9782aa4 2017-12-15)
TRACE:rls::server::io: reading: 422 bytes
TRACE:rls::server: Read message `{"jsonrpc":"2.0","method":"initialize","params":{"processId":5998,"rootPath":"/home/skeleten/Source/skeleten/rusty-lisp/","rootUri":"file:///home/skeleten/Source/skeleten/rusty-lisp/","capabilities":{"workspace":{"executeCommand":{"dynamicRegistration":true}},"textDocument":{"synchronization":{"willSave":true,"didSave":true},"completion":{"completionItem":{"snippetSupport":true}}}},"initializationOptions":null},"id":1}`
TRACE:rls::server: Parsed message `RawMessage { method: "initialize", id: Some(Num(1)), params: Object({"capabilities": Object({"textDocument": Object({"completion": Object({"completionItem": Object({"snippetSupport": Bool(true)})}), "synchronization": Object({"didSave": Bool(true), "willSave": Bool(true)})}), "workspace": Object({"executeCommand": Object({"dynamicRegistration": Bool(true)})})}), "initializationOptions": Null, "processId": Number(PosInt(5998)), "rootPath": String("/home/skeleten/Source/skeleten/rusty-lisp/"), "rootUri": String("file:///home/skeleten/Source/skeleten/rusty-lisp/")}) }`
TRACE:rls::server: Handling `initialize`
TRACE:rls::server: init: InitializationOptions { omit_init_build: false }
TRACE:rls::server::io: response: "Content-Length: 520\r\n\r\n{\"jsonrpc\":\"2.0\",\"id\":1,\"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\"]}}}}"
TRACE:rls::server::io: response: "Content-Length: 66\r\n\r\n{\"jsonrpc\":\"2.0\",\"method\":\"rustDocument/beginBuild\",\"params\":null}"
TRACE:rls::build: request_build Cargo
TRACE:rls::build: run_build, "/home/skeleten/Source/skeleten/rusty-lisp/" Cargo
TRACE:rls::build: running build
TRACE:rls::config: root manifest_path: "/home/skeleten/Source/skeleten/rusty-lisp/Cargo.toml"
TRACE:rls::config: infer_config_defaults: Auto-detected `rusty-lisp` package
TRACE:rls::config: infer_config_defaults: build_lib: false, build_bin: Some("rusty-lisp")
TRACE:rls::build::cargo: root manifest_path: "/home/skeleten/Source/skeleten/rusty-lisp/Cargo.toml"
TRACE:rls::build::cargo: Cargo compilation options:
CargoOptions { package: [], target: None, lib: false, bin: ["rusty-lisp"], bins: false, all: false, exclude: [], all_features: false, no_default_features: false, features: [], jobs: None }
TRACE:rls::server::io: reading: 54 bytes
TRACE:rls::server: Read message `{"jsonrpc":"2.0","method":"initialized","params":null}`
TRACE:rls::server: Parsed message `RawMessage { method: "initialized", id: None, params: Null }`
TRACE:rls::server: Handling `initialized`
TRACE:rls::server::io: response: "Content-Length: 342\r\n\r\n{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"client/registerCapability\",\"params\":{\"registrations\":[{\"id\":\"rls-watch\",\"method\":\"workspace/didChangeWatchedFiles\",\"registerOptions\":{\"watchers\":[{\"globPattern\":\"/home/skeleten/Source/skeleten/rusty-lisp//Cargo{.toml,.lock}\"},{\"globPattern\":\"/home/skeleten/Source/skeleten/rusty-lisp//target\",\"kind\":4}]}}]}}"
TRACE:rls::server::io: reading: 95 bytes
TRACE:rls::server: Read message `{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"rust":{}}}}`
TRACE:rls::server: Parsed message `RawMessage { method: "workspace/didChangeConfiguration", id: None, params: Object({"settings": Object({"rust": Object({})})}) }`
TRACE:rls::server: Handling `workspace/didChangeConfiguration`
TRACE:rls::actions::notifications: config change: Object({"rust": Object({})})
TRACE:rls::actions::notifications: Updated config: Config { sysroot: None, target: None, rustflags: None, build_lib: Inferred(false), build_bin: Inferred(None), cfg_test: false, unstable_features: false, wait_to_build: 500, show_warnings: true, goto_def_racer_fallback: false, workspace_mode: false, analyze_package: None, clear_env_rust_log: true, build_on_save: false, use_crate_blacklist: true, target_dir: None, features: [], all_features: false, no_default_features: false, jobs: None }
TRACE:rls::server::io: response: "Content-Length: 66\r\n\r\n{\"jsonrpc\":\"2.0\",\"method\":\"rustDocument/beginBuild\",\"params\":null}"
TRACE:rls::build: request_build Cargo
TRACE:rls::server::io: response: "Content-Length: 165\r\n\r\n{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"client/unregisterCapability\",\"params\":{\"unregisterations\":[{\"id\":\"rls-range-formatting\",\"method\":\"textDocument/rangeFormatting\"}]}}"
TRACE:rls::server::io: reading: 492 bytes
TRACE:rls::server: Read message `{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///home/skeleten/Source/skeleten/rusty-lisp/src/main.rs","languageId":"rust","version":0,"text":"mod lexer;\n\nuse std::io::{Read, Write};\n\nfn main() {\n let mut s = String::new();\n print!(\"> \");\n std::io::stdout().flush();\n std::io::stdin().read_line(&mut s).unwrap();\n let iter = lexer::lex(&s);\n let items = iter.collect::<Vec<_>>();\n println!(\"{:#?}\", items);\n}\n"}}}`
TRACE:rls::server: Parsed message `RawMessage { method: "textDocument/didOpen", id: None, params: Object({"textDocument": Object({"languageId": String("rust"), "text": String("mod lexer;\n\nuse std::io::{Read, Write};\n\nfn main() {\n let mut s = String::new();\n print!(\"> \");\n std::io::stdout().flush();\n std::io::stdin().read_line(&mut s).unwrap();\n let iter = lexer::lex(&s);\n let items = iter.collect::<Vec<_>>();\n println!(\"{:#?}\", items);\n}\n"), "uri": String("file:///home/skeleten/Source/skeleten/rusty-lisp/src/main.rs"), "version": Number(PosInt(0))})}) }`
TRACE:rls::server: Handling `textDocument/didOpen`
TRACE:rls::actions::notifications: on_open: "file:///home/skeleten/Source/skeleten/rusty-lisp/src/main.rs"
TRACE:rls::server::io: reading: 51 bytes
TRACE:rls::server: Read message `{"jsonrpc":"2.0","id":1,"result":null,"error":null}`
TRACE:rls::server::io: reading: 51 bytes
TRACE:rls::server: Read message `{"jsonrpc":"2.0","id":2,"result":null,"error":null}`
TRACE:rls::build::cargo: exec: rusty_lisp
TRACE:rls::build::cargo: rustc intercepted - args: ["--crate-name", "rusty_lisp", "main.rs", "--color", "never", "--crate-type", "bin", "--emit=dep-info,metadata", "-C", "debuginfo=2", "-C", "metadata=0f2060deac6e9a33", "-C", "extra-filename=-0f2060deac6e9a33", "--out-dir", "/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps", "-L", "dependency=/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps", "--error-format=json"] envs: {"CARGO_PKG_VERSION_MINOR": Some("1"), "LD_LIBRARY_PATH": Some("/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps:/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu/lib"), "CARGO_PKG_AUTHORS": Some("Jan Pelle Thomson <pelle.thomson@yahoo.de>"), "CARGO_MANIFEST_DIR": Some("/home/skeleten/Source/skeleten/rusty-lisp"), "CARGO_PKG_VERSION_PATCH": Some("0"), "CARGO_PKG_VERSION_MAJOR": Some("0"), "CARGO_PKG_VERSION_PRE": Some(""), "CARGO": Some("/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu/bin/rls"), "CARGO_PKG_DESCRIPTION": Some(""), "CARGO_PKG_NAME": Some("rusty-lisp"), "CARGO_PKG_HOMEPAGE": Some(""), "CARGO_PKG_VERSION": Some("0.1.0")}
{"message":"unused import: `Read`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"main.rs","byte_start":26,"byte_end":30,"line_start":3,"line_end":3,"column_start":15,"column_end":19,"is_primary":true,"text":[{"text":"use std::io::{Read, Write};","highlight_start":15,"highlight_end":19}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[{"message":"#[warn(unused_imports)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"warning: unused import: `Read`\n --> main.rs:3:15\n |\n3 | use std::io::{Read, Write};\n | ^^^^\n |\n = note: #[warn(unused_imports)] on by default\n\n"}
TRACE:rls::build::cargo: Created build plan after Cargo compilation routine: Units: {(PackageId { name: "rusty-lisp", version: "0.1.0", source: "file:///home/skeleten/Source/skeleten/rusty-lisp" }, Bin): OwnedUnit { id: PackageId { name: "rusty-lisp", version: "0.1.0", source: "file:///home/skeleten/Source/skeleten/rusty-lisp" }, target: Target { kind: Bin, name: "rusty-lisp", src_path: "/home/skeleten/Source/skeleten/rusty-lisp/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 }, kind: Host }}
Dependency graph:
(PackageId { name: "rusty-lisp", version: "0.1.0", source: "file:///home/skeleten/Source/skeleten/rusty-lisp" }, Bin)
Reverse dependency graph:
(PackageId { name: "rusty-lisp", version: "0.1.0", source: "file:///home/skeleten/Source/skeleten/rusty-lisp" }, Bin)
Compiler jobs: {(PackageId { name: "rusty-lisp", version: "0.1.0", source: "file:///home/skeleten/Source/skeleten/rusty-lisp" }, Bin): ProcessBuilder { program: "/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu/bin/rls", args: ["--crate-name", "rusty_lisp", "main.rs", "--color", "never", "--crate-type", "bin", "--emit=dep-info", "-C", "debuginfo=2", "-C", "metadata=0f2060deac6e9a33", "-C", "extra-filename=-0f2060deac6e9a33", "--out-dir", "/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps", "-L", "dependency=/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps", "--error-format=json", "--sysroot", "/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu"], env: {"RLS_RUSTC_SHIM": Some("1"), "CARGO_PKG_VERSION_MINOR": Some("1"), "LD_LIBRARY_PATH": Some("/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps:/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu/lib"), "CARGO_PKG_AUTHORS": Some("Jan Pelle Thomson <pelle.thomson@yahoo.de>"), "CARGO_MANIFEST_DIR": Some("/home/skeleten/Source/skeleten/rusty-lisp"), "CARGO_PKG_VERSION_PATCH": Some("0"), "CARGO_PKG_VERSION_MAJOR": Some("0"), "CARGO_PKG_VERSION_PRE": Some(""), "CARGO": Some("/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu/bin/rls"), "CARGO_PKG_DESCRIPTION": Some(""), "CARGO_PKG_NAME": Some("rusty-lisp"), "CARGO_PKG_HOMEPAGE": Some(""), "CARGO_PKG_VERSION": Some("0.1.0")}, cwd: Some("/home/skeleten/Source/skeleten/rusty-lisp/src"), jobserver: Some(Client { inner: Client { read: File { fd: 4, path: "pipe:[436696]", read: true, write: false }, write: File { fd: 5, path: "pipe:[436696]", read: false, write: true } } }) }}
TRACE:rls::build::rustc: rustc - args: `["rustc", "--crate-name", "rusty_lisp", "main.rs", "--color", "never", "--crate-type", "bin", "--emit=dep-info,metadata", "-C", "debuginfo=2", "-C", "metadata=0f2060deac6e9a33", "-C", "extra-filename=-0f2060deac6e9a33", "--out-dir", "/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps", "-L", "dependency=/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps", "--error-format=json", "--sysroot", "/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu"]`, envs: {"CARGO_PKG_VERSION_MINOR": Some("1"), "LD_LIBRARY_PATH": Some("/home/skeleten/Source/skeleten/rusty-lisp/target/rls/debug/deps:/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu/lib"), "CARGO_PKG_AUTHORS": Some("Jan Pelle Thomson <pelle.thomson@yahoo.de>"), "CARGO_MANIFEST_DIR": Some("/home/skeleten/Source/skeleten/rusty-lisp"), "CARGO_PKG_VERSION_PATCH": Some("0"), "CARGO_PKG_VERSION_MAJOR": Some("0"), "CARGO_PKG_VERSION_PRE": Some(""), "CARGO": Some("/home/skeleten/.rustup/toolchains/nightly-2017-12-21-x86_64-unknown-linux-gnu/bin/rls"), "CARGO_PKG_DESCRIPTION": Some(""), "CARGO_PKG_NAME": Some("rusty-lisp"), "CARGO_PKG_HOMEPAGE": Some(""), "CARGO_PKG_VERSION": Some("0.1.0")}, build dir: "/home/skeleten/Source/skeleten/rusty-lisp/"
fatal runtime error: allocator memory exhausted
Process lsp-rust stderr finished
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment