weixin_39761491
weixin_39761491
2020-12-25 23:19

Incomplete code completion on VSCode

Not sure if this is a bug in the Rust plugin or not, but I cannot seem to get code completion to work quite right in VSCode. I can see the options for completion, but when I "complete" the suggestion, it only fills in the function name and doesn't provide a placeholder for the parameters. Also tracking here: https://github.com/rust-lang-nursery/rls/issues/328

  • macOS 10.12.5
  • VSCode 1.12.2
  • Rust plugin 0.3.14
  • rustc 1.19.0-nightly (557967766 2017-05-26)
  • rls 0.1.0 (38ca9b7 2017-05-14)

Am I missing something? Is this just how code completion is supposed to work?

Thanks!

screen shot 2017-05-27 at 11 22 30 am screen shot 2017-05-27 at 11 22 37 am

Output of the "Rust logging" channel:


DEBUG: Configuration: Rustup: create: sysroot=/Users/xxxxx/.rustup/toolchains/nightly-x86_64-apple-darwin
DEBUG: Configuration: Rustup: updateComponents: this.components=["cargo-x86_64-apple-darwin (default)","rls-x86_64-apple-darwin (installed)","rust-analysis-x86_64-apple-darwin (installed)","rust-docs-x86_64-apple-darwin (default)","rust-src (installed)","rust-std-aarch64-apple-ios","rust-std-aarch64-linux-android","rust-std-aarch64-unknown-fuchsia","rust-std-aarch64-unknown-linux-gnu","rust-std-arm-linux-androideabi","rust-std-arm-unknown-linux-gnueabi","rust-std-arm-unknown-linux-gnueabihf","rust-std-arm-unknown-linux-musleabi","rust-std-arm-unknown-linux-musleabihf","rust-std-armv7-apple-ios","rust-std-armv7-linux-androideabi","rust-std-armv7-unknown-linux-gnueabihf","rust-std-armv7-unknown-linux-musleabihf","rust-std-armv7s-apple-ios","rust-std-asmjs-unknown-emscripten","rust-std-i386-apple-ios","rust-std-i586-pc-windows-msvc","rust-std-i586-unknown-linux-gnu","rust-std-i686-apple-darwin","rust-std-i686-linux-android","rust-std-i686-pc-windows-gnu","rust-std-i686-pc-windows-msvc","rust-std-i686-unknown-freebsd","rust-std-i686-unknown-linux-gnu","rust-std-i686-unknown-linux-musl","rust-std-mips-unknown-linux-gnu","rust-std-mips-unknown-linux-musl","rust-std-mips64-unknown-linux-gnuabi64","rust-std-mips64el-unknown-linux-gnuabi64","rust-std-mipsel-unknown-linux-gnu","rust-std-mipsel-unknown-linux-musl","rust-std-powerpc-unknown-linux-gnu","rust-std-powerpc64-unknown-linux-gnu","rust-std-powerpc64le-unknown-linux-gnu","rust-std-s390x-unknown-linux-gnu","rust-std-sparc64-unknown-linux-gnu","rust-std-wasm32-unknown-emscripten","rust-std-x86_64-apple-darwin (default)","rust-std-x86_64-apple-ios","rust-std-x86_64-linux-android","rust-std-x86_64-pc-windows-gnu","rust-std-x86_64-pc-windows-msvc","rust-std-x86_64-rumprun-netbsd","rust-std-x86_64-unknown-freebsd","rust-std-x86_64-unknown-fuchsia","rust-std-x86_64-unknown-linux-gnu","rust-std-x86_64-unknown-linux-musl","rust-std-x86_64-unknown-netbsd","rustc-x86_64-apple-darwin (default)",""]
DEBUG: Configuration: Rustup: updatePathToRlsExecutable: rlsInstalled=true
DEBUG: Configuration: Rustup: updatePathToRlsExecutable: rlsPath=/Users/xxxxx/.cargo/bin/rls
DEBUG: runInRlsMode: rlsPath=/Users/xxxxx/.cargo/bin/rls
DEBUG: runInRlsMode: env={"RUST_SRC_PATH":"/Users/xxxxx/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src"}
DEBUG: runInRlsMode: args=[]
DEBUG: runInRlsMode: revealOutputChannelOn=3
DEBUG: Language Client Manager: start
DEBUG: Language Client Manager: stop
DEBUG: Language Client Manager: start

