Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

"Cannot format due to syntax errors" on Windows 10 #389

Open
Vargnatt opened this issue Jan 6, 2019 · 1 comment
Open

"Cannot format due to syntax errors" on Windows 10 #389

Vargnatt opened this issue Jan 6, 2019 · 1 comment

Comments

@Vargnatt
Copy link

Vargnatt commented Jan 6, 2019

Version of VSCode: Latest
Version of the extension: Latest. Run in legacy mode.
OS: Windows 10 1804

Description:
I cannot autoformat code using Alt+Shift+F, though using cargo fmt or rustfmt through command line is fine.

Output of the "Log[Extension Host]" channel:

[2019-01-06 22:17:49.888] [exthost] [error] [kalitaalexey.vscode-rust] provider FAILED
[2019-01-06 22:17:49.888] [exthost] [error] undefined

Output of the "Rust logging" channel:

DEBUG: Legacy Mode Manager: MissingToolsInstallator: getMissingTools(): tools={"racer":"C:\\Users\\MyUser\\.cargo\\bin\\racer.exe","rustfmt":"C:\\Users\\MyUser\\.cargo\\bin\\rustfmt.exe","rustsym":"rustfmt"}
DEBUG: Legacy Mode Manager: MissingToolsInstallator: getMissingTools(): racer's path=C:\Users\MyUser\.cargo\bin\racer.exe
DEBUG: Legacy Mode Manager: MissingToolsInstallator: getMissingTools(): rustfmt's path=C:\Users\MyUser\.cargo\bin\rustfmt.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\MyUser\.cargo\bin\racer.exe"
DEBUG: Legacy Mode Manager: CompletionManager: start: ENV[RUST_SRC_PATH] = C:\Users\MyUser\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src

@felipecsl
Copy link

Same issue on MacOS, vscode 1.30.1, extension version 0.4.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants