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.

racer crash when there is an empty space in path on windows #218

Closed
@BusyJay

Description

@BusyJay

Version of VSCode: 1.11.2
Version of the extension: 0.3.14
OS: Windows 10

Description:

When there is a space in path, racer crashes.

Output of the "Rust logging" channel:

WARNING: Legacy Mode Manager: CompletionManager: restart
DEBUG: Legacy Mode Manager: CompletionManager: stop
DEBUG: Legacy Mode Manager: CompletionManager: start: enter
DEBUG: Legacy Mode Manager: CompletionManager: start: racerPath=C:\Users\user name\.cargo\bin\racer.EXE
DEBUG: Legacy Mode Manager: CompletionManager: start: ENV[RUST_SRC_PATH] = C:\Users\user name\.rustup\toolchains\nightly-2016-12-19-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src

Related issue: nodejs/node#7367
There is no workaround currently, because path always gets stripped by FileSystem.findExecutablePath.

Activity

KalitaAlexey

KalitaAlexey commented on Apr 29, 2017

@KalitaAlexey
Member
BusyJay

BusyJay commented on Apr 29, 2017

@BusyJay
Author

Sorry not making my point clear. What I mean is that we can't quote the path in configuration to make it recognized when spawning the racer process. I did get it working by specified a new path without any space in it.

KalitaAlexey

KalitaAlexey commented on Apr 29, 2017

@KalitaAlexey
Member

I got your point.
I showed you a workaround.

TheRealHnefi

TheRealHnefi commented on May 10, 2017

@TheRealHnefi

This issue happens with a fresh install of vscode-rust while letting it install all related tools through VSCode, if the user path on Windows has a space in it.

I've tried to manually set rust.rustLangSrcPath and rust.racerPath to symlinks without spaces, but it seems they have no effect. What configuration am I supposed to change so that I can change what paths are used when invoking racer?

KalitaAlexey

KalitaAlexey commented on May 10, 2017

@KalitaAlexey
Member

@TheRealHnefi,
You changed the correct parameters.
It should work.

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

      Participants

      @BusyJay@KalitaAlexey@TheRealHnefi

      Issue actions

        racer crash when there is an empty space in path on windows · Issue #218 · editor-rs/vscode-rust