Output of "Rust language server":


{"message":"no method named `reopen_parser` found for type `xml::EventReader<:buffer>` in the current scope","code":null,"level":"error","spans":[{"file_name":"proto/src/parser/mod.rs","byte_start":79675,"byte_end":79688,"line_start":86,"line_end":86,"column_start":25,"column_end":38,"is_primary":true,"text":[{"text":"            self.parser.reopen_parser();","highlight_start":25,"highlight_end":38}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[],"rendered":null}
{"message":"aborting due to previous error(s)","code":null,"level":"error","spans":[],"children":[],"rendered":null}
thread '<unnamed>' panicked at 'could not run cargo: ChainedError { error: Could not compile `xmpp-proto`., cause: process didn't exit successfully: `rustc --crate-name xmpp_proto proto/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature="default" -C metadata=d50d2423aa41d8b0 -C extra-filename=-d50d2423aa41d8b0 --out-dir /Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps -L dependency=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps --extern tokio_io=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_io-a3b8096439f28468.rmeta --extern circular=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libcircular-f07dd96316d89d28.rmeta --extern xml=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxml-59e1d35a38e04a70.rmeta --extern uuid=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libuuid-459abdd8becac996.rmeta --extern tokio_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_tls-2535c7afed68b2e2.rmeta --extern elementtree=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libelementtree-035d138ca286beb5.rmeta --extern sasl=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libsasl-76f2d724076701de.rmeta --extern xmpp_derive=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxmpp_derive-b932158f05cf1ad7.dylib --extern tokio_core=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_core-2b1e6b60dde514e2.rmeta --extern log=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/liblog-b53182f989f73476.rmeta --extern base64=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbase64-aa253e715fc50073.rmeta --extern futures=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libfutures-0ec7d1ad734ba165.rmeta --extern bytes=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbytes-c86de247ee76b674.rmeta --extern native_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libnative_tls-a14c9d4c17c2b506.rmeta -Zunstable-options -Zcontinue-parse-after-error -Zsave-analysis --error-format=json -L native=/usr/local/opt/openssl/lib` (exit code: 101) }', src/libcore/result.rs:859
note: Run with `RUST_BACKTRACE=1` for a backtrace.
{"message":"no method named `reopen_parser` found for type `xml::EventReader<:buffer>` in the current scope","code":null,"level":"error","spans":[{"file_name":"proto/src/parser/mod.rs","byte_start":79675,"byte_end":79688,"line_start":86,"line_end":86,"column_start":25,"column_end":38,"is_primary":true,"text":[{"text":"            self.parser.reopen_parser();","highlight_start":25,"highlight_end":38}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[],"rendered":null}
{"message":"aborting due to previous error(s)","code":null,"level":"error","spans":[],"children":[],"rendered":null}
thread '<unnamed>' panicked at 'could not run cargo: ChainedError { error: Could not compile `xmpp-proto`., cause: process didn't exit successfully: `rustc --crate-name xmpp_proto proto/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature="default" -C metadata=d50d2423aa41d8b0 -C extra-filename=-d50d2423aa41d8b0 --out-dir /Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps -L dependency=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps --extern bytes=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbytes-c86de247ee76b674.rmeta --extern elementtree=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libelementtree-035d138ca286beb5.rmeta --extern xml=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxml-59e1d35a38e04a70.rmeta --extern xmpp_derive=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxmpp_derive-b932158f05cf1ad7.dylib --extern tokio_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_tls-2535c7afed68b2e2.rmeta --extern base64=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbase64-aa253e715fc50073.rmeta --extern tokio_io=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_io-a3b8096439f28468.rmeta --extern uuid=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libuuid-459abdd8becac996.rmeta --extern circular=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libcircular-f07dd96316d89d28.rmeta --extern futures=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libfutures-0ec7d1ad734ba165.rmeta --extern log=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/liblog-b53182f989f73476.rmeta --extern native_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libnative_tls-a14c9d4c17c2b506.rmeta --extern sasl=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libsasl-76f2d724076701de.rmeta --extern tokio_core=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_core-2b1e6b60dde514e2.rmeta -Zsave-analysis -Zunstable-options --error-format=json -Zcontinue-parse-after-error -L native=/usr/local/opt/openssl/lib` (exit code: 101) }', src/libcore/result.rs:859
{"message":"no method named `reopen_parser` found for type `xml::EventReader<:buffer>` in the current scope","code":null,"level":"error","spans":[{"file_name":"proto/src/parser/mod.rs","byte_start":79675,"byte_end":79688,"line_start":86,"line_end":86,"column_start":25,"column_end":38,"is_primary":true,"text":[{"text":"            self.parser.reopen_parser();","highlight_start":25,"highlight_end":38}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[],"rendered":null}
{"message":"aborting due to previous error(s)","code":null,"level":"error","spans":[],"children":[],"rendered":null}
thread '<unnamed>' panicked at 'could not run cargo: ChainedError { error: Could not compile `xmpp-proto`., cause: process didn't exit successfully: `rustc --crate-name xmpp_proto proto/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature="default" -C metadata=d50d2423aa41d8b0 -C extra-filename=-d50d2423aa41d8b0 --out-dir /Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps -L dependency=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps --extern log=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/liblog-b53182f989f73476.rmeta --extern tokio_io=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_io-a3b8096439f28468.rmeta --extern tokio_core=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_core-2b1e6b60dde514e2.rmeta --extern tokio_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_tls-2535c7afed68b2e2.rmeta --extern bytes=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbytes-c86de247ee76b674.rmeta --extern base64=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbase64-aa253e715fc50073.rmeta --extern futures=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libfutures-0ec7d1ad734ba165.rmeta --extern sasl=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libsasl-76f2d724076701de.rmeta --extern elementtree=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libelementtree-035d138ca286beb5.rmeta --extern xmpp_derive=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxmpp_derive-b932158f05cf1ad7.dylib --extern native_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libnative_tls-a14c9d4c17c2b506.rmeta --extern circular=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libcircular-f07dd96316d89d28.rmeta --extern xml=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxml-59e1d35a38e04a70.rmeta --extern uuid=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libuuid-459abdd8becac996.rmeta -Zcontinue-parse-after-error -Zunstable-options --error-format=json -Zsave-analysis -L native=/usr/local/opt/openssl/lib` (exit code: 101) }', src/libcore/result.rs:859
{"message":"no method named `reopen_parser` found for type `xml::EventReader<:buffer>` in the current scope","code":null,"level":"error","spans":[{"file_name":"proto/src/parser/mod.rs","byte_start":79675,"byte_end":79688,"line_start":86,"line_end":86,"column_start":25,"column_end":38,"is_primary":true,"text":[{"text":"            self.parser.reopen_parser();","highlight_start":25,"highlight_end":38}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[],"rendered":null}
{"message":"aborting due to previous error(s)","code":null,"level":"error","spans":[],"children":[],"rendered":null}
thread '<unnamed>' panicked at 'could not run cargo: ChainedError { error: Could not compile `xmpp-proto`., cause: process didn't exit successfully: `rustc --crate-name xmpp_proto proto/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature="default" -C metadata=d50d2423aa41d8b0 -C extra-filename=-d50d2423aa41d8b0 --out-dir /Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps -L dependency=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps --extern tokio_io=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_io-a3b8096439f28468.rmeta --extern native_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libnative_tls-a14c9d4c17c2b506.rmeta --extern base64=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbase64-aa253e715fc50073.rmeta --extern xmpp_derive=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxmpp_derive-b932158f05cf1ad7.dylib --extern xml=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxml-59e1d35a38e04a70.rmeta --extern tokio_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_tls-2535c7afed68b2e2.rmeta --extern bytes=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbytes-c86de247ee76b674.rmeta --extern uuid=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libuuid-459abdd8becac996.rmeta --extern sasl=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libsasl-76f2d724076701de.rmeta --extern log=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/liblog-b53182f989f73476.rmeta --extern circular=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libcircular-f07dd96316d89d28.rmeta --extern elementtree=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libelementtree-035d138ca286beb5.rmeta --extern tokio_core=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_core-2b1e6b60dde514e2.rmeta --extern futures=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libfutures-0ec7d1ad734ba165.rmeta -Zunstable-options -Zsave-analysis -Zcontinue-parse-after-error --error-format=json -L native=/usr/local/opt/openssl/lib` (exit code: 101) }', src/libcore/result.rs:859
[Error - 11:20:54 AM] Request textDocument/definition failed.
  Message: GotoDef failed to complete successfully
  Code: -32601 
[Error - 11:20:55 AM] Request textDocument/definition failed.
  Message: GotoDef failed to complete successfully
  Code: -32601 
[Error - 11:20:57 AM] Request textDocument/definition failed.
  Message: GotoDef failed to complete successfully
  Code: -32601 
{"message":"no method named `reopen_parser` found for type `xml::EventReader<:buffer>` in the current scope","code":null,"level":"error","spans":[{"file_name":"proto/src/parser/mod.rs","byte_start":79675,"byte_end":79688,"line_start":86,"line_end":86,"column_start":25,"column_end":38,"is_primary":true,"text":[{"text":"            self.parser.reopen_parser();","highlight_start":25,"highlight_end":38}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[],"rendered":null}
{"message":"aborting due to previous error(s)","code":null,"level":"error","spans":[],"children":[],"rendered":null}
thread '<unnamed>' panicked at 'could not run cargo: ChainedError { error: Could not compile `xmpp-proto`., cause: process didn't exit successfully: `rustc --crate-name xmpp_proto proto/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature="default" -C metadata=d50d2423aa41d8b0 -C extra-filename=-d50d2423aa41d8b0 --out-dir /Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps -L dependency=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps --extern tokio_core=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_core-2b1e6b60dde514e2.rmeta --extern circular=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libcircular-f07dd96316d89d28.rmeta --extern log=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/liblog-b53182f989f73476.rmeta --extern sasl=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libsasl-76f2d724076701de.rmeta --extern base64=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbase64-aa253e715fc50073.rmeta --extern tokio_io=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_io-a3b8096439f28468.rmeta --extern xml=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxml-59e1d35a38e04a70.rmeta --extern xmpp_derive=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxmpp_derive-b932158f05cf1ad7.dylib --extern tokio_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_tls-2535c7afed68b2e2.rmeta --extern bytes=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbytes-c86de247ee76b674.rmeta --extern elementtree=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libelementtree-035d138ca286beb5.rmeta --extern futures=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libfutures-0ec7d1ad734ba165.rmeta --extern native_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libnative_tls-a14c9d4c17c2b506.rmeta --extern uuid=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libuuid-459abdd8becac996.rmeta -Zsave-analysis --error-format=json -Zunstable-options -Zcontinue-parse-after-error -L native=/usr/local/opt/openssl/lib` (exit code: 101) }', src/libcore/result.rs:859
{"message":"no method named `reopen_parser` found for type `xml::EventReader<:buffer>` in the current scope","code":null,"level":"error","spans":[{"file_name":"proto/src/parser/mod.rs","byte_start":79675,"byte_end":79688,"line_start":86,"line_end":86,"column_start":25,"column_end":38,"is_primary":true,"text":[{"text":"            self.parser.reopen_parser();","highlight_start":25,"highlight_end":38}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[],"rendered":null}
{"message":"aborting due to previous error(s)","code":null,"level":"error","spans":[],"children":[],"rendered":null}
thread '<unnamed>' panicked at 'could not run cargo: ChainedError { error: Could not compile `xmpp-proto`., cause: process didn't exit successfully: `rustc --crate-name xmpp_proto proto/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature="default" -C metadata=d50d2423aa41d8b0 -C extra-filename=-d50d2423aa41d8b0 --out-dir /Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps -L dependency=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps --extern uuid=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libuuid-459abdd8becac996.rmeta --extern circular=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libcircular-f07dd96316d89d28.rmeta --extern base64=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbase64-aa253e715fc50073.rmeta --extern sasl=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libsasl-76f2d724076701de.rmeta --extern bytes=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbytes-c86de247ee76b674.rmeta --extern native_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libnative_tls-a14c9d4c17c2b506.rmeta --extern elementtree=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libelementtree-035d138ca286beb5.rmeta --extern xmpp_derive=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxmpp_derive-b932158f05cf1ad7.dylib --extern log=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/liblog-b53182f989f73476.rmeta --extern futures=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libfutures-0ec7d1ad734ba165.rmeta --extern xml=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxml-59e1d35a38e04a70.rmeta --extern tokio_io=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_io-a3b8096439f28468.rmeta --extern tokio_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_tls-2535c7afed68b2e2.rmeta --extern tokio_core=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_core-2b1e6b60dde514e2.rmeta -Zcontinue-parse-after-error -Zunstable-options --error-format=json -Zsave-analysis -L native=/usr/local/opt/openssl/lib` (exit code: 101) }', src/libcore/result.rs:859
{"message":"no method named `reopen_parser` found for type `xml::EventReader<:buffer>` in the current scope","code":null,"level":"error","spans":[{"file_name":"proto/src/parser/mod.rs","byte_start":79675,"byte_end":79688,"line_start":86,"line_end":86,"column_start":25,"column_end":38,"is_primary":true,"text":[{"text":"            self.parser.reopen_parser();","highlight_start":25,"highlight_end":38}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[],"rendered":null}
{"message":"aborting due to previous error(s)","code":null,"level":"error","spans":[],"children":[],"rendered":null}
thread '<unnamed>' panicked at 'could not run cargo: ChainedError { error: Could not compile `xmpp-proto`., cause: process didn't exit successfully: `rustc --crate-name xmpp_proto proto/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg feature="default" -C metadata=d50d2423aa41d8b0 -C extra-filename=-d50d2423aa41d8b0 --out-dir /Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps -L dependency=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps --extern native_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libnative_tls-a14c9d4c17c2b506.rmeta --extern xmpp_derive=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxmpp_derive-b932158f05cf1ad7.dylib --extern uuid=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libuuid-459abdd8becac996.rmeta --extern tokio_tls=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_tls-2535c7afed68b2e2.rmeta --extern futures=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libfutures-0ec7d1ad734ba165.rmeta --extern log=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/liblog-b53182f989f73476.rmeta --extern circular=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libcircular-f07dd96316d89d28.rmeta --extern tokio_core=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_core-2b1e6b60dde514e2.rmeta --extern base64=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbase64-aa253e715fc50073.rmeta --extern tokio_io=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libtokio_io-a3b8096439f28468.rmeta --extern bytes=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libbytes-c86de247ee76b674.rmeta --extern sasl=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libsasl-76f2d724076701de.rmeta --extern elementtree=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libelementtree-035d138ca286beb5.rmeta --extern xml=/Users/xxxxx/Documents/rust/xmpp-rs/target/rls/debug/deps/libxml-59e1d35a38e04a70.rmeta -Zunstable-options -Zsave-analysis --error-format=json -Zcontinue-parse-after-error -L native=/usr/local/opt/openssl/lib` (exit code: 101) }', src/libcore/result.rs:859
</unnamed></:buffer></unnamed></:buffer></unnamed></:buffer></unnamed></:buffer></unnamed></:buffer></unnamed></:buffer></unnamed></:buffer>

该提问来源于开源项目:editor-rs/vscode-rust

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39969060 weixin_39969060 4月前

    Try reopen the project and try to get the completion.

    点赞 评论 复制链接分享
  • weixin_39761491 weixin_39761491 4月前

    Thanks for the reply! Reopening results in the same behavior. According to https://github.com/rust-lang-nursery/rls/issues/328 filling in method signatures isn't supported and being tracked in https://github.com/rust-lang-nursery/rls/issues/97.

    What does the auto-filling of method signatures look like on your machine?

    点赞 评论 复制链接分享
  • weixin_39969060 weixin_39969060 4月前

    , I don't use my extension) I have no much time now)

    点赞 评论 复制链接分享
  • weixin_39969060 weixin_39969060 4月前

    , I'm closing the issue because that's not an issue of the extension.

    点赞 评论 复制链接分享

相关推荐