editor-rs / vscode-rust

Rust for Visual Studio Code
MIT License
474 stars 62 forks source link

ERROR: Path does not exists ... when creating a new playground. #377

Open AxDSan opened 6 years ago

AxDSan commented 6 years ago

Version of VSCode: Latest (1.20.1) Version of the extension: Latest (0.4.2) OS: Windows 10 x64

Description: Whenever I'm trying to create a new playground, in a directory, I receive a popup error saying Path does not exists, the path <path name here> does not seems to exist anymore on the disk.

Extra log from Cargo:

Working directory: C:\Users\0x90\AppData\Local\Temp\tmp-10672je8AoNPTfpby
Started rustup run stable-x86_64-pc-windows-msvc cargo init --name playground_application --bin

     Created binary (application) project

Completed with code 0

Output of the "Rust logging" channel:

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)","rls-preview-x86_64-pc-windows-msvc","rust-analysis-x86_64-pc-windows-msvc","rust-docs-x86_64-pc-windows-msvc (default)","rust-src (installed)","rust-std-aarch64-apple-ios","rust-std-aarch64-linux-android","rust-std-aarch64-unknown-cloudabi","rust-std-aarch64-unknown-fuchsia","rust-std-aarch64-unknown-linux-gnu","rust-std-aarch64-unknown-linux-musl","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-armv5te-unknown-linux-gnueabi","rust-std-armv7-apple-ios","rust-std-armv7-linux-androideabi","rust-std-armv7-unknown-cloudabi-eabihf","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-cloudabi","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-sparcv9-sun-solaris","rust-std-wasm32-unknown-emscripten","rust-std-wasm32-unknown-unknown","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-sun-solaris","rust-std-x86_64-unknown-cloudabi","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-gnux32","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)","rustfmt-preview-x86_64-pc-windows-msvc",""]
DEBUG: Configuration: updatePathToRacer: findRacerPathSpecifiedByUser: path=undefined
DEBUG: Configuration: updatePathToRacer: findDefaultRacerPath: foundPath=C:\Users\0x90\.cargo\bin\racer.EXE
DEBUG: Legacy Mode Manager: MissingToolsInstallator: getMissingTools(): pathDirectories=["C:\\mingw\\bin","C:\\Program Files\\Java\\jdk-9.0.1\\\\bin","C:\\ProgramData\\Oracle\\Java\\javapath","C:\\WINDOWS\\system32","C:\\WINDOWS","C:\\WINDOWS\\System32\\Wbem","C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\","C:\\Program Files (x86)\\Skype\\Phone\\","C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\","C:\\Program Files\\dotnet\\","D:\\DevStuff\\Development Stuff & Libraries\\premake","C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Auxiliary\\Build","D:\\DevStuff\\Coding Stuff\\Libraries\\phantomjs-2.1.1-windows\\bin","D:\\Python36-32\\","C:\\xampp\\php","C:\\ProgramData\\ComposerSetup\\bin","C:\\ProgramData\\chocolatey\\bin","D:\\MongoDB\\Server\\3.4\\bin","C:\\Program Files\\nodejs\\","C:\\Program Files\\Git\\cmd","C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\","C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\","C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\","C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\","C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\","C:\\Program Files\\Microsoft SQL Server\\140\\Tools\\Binn\\","C:\\Program Files\\Microsoft SQL Server\\140\\DTS\\Binn\\","C:\\Program Files (x86)\\GtkSharp\\2.12\\bin","D:\\DevStuff\\Brackets\\command","C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common","D:\\electronjs\\node_modules\\electron\\dist","D:\\Go\\bin","D:\\DevStuff\\nim-0.17.2\\bin","C:\\Users\\0x90\\.nimble\\bin","D:\\DevStuff\\mingw64\\bin","D:\\010 Editor","C:\\Users\\0x90\\.nimble\\bin","C:\\Users\\0x90\\.cargo\\bin","C:\\Program Files\\Java\\jdk-9.0.1\\bin","D:\\Python36-32\\Scripts\\","C:\\Users\\0x90\\AppData\\Local\\Microsoft\\WindowsApps","D:\\Microsoft VS Code\\bin","D:\\Fiddler","C:\\Program Files\\Heroku\\bin","C:\\Users\\0x90\\AppData\\Roaming\\Composer\\vendor\\bin","C:\\Users\\0x90\\AppData\\Local\\atom\\bin","C:\\Users\\0x90\\AppData\\Local\\.meteor","C:\\Users\\0x90\\AppData\\Local\\.meteor\\","C:\\Users\\0x90\\AppData\\Roaming\\npm","C:\\Users\\0x90\\AppData\\Local\\GitHubDesktop\\bin"]
DEBUG: Legacy Mode Manager: MissingToolsInstallator: getMissingTools(): tools={"racer":"C:\\Users\\0x90\\.cargo\\bin\\racer.EXE","rustfmt":"rustfmt","rustsym":"rustfmt"}
DEBUG: Legacy Mode Manager: MissingToolsInstallator: getMissingTools(): racer's path=C:\Users\0x90\.cargo\bin\racer.EXE
DEBUG: Legacy Mode Manager: MissingToolsInstallator: getMissingTools(): this.missingTools = []
DEBUG: Legacy Mode Manager: CompletionManager: ensureSourceCodeIsAvailable: sources is available
DEBUG: Legacy Mode Manager: CompletionManager: start: enter
DEBUG: Legacy Mode Manager: CompletionManager: start: racerPath="C:\Users\0x90\.cargo\bin\racer.EXE"
DEBUG: Legacy Mode Manager: CompletionManager: start: ENV[RUST_SRC_PATH] = C:\Users\0x90\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src
DEBUG: Cargo Manager: CargoTaskManager: OutputChannelTaskManager: Task: execute: this.executable = "rustup"
DEBUG: Cargo Manager: CargoTaskManager: OutputChannelTaskManager: Task: execute: this.args = ["run","stable-x86_64-pc-windows-msvc","cargo","init","--name","playground_application","--bin"]
DEBUG: Cargo Manager: CargoTaskManager: OutputChannelTaskManager: Task: execute: cargoEnv = null