Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Can't start RLS – detected channel name includes default #522

Closed
@danlucraft

Description

@danlucraft

It appears that rls-vscode is detecting a channel name like "stable-x86_64-apple-darwin (default)":

[Extension Host] Detected active channel: stable-x86_64-apple-darwin (default) (since 'rust-client.channel' is unspecified)

This is causing the rustup command to fail as the "(default)" part is not actually part of the toolchain name:

Error: Command failed: rustup component list --toolchain stable-x86_64-apple-darwin (default)
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `rustup component list --toolchain stable-x86_64-apple-darwin (default)'

Stripping the "(default)" and setting rust-client.channel to "stable-x86_64-apple-darwin" fixes the issue.

So it seems like the code that detects the channel name needs to be able to recognise and strip "(default)" from wherever it is finding that. I'll take a look and see if I can see where that happens, but I'm not experienced with VSCode extensions, or rustup.

vscode  1.32.1
rustc   1.33.0 (2aa4c46cf 2019-02-28)
rustup  1.17.0 (069c88ed6 2019-03-05)

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