Skip to content
This repository was archived by the owner on Dec 8, 2020. It is now read-only.
This repository was 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

Description

@Vargnatt

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions