[INFO] fetching crate felixs-tower-lsp 0.20.0... [INFO] testing felixs-tower-lsp-0.20.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate felixs-tower-lsp 0.20.0 into /workspace/builds/worker-7-tc1/source [INFO] removed /workspace/builds/worker-7-tc1/source/rust-toolchain [INFO] started tweaking crates.io crate felixs-tower-lsp 0.20.0 [INFO] finished tweaking crates.io crate felixs-tower-lsp 0.20.0 [INFO] tweaked toml for crates.io crate felixs-tower-lsp 0.20.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate felixs-tower-lsp 0.20.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate felixs-tower-lsp 0.20.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-codec-lite v0.0.2 [INFO] [stderr] Downloaded tower-lsp-macros v0.9.0 [INFO] [stderr] Downloaded ws_stream_tungstenite v0.10.0 [INFO] [stderr] Downloaded async-tungstenite v0.22.2 [INFO] [stderr] Downloaded tokio v1.34.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e34b73ba49347620cc9c791c2e3521fca565086d0739566ff67b1f3f7113aea [INFO] running `Command { std: "docker" "start" "-a" "7e34b73ba49347620cc9c791c2e3521fca565086d0739566ff67b1f3f7113aea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e34b73ba49347620cc9c791c2e3521fca565086d0739566ff67b1f3f7113aea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e34b73ba49347620cc9c791c2e3521fca565086d0739566ff67b1f3f7113aea", kill_on_drop: false }` [INFO] [stdout] 7e34b73ba49347620cc9c791c2e3521fca565086d0739566ff67b1f3f7113aea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ab3c51887f08a041c774e99c0b883dd41a03180632e7bb5617d5556e69c8141f [INFO] running `Command { std: "docker" "start" "-a" "ab3c51887f08a041c774e99c0b883dd41a03180632e7bb5617d5556e69c8141f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling tokio v1.34.0 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling hashbrown v0.14.2 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling auto_impl v1.2.0 [INFO] [stderr] Compiling tower-lsp-macros v0.9.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling lsp-types v0.94.1 [INFO] [stderr] Compiling felixs-tower-lsp v0.20.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/service/client/pending.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | struct Waiters(usize); [INFO] [stdout] | ------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Waiters` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.38s [INFO] running `Command { std: "docker" "inspect" "ab3c51887f08a041c774e99c0b883dd41a03180632e7bb5617d5556e69c8141f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab3c51887f08a041c774e99c0b883dd41a03180632e7bb5617d5556e69c8141f", kill_on_drop: false }` [INFO] [stdout] ab3c51887f08a041c774e99c0b883dd41a03180632e7bb5617d5556e69c8141f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 9f468bf8d04e0c3b1da839c9fdf56707748a3ef466bfe765541551d76e88acf5 [INFO] running `Command { std: "docker" "start" "-a" "9f468bf8d04e0c3b1da839c9fdf56707748a3ef466bfe765541551d76e88acf5", kill_on_drop: false }` [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling mio v0.8.9 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling pharos v0.5.3 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling tokio v1.34.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling async_io_stream v0.3.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ws_stream_tungstenite v0.10.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling tungstenite v0.19.0 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling async-tungstenite v0.22.2 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling felixs-tower-lsp v0.20.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/service/client/pending.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | struct Waiters(usize); [INFO] [stdout] | ------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Waiters` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/tcp.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tower_lsp::lsp_types::*; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/tcp.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tower_lsp::jsonrpc::Result; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/stdio.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tower_lsp::lsp_types::*; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/stdio.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tower_lsp::jsonrpc::Result; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/custom_notification.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tower_lsp::lsp_types::*; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/websocket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tower_lsp::lsp_types::*; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/custom_notification.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tower_lsp::jsonrpc::{Error, Result}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/websocket.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tower_lsp::jsonrpc::Result; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/custom_notification.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tower_lsp::lsp_types::notification::Notification; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tower_lsp` [INFO] [stdout] --> examples/stdio.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tower_lsp::{Client, LanguageServer, LspService, Server}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/stdio.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[tower_lsp::async_trait] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tower_lsp` [INFO] [stdout] --> examples/tcp.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tower_lsp::{Client, LanguageServer, LspService, Server}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tower_lsp` [INFO] [stdout] --> examples/websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tower_lsp::{Client, LanguageServer, LspService, Server}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/websocket.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[tower_lsp::async_trait] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/tcp.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[tower_lsp::async_trait] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tower_lsp` [INFO] [stdout] --> examples/custom_notification.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tower_lsp::{Client, LanguageServer, LspService, Server}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower_lsp`, use `cargo add tower_lsp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] --> examples/custom_notification.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 36 | #[tower_lsp::async_trait] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tower_lsp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializeParams` in this scope [INFO] [stdout] --> examples/custom_notification.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | async fn initialize(&self, _: InitializeParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializeResult` in this scope [INFO] [stdout] --> examples/custom_notification.rs:38:63 [INFO] [stdout] | [INFO] [stdout] 38 | async fn initialize(&self, _: InitializeParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `InitializeResult` in this scope [INFO] [stdout] --> examples/custom_notification.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | Ok(InitializeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ServerCapabilities` in this scope [INFO] [stdout] --> examples/custom_notification.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | capabilities: ServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ExecuteCommandOptions` in this scope [INFO] [stdout] --> examples/custom_notification.rs:42:48 [INFO] [stdout] | [INFO] [stdout] 42 | execute_command_provider: Some(ExecuteCommandOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ExecuteCommandOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ServerCapabilities` [INFO] [stdout] --> examples/custom_notification.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | ..ServerCapabilities::default() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `ServerCapabilities` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExecuteCommandParams` in this scope [INFO] [stdout] --> examples/custom_notification.rs:56:45 [INFO] [stdout] | [INFO] [stdout] 56 | async fn execute_command(&self, params: ExecuteCommandParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ExecuteCommandParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/custom_notification.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | MessageType::INFO, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `felixs-tower-lsp` (example "custom_notification") due to 13 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `InitializeParams` in this scope [INFO] [stdout] --> examples/stdio.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | async fn initialize(&self, _: InitializeParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializeResult` in this scope [INFO] [stdout] --> examples/stdio.rs:13:63 [INFO] [stdout] | [INFO] [stdout] 13 | async fn initialize(&self, _: InitializeParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `InitializeResult` in this scope [INFO] [stdout] --> examples/stdio.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | Ok(InitializeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ServerCapabilities` in this scope [INFO] [stdout] --> examples/stdio.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | capabilities: ServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextDocumentSyncCapability` [INFO] [stdout] --> examples/stdio.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | text_document_sync: Some(TextDocumentSyncCapability::Kind( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TextDocumentSyncCapability` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::TextDocumentSyncCapability; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextDocumentSyncKind` [INFO] [stdout] --> examples/stdio.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | TextDocumentSyncKind::INCREMENTAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TextDocumentSyncKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::TextDocumentSyncKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CompletionOptions` in this scope [INFO] [stdout] --> examples/stdio.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | completion_provider: Some(CompletionOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ExecuteCommandOptions` in this scope [INFO] [stdout] --> examples/stdio.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | execute_command_provider: Some(ExecuteCommandOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ExecuteCommandOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WorkspaceServerCapabilities` in this scope [INFO] [stdout] --> examples/stdio.rs:31:33 [INFO] [stdout] | [INFO] [stdout] 31 | workspace: Some(WorkspaceServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WorkspaceFoldersServerCapabilities` in this scope [INFO] [stdout] --> examples/stdio.rs:32:45 [INFO] [stdout] | [INFO] [stdout] 32 | workspace_folders: Some(WorkspaceFoldersServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceFoldersServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OneOf` [INFO] [stdout] --> examples/stdio.rs:34:52 [INFO] [stdout] | [INFO] [stdout] 34 | change_notifications: Some(OneOf::Left(true)), [INFO] [stdout] | ^^^^^ use of undeclared type `OneOf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::OneOf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ServerCapabilities` [INFO] [stdout] --> examples/stdio.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | ..ServerCapabilities::default() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `ServerCapabilities` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializedParams` in this scope [INFO] [stdout] --> examples/stdio.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 44 | async fn initialized(&self, _: InitializedParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializedParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | .log_message(MessageType::INFO, "initialized!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeWorkspaceFoldersParams` in this scope [INFO] [stdout] --> examples/stdio.rs:54:53 [INFO] [stdout] | [INFO] [stdout] 54 | async fn did_change_workspace_folders(&self, _: DidChangeWorkspaceFoldersParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeWorkspaceFoldersParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 56 | .log_message(MessageType::INFO, "workspace folders changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeConfigurationParams` in this scope [INFO] [stdout] --> examples/stdio.rs:60:49 [INFO] [stdout] | [INFO] [stdout] 60 | async fn did_change_configuration(&self, _: DidChangeConfigurationParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeConfigurationParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 62 | .log_message(MessageType::INFO, "configuration changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeWatchedFilesParams` in this scope [INFO] [stdout] --> examples/stdio.rs:66:49 [INFO] [stdout] | [INFO] [stdout] 66 | async fn did_change_watched_files(&self, _: DidChangeWatchedFilesParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeWatchedFilesParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 68 | .log_message(MessageType::INFO, "watched files have changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExecuteCommandParams` in this scope [INFO] [stdout] --> examples/stdio.rs:72:40 [INFO] [stdout] | [INFO] [stdout] 72 | async fn execute_command(&self, _: ExecuteCommandParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ExecuteCommandParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 74 | .log_message(MessageType::INFO, "command executed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WorkspaceEdit` [INFO] [stdout] --> examples/stdio.rs:77:38 [INFO] [stdout] | [INFO] [stdout] 77 | match self.client.apply_edit(WorkspaceEdit::default()).await { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WorkspaceEdit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceEdit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:78:63 [INFO] [stdout] | [INFO] [stdout] 78 | Ok(res) if res.applied => self.client.log_message(MessageType::INFO, "applied").await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:79:46 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(_) => self.client.log_message(MessageType::INFO, "rejected").await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:80:49 [INFO] [stdout] | [INFO] [stdout] 80 | Err(err) => self.client.log_message(MessageType::ERROR, err).await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidOpenTextDocumentParams` in this scope [INFO] [stdout] --> examples/stdio.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | async fn did_open(&self, _: DidOpenTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidOpenTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 88 | .log_message(MessageType::INFO, "file opened!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeTextDocumentParams` in this scope [INFO] [stdout] --> examples/stdio.rs:92:35 [INFO] [stdout] | [INFO] [stdout] 92 | async fn did_change(&self, _: DidChangeTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:94:26 [INFO] [stdout] | [INFO] [stdout] 94 | .log_message(MessageType::INFO, "file changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidSaveTextDocumentParams` in this scope [INFO] [stdout] --> examples/stdio.rs:98:33 [INFO] [stdout] | [INFO] [stdout] 98 | async fn did_save(&self, _: DidSaveTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidSaveTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | .log_message(MessageType::INFO, "file saved!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidCloseTextDocumentParams` in this scope [INFO] [stdout] --> examples/stdio.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 104 | async fn did_close(&self, _: DidCloseTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidCloseTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/stdio.rs:106:26 [INFO] [stdout] | [INFO] [stdout] 106 | .log_message(MessageType::INFO, "file closed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompletionParams` in this scope [INFO] [stdout] --> examples/stdio.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | async fn completion(&self, _: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompletionResponse` in this scope [INFO] [stdout] --> examples/stdio.rs:110:70 [INFO] [stdout] | [INFO] [stdout] 110 | async fn completion(&self, _: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionResponse` [INFO] [stdout] --> examples/stdio.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | Ok(Some(CompletionResponse::Array(vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `CompletionResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionItem` [INFO] [stdout] --> examples/stdio.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | CompletionItem::new_simple("Hello".to_string(), "Some detail".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `CompletionItem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionItem` [INFO] [stdout] --> examples/stdio.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | CompletionItem::new_simple("Bye".to_string(), "More detail".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `CompletionItem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializeParams` in this scope [INFO] [stdout] --> examples/tcp.rs:14:35 [INFO] [stdout] | [INFO] [stdout] 14 | async fn initialize(&self, _: InitializeParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializeResult` in this scope [INFO] [stdout] --> examples/tcp.rs:14:63 [INFO] [stdout] | [INFO] [stdout] 14 | async fn initialize(&self, _: InitializeParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `InitializeResult` in this scope [INFO] [stdout] --> examples/tcp.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(InitializeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ServerCapabilities` in this scope [INFO] [stdout] --> examples/tcp.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | capabilities: ServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextDocumentSyncCapability` [INFO] [stdout] --> examples/tcp.rs:18:42 [INFO] [stdout] | [INFO] [stdout] 18 | text_document_sync: Some(TextDocumentSyncCapability::Kind( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TextDocumentSyncCapability` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::TextDocumentSyncCapability; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextDocumentSyncKind` [INFO] [stdout] --> examples/tcp.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | TextDocumentSyncKind::INCREMENTAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TextDocumentSyncKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::TextDocumentSyncKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CompletionOptions` in this scope [INFO] [stdout] --> examples/tcp.rs:21:43 [INFO] [stdout] | [INFO] [stdout] 21 | completion_provider: Some(CompletionOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ExecuteCommandOptions` in this scope [INFO] [stdout] --> examples/tcp.rs:28:48 [INFO] [stdout] | [INFO] [stdout] 28 | execute_command_provider: Some(ExecuteCommandOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ExecuteCommandOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WorkspaceServerCapabilities` in this scope [INFO] [stdout] --> examples/tcp.rs:32:33 [INFO] [stdout] | [INFO] [stdout] 32 | workspace: Some(WorkspaceServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WorkspaceFoldersServerCapabilities` in this scope [INFO] [stdout] --> examples/tcp.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | workspace_folders: Some(WorkspaceFoldersServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceFoldersServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OneOf` [INFO] [stdout] --> examples/tcp.rs:35:52 [INFO] [stdout] | [INFO] [stdout] 35 | change_notifications: Some(OneOf::Left(true)), [INFO] [stdout] | ^^^^^ use of undeclared type `OneOf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::OneOf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ServerCapabilities` [INFO] [stdout] --> examples/tcp.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | ..ServerCapabilities::default() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `ServerCapabilities` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializedParams` in this scope [INFO] [stdout] --> examples/tcp.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 45 | async fn initialized(&self, _: InitializedParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializedParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 47 | .log_message(MessageType::INFO, "initialized!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeWorkspaceFoldersParams` in this scope [INFO] [stdout] --> examples/tcp.rs:55:53 [INFO] [stdout] | [INFO] [stdout] 55 | async fn did_change_workspace_folders(&self, _: DidChangeWorkspaceFoldersParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeWorkspaceFoldersParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | .log_message(MessageType::INFO, "workspace folders changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeConfigurationParams` in this scope [INFO] [stdout] --> examples/tcp.rs:61:49 [INFO] [stdout] | [INFO] [stdout] 61 | async fn did_change_configuration(&self, _: DidChangeConfigurationParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeConfigurationParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | .log_message(MessageType::INFO, "configuration changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializeParams` in this scope [INFO] [stdout] --> examples/websocket.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | async fn initialize(&self, _: InitializeParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializeResult` in this scope [INFO] [stdout] --> examples/websocket.rs:17:63 [INFO] [stdout] | [INFO] [stdout] 17 | async fn initialize(&self, _: InitializeParams) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `InitializeResult` in this scope [INFO] [stdout] --> examples/websocket.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | Ok(InitializeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializeResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ServerCapabilities` in this scope [INFO] [stdout] --> examples/websocket.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 20 | capabilities: ServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextDocumentSyncCapability` [INFO] [stdout] --> examples/websocket.rs:21:42 [INFO] [stdout] | [INFO] [stdout] 21 | text_document_sync: Some(TextDocumentSyncCapability::Kind( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TextDocumentSyncCapability` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::TextDocumentSyncCapability; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextDocumentSyncKind` [INFO] [stdout] --> examples/websocket.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | TextDocumentSyncKind::INCREMENTAL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TextDocumentSyncKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::TextDocumentSyncKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CompletionOptions` in this scope [INFO] [stdout] --> examples/websocket.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 24 | completion_provider: Some(CompletionOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ExecuteCommandOptions` in this scope [INFO] [stdout] --> examples/websocket.rs:29:48 [INFO] [stdout] | [INFO] [stdout] 29 | execute_command_provider: Some(ExecuteCommandOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ExecuteCommandOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WorkspaceServerCapabilities` in this scope [INFO] [stdout] --> examples/websocket.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | workspace: Some(WorkspaceServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WorkspaceFoldersServerCapabilities` in this scope [INFO] [stdout] --> examples/websocket.rs:34:45 [INFO] [stdout] | [INFO] [stdout] 34 | workspace_folders: Some(WorkspaceFoldersServerCapabilities { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceFoldersServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OneOf` [INFO] [stdout] --> examples/websocket.rs:36:52 [INFO] [stdout] | [INFO] [stdout] 36 | change_notifications: Some(OneOf::Left(true)), [INFO] [stdout] | ^^^^^ use of undeclared type `OneOf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::OneOf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ServerCapabilities` [INFO] [stdout] --> examples/websocket.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | ..ServerCapabilities::default() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `ServerCapabilities` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ServerCapabilities; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InitializedParams` in this scope [INFO] [stdout] --> examples/websocket.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | async fn initialized(&self, _: InitializedParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::InitializedParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 48 | .log_message(MessageType::INFO, "initialized!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeWorkspaceFoldersParams` in this scope [INFO] [stdout] --> examples/websocket.rs:56:53 [INFO] [stdout] | [INFO] [stdout] 56 | async fn did_change_workspace_folders(&self, _: DidChangeWorkspaceFoldersParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeWorkspaceFoldersParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `felixs-tower-lsp` (example "stdio") due to 43 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | .log_message(MessageType::INFO, "workspace folders changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeConfigurationParams` in this scope [INFO] [stdout] --> examples/websocket.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn did_change_configuration(&self, _: DidChangeConfigurationParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeConfigurationParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 64 | .log_message(MessageType::INFO, "configuration changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeWatchedFilesParams` in this scope [INFO] [stdout] --> examples/websocket.rs:68:49 [INFO] [stdout] | [INFO] [stdout] 68 | async fn did_change_watched_files(&self, _: DidChangeWatchedFilesParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeWatchedFilesParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | .log_message(MessageType::INFO, "watched files have changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExecuteCommandParams` in this scope [INFO] [stdout] --> examples/websocket.rs:74:40 [INFO] [stdout] | [INFO] [stdout] 74 | async fn execute_command(&self, _: ExecuteCommandParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ExecuteCommandParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | .log_message(MessageType::INFO, "command executed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WorkspaceEdit` [INFO] [stdout] --> examples/websocket.rs:79:38 [INFO] [stdout] | [INFO] [stdout] 79 | match self.client.apply_edit(WorkspaceEdit::default()).await { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WorkspaceEdit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceEdit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:80:63 [INFO] [stdout] | [INFO] [stdout] 80 | Ok(res) if res.applied => self.client.log_message(MessageType::INFO, "applied").await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | Ok(_) => self.client.log_message(MessageType::INFO, "rejected").await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:82:49 [INFO] [stdout] | [INFO] [stdout] 82 | Err(err) => self.client.log_message(MessageType::ERROR, err).await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidOpenTextDocumentParams` in this scope [INFO] [stdout] --> examples/websocket.rs:88:33 [INFO] [stdout] | [INFO] [stdout] 88 | async fn did_open(&self, _: DidOpenTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidOpenTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:90:26 [INFO] [stdout] | [INFO] [stdout] 90 | .log_message(MessageType::INFO, "file opened!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeTextDocumentParams` in this scope [INFO] [stdout] --> examples/websocket.rs:94:35 [INFO] [stdout] | [INFO] [stdout] 94 | async fn did_change(&self, _: DidChangeTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:96:26 [INFO] [stdout] | [INFO] [stdout] 96 | .log_message(MessageType::INFO, "file changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidSaveTextDocumentParams` in this scope [INFO] [stdout] --> examples/websocket.rs:100:33 [INFO] [stdout] | [INFO] [stdout] 100 | async fn did_save(&self, _: DidSaveTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidSaveTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | .log_message(MessageType::INFO, "file saved!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidCloseTextDocumentParams` in this scope [INFO] [stdout] --> examples/websocket.rs:106:34 [INFO] [stdout] | [INFO] [stdout] 106 | async fn did_close(&self, _: DidCloseTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidCloseTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/websocket.rs:108:26 [INFO] [stdout] | [INFO] [stdout] 108 | .log_message(MessageType::INFO, "file closed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompletionParams` in this scope [INFO] [stdout] --> examples/websocket.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | async fn completion(&self, _: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeWatchedFilesParams` in this scope [INFO] [stdout] --> examples/tcp.rs:67:49 [INFO] [stdout] | [INFO] [stdout] 67 | async fn did_change_watched_files(&self, _: DidChangeWatchedFilesParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeWatchedFilesParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:69:26 [INFO] [stdout] | [INFO] [stdout] 69 | .log_message(MessageType::INFO, "watched files have changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ExecuteCommandParams` in this scope [INFO] [stdout] --> examples/tcp.rs:73:40 [INFO] [stdout] | [INFO] [stdout] 73 | async fn execute_command(&self, _: ExecuteCommandParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::ExecuteCommandParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | .log_message(MessageType::INFO, "command executed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WorkspaceEdit` [INFO] [stdout] --> examples/tcp.rs:78:38 [INFO] [stdout] | [INFO] [stdout] 78 | match self.client.apply_edit(WorkspaceEdit::default()).await { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WorkspaceEdit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::WorkspaceEdit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:79:63 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(res) if res.applied => self.client.log_message(MessageType::INFO, "applied").await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:80:46 [INFO] [stdout] | [INFO] [stdout] 80 | Ok(_) => self.client.log_message(MessageType::INFO, "rejected").await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:81:49 [INFO] [stdout] | [INFO] [stdout] 81 | Err(err) => self.client.log_message(MessageType::ERROR, err).await, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidOpenTextDocumentParams` in this scope [INFO] [stdout] --> examples/tcp.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 87 | async fn did_open(&self, _: DidOpenTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidOpenTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:89:26 [INFO] [stdout] | [INFO] [stdout] 89 | .log_message(MessageType::INFO, "file opened!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidChangeTextDocumentParams` in this scope [INFO] [stdout] --> examples/tcp.rs:93:35 [INFO] [stdout] | [INFO] [stdout] 93 | async fn did_change(&self, _: DidChangeTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidChangeTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:95:26 [INFO] [stdout] | [INFO] [stdout] 95 | .log_message(MessageType::INFO, "file changed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidSaveTextDocumentParams` in this scope [INFO] [stdout] --> examples/tcp.rs:99:33 [INFO] [stdout] | [INFO] [stdout] 99 | async fn did_save(&self, _: DidSaveTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidSaveTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | .log_message(MessageType::INFO, "file saved!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DidCloseTextDocumentParams` in this scope [INFO] [stdout] --> examples/tcp.rs:105:34 [INFO] [stdout] | [INFO] [stdout] 105 | async fn did_close(&self, _: DidCloseTextDocumentParams) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::DidCloseTextDocumentParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageType` [INFO] [stdout] --> examples/tcp.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | .log_message(MessageType::INFO, "file closed!") [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `MessageType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::MessageType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompletionParams` in this scope [INFO] [stdout] --> examples/tcp.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | async fn completion(&self, _: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompletionResponse` in this scope [INFO] [stdout] --> examples/tcp.rs:111:70 [INFO] [stdout] | [INFO] [stdout] 111 | async fn completion(&self, _: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionResponse` [INFO] [stdout] --> examples/tcp.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | Ok(Some(CompletionResponse::Array(vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `CompletionResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionItem` [INFO] [stdout] --> examples/tcp.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | CompletionItem::new_simple("Hello".to_string(), "Some detail".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `CompletionItem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionItem` [INFO] [stdout] --> examples/tcp.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | CompletionItem::new_simple("Bye".to_string(), "More detail".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `CompletionItem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompletionResponse` in this scope [INFO] [stdout] --> examples/websocket.rs:112:70 [INFO] [stdout] | [INFO] [stdout] 112 | async fn completion(&self, _: CompletionParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionResponse` [INFO] [stdout] --> examples/websocket.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | Ok(Some(CompletionResponse::Array(vec![ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `CompletionResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionItem` [INFO] [stdout] --> examples/websocket.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | CompletionItem::new_simple("Hello".to_string(), "Some detail".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `CompletionItem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CompletionItem` [INFO] [stdout] --> examples/websocket.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | CompletionItem::new_simple("Bye".to_string(), "More detail".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `CompletionItem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use lsp_types::CompletionItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `felixs-tower-lsp` (example "websocket") due to 43 previous errors [INFO] [stderr] error: could not compile `felixs-tower-lsp` (example "tcp") due to 43 previous errors [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/service/client/pending.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | struct Waiters(usize); [INFO] [stdout] | ------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Waiters` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9f468bf8d04e0c3b1da839c9fdf56707748a3ef466bfe765541551d76e88acf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f468bf8d04e0c3b1da839c9fdf56707748a3ef466bfe765541551d76e88acf5", kill_on_drop: false }` [INFO] [stdout] 9f468bf8d04e0c3b1da839c9fdf56707748a3ef466bfe765541551d76e88acf5