Skip to content

Let rust rls linter find the default rust toolchain automatically#2432

Merged
w0rp merged 2 commits into
dense-analysis:masterfrom
superobertking:master
Apr 11, 2019
Merged

Let rust rls linter find the default rust toolchain automatically#2432
w0rp merged 2 commits into
dense-analysis:masterfrom
superobertking:master

Conversation

@superobertking
Copy link
Copy Markdown
Contributor

This patch comes from this comment.

As rls and clippy are not always available for the latest nightly rust build, nightly rust users typically needs to specify another version of nightly rust in order to get rls working. The version string looks somewhat like nightly-2019-03-05 instead of just nightly. Therefore, the default value of g:ale_rust_rls_toolchain nightly usually just doesn't work and the documentation also did not point out the use of customizable toolchain names. In fact, rls actually allows users to omit the toolchain name so that it will automatically find the default toolchain set by rustup, and the linter actually supports this behavior but it was not reflected in the documentation. Therefore, setting the default value as '' is more suitable for most cases. In addition, stable rust users also won't need to change this variable by hand, and rls linter can work out-of-the-box.

I have read :help ale-dev. This patch does not seem to need additional tests.

@w0rp w0rp merged commit d739590 into dense-analysis:master Apr 11, 2019
@w0rp
Copy link
Copy Markdown
Member

w0rp commented Apr 11, 2019

Cheers! 🍻

weirane added a commit to weirane/dotfiles that referenced this pull request Apr 18, 2019
after dense-analysis/ale/pull/2432, the toolchain can be
detected automatically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants