-
Notifications
You must be signed in to change notification settings - Fork 164
RLS builds the 'debug' target instead of 'rls' #311
Comments
debug
target instead of rls
Which RLS version are you using? |
Rust VS code version: Updated the issue body as well with this information. |
@patriksvensson that'd be on me - I introduced this bug and fixed it on Mar 29th (rust-lang/rls#793), so this should be fixed in newer versions =) There is a single RLS version associated with a stable Rust release, so one workaround might be to set default "rust.target" to "rls" for now in the extension. @nrc what do you think? |
@patriksvensson wait, setting |
@Xanewok Correct, setting |
That's... unexpected! I'll look into that, thanks for reporting it. |
@Xanewok Hold on. I just verified and it creates the |
@Xanewok Setting I deleted the target directory between changes and restarted VS code to make sure that nothing else was interfering with the results. |
Same problem here (same versions: rls-vscode 0.4.2, Rust 1.26 stable, As a workaround, it worked for me to set |
Just so I understand, the correct behavior is to have my_project/rls/debug and my_project/target/debug ? |
@AlexEne it definitely would have, it was mistake on my part. Merged fix in #316. I'll close the issue, since this should be definitely resolved now.
|
Setting target_dir is working as a workaround in one project, but not in another. It is working a project with a cargo workspace, though I'm not sure if that's the root cause of the difference. Edit: It's not working in a brand new workspace project, though, so that's not the difference... I'll continue to investigate. Any tips on printing the version running inside VSCode, etc? A quick glance has not turned up any documentation. Edit 2: well, running Edit 3: the issue definitely appears to be with rls itself; I've reopened my issue on the rls repository. |
…3.8, r=alexheretic Bump crossbeam-channel from 0.3.6 to 0.3.8 Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.3.6 to 0.3.8. <details> <summary>Commits</summary> - [`3953368`](crossbeam-rs/crossbeam@3953368) Update crossbeam-utils - [`2ca382b`](crossbeam-rs/crossbeam@2ca382b) Prepare minor release with updated crossbeam-utils - [`ab6081a`](crossbeam-rs/crossbeam@ab6081a) Update changelog - [`b5ca594`](crossbeam-rs/crossbeam@b5ca594) Bump minor version - [`de97b7a`](crossbeam-rs/crossbeam@de97b7a) Rename is_complete to is_completed - [`9bee238`](crossbeam-rs/crossbeam@9bee238) Update minimal required version for crossbeam-utils - [`be937e2`](crossbeam-rs/crossbeam@be937e2) channel: remove crossbeam dev-dependency - [`f826790`](crossbeam-rs/crossbeam@f826790) Bump crossbeam-utils to 0.6.4 rather than 0.7.0 - [`0c9a7b2`](crossbeam-rs/crossbeam@0c9a7b2) Merge [rust-lang#311](https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/311) - [`bd6603f`](crossbeam-rs/crossbeam@bd6603f) Make mentions of SegQueue in docs consistent - Additional commits viewable in [compare view](crossbeam-rs/crossbeam@crossbeam-channel-0.3.6...crossbeam-channel-0.3.8) </details> <br /> [](https://dependabot.com/compatibility-score.html?dependency-name=crossbeam-channel&package-manager=cargo&previous-version=0.3.6&new-version=0.3.8) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in the `.dependabot/config.yml` file in this repo: - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot. </details>
I noticed that the Rust VS Code plugin suddenly was building using the
debug
target which gave a lot of conflicts when switching between VS Code and the command line and also led to a lot of non-incremental rebuilds for some reason.By setting the
rust.target
configuration torls
I got it working again (see picture).Not sure if I messed something up or if this is a regression in the plugin, so feel free to close this issue if you suspect the former.
Rust VS code version:
0.4.2
RLS version:
rls-preview 0.126.0-stable (f5a0c91 2018-03-26)
The text was updated successfully, but these errors were encountered: