Skip to content

Instantly share code, notes, and snippets.

@Bert-Proesmans
Created August 26, 2017 21:35
Show Gist options
  • Save Bert-Proesmans/7471004b5d007913841b9d5cfb206a50 to your computer and use it in GitHub Desktop.
Save Bert-Proesmans/7471004b5d007913841b9d5cfb206a50 to your computer and use it in GitHub Desktop.
RLS issue output files
{"message":"unused `#[macro_use]` import","code":null,"level":"warning","spans":[{"file_name":"src\\main.rs","byte_start":0,"byte_end":12,"line_start":1,"line_end":1,"column_start":1,"column_end":13,"is_primary":true,"text":[{"text":"#[macro_use]","highlight_start":1,"highlight_end":13}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[{"message":"#[warn(unused_imports)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":null}
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'Statement has a beginning', src\libcore\option.rs:819:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
error: expected expression, found `<eof>`
error: expected expression, found `<eof>`
error: expected expression, found `.`
--> bogofile:1:1
|
1 | .iter()
| ^
error: expected expression, found `.`
--> bogofile:1:1
|
1 | .iter()
| ^
error: expected expression, found `.`
--> bogofile:1:1
|
1 | .iter()
| ^
error: expected expression, found `.`
--> bogofile:1:1
|
1 | .iter()
| ^
error: expected expression, found `.`
--> bogofile:1:1
|
1 | .iter()
| ^
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
thread 'main' panicked at 'RUST_SRC_PATH is set: NotPresent', src\libcore\result.rs:906:4
DEBUG: Rustup: updateToolchains: this.toolchains=[{"channel":"stable","host":"x86_64-pc-windows-msvc","isDefault":true},{"channel":"nightly","host":"x86_64-pc-windows-msvc","isDefault":false}]
DEBUG: activate: processPossibleSetButMissingUserToolchain: toolchainKind=toolchain
DEBUG: activate: processPossibleSetButMissingUserToolchain: user toolchain is installed
DEBUG: Rustup: updateComponents(stable-x86_64-pc-windows-msvc): components=["cargo-x86_64-pc-windows-msvc (default)","rust-analysis-x86_64-pc-windows-msvc","rust-docs-x86_64-pc-windows-msvc (default)","rust-src","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","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 (default)","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-pc-windows-msvc (default)",""]
DEBUG: RlsMode: start: enter
DEBUG: RlsMode: start: no RLS executable
DEBUG: RlsMode: start: processPossibleSetButMissingUserToolchain: toolchainKind=nightly toolchain
DEBUG: RlsMode: start: processPossibleSetButMissingUserToolchain: user nightly toolchain is installed
DEBUG: Rustup: updateComponents(nightly-x86_64-pc-windows-msvc): components=["cargo-x86_64-pc-windows-msvc (default)","rls-x86_64-pc-windows-msvc (installed)","rust-analysis-x86_64-pc-windows-msvc (installed)","rust-docs-x86_64-pc-windows-msvc (default)","rust-src","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","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 (default)","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","rust-std-x86_64-unknown-redox","rustc-x86_64-pc-windows-msvc (default)",""]
DEBUG: RlsMode: processPossiblyMissingRlsComponents: RLS is installed
DEBUG: RlsMode: processPossiblyMissingRlsComponents: rust-analysis is installed
DEBUG: RlsMode: start: User decided to use rustfmt
DEBUG: RlsMode: start: rlsPath=rustup
DEBUG: RlsMode: start: env={}
DEBUG: RlsMode: start: args=["run","nightly-x86_64-pc-windows-msvc","rls"]
DEBUG: RlsMode: start: revealOutputChannelOn=3
DEBUG: RlsMode: start: Language Client Manager: start
{
"window.zoomLevel": 0,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 20000,
"go.formatOnSave": false,
"go.inferGopath": true,
"go.formatTool": "goimports",
"explorer.autoReveal": false,
"git.enabled": false,
"rust.rustup": {
"toolchain": "stable-x86_64-pc-windows-msvc",
"nightlyToolchain": "nightly-x86_64-pc-windows-msvc"
},
"rust.mode": "rls",
"rust.rls": {
"useRustfmt": true
}
}
@Bert-Proesmans
Copy link
Author

Bert-Proesmans commented Aug 26, 2017

Reproduction steps, the actual behaviour was recorded after the sequence of the following steps:

=>clean install of Windows

  1. Installed Rust (stable-x86_64-pc-windows-msvc), with rustup
  2. Created new project with cargo
  3. Opened project folder with VS code
  4. Installed vscode extension kalitaalexey/Rust (the one suggested by the rust docs)
  5. Reloaded vscode
  6. Notification about which toolchain to use; selected stable (only option)
  7. Notification about what mode to use; selected RLS
  8. Notification appeared about Rust Nightly not being installed; selected to install it

*..Code editor suggestions don't work.. *

  1. Restarted vscode
  2. Notification about what toolchain to use (again); selected NIGHTLY (only option)
  3. Notification about what mode to use (again): selected RLS
  4. Notification about enabling RustFMT; selected enable
  5. Notification about RustFMT not being installed; selected install
  6. Edited guessing_game (programming guide example) main rust file

*..Code editor warns about using extern crate rand [used in guessing_game example project], which is supposedly an outdated component. The name shadows the language builtin rand (that's what i concluded from the situation).
Even though the rand crate was correctly included and the cargo build succeeded! .. *

  1. Restarted vscode again
  2. Started working through the Vulkano guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment