Replies: 1 comment
-
|
I may have messed up my config and set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on configuring
rust-analyzerfor a project with a customized build system (Hubris). Many crates in the workspace are only valid in the context of a particular manifest and task. I've got a wrapper aroundrust-analyzerthat computes appropriate environment variables and features based on a user-selected(manifest, task)tuple.Here's where stuff is going off the rails: I'm computing a set of feature to enable for the task crate and all downstream crates. Each feature is in the form
crate-name/feature, e.g.These features are passed to
rust-analyzerin therust-analyzer.cargo.featuresarray. The initialrust-analyzerload and indexing pass works fine. However, subsequentFlycheckpasses fail (after saving a file).Here's an example of a failure from the logs:
The problem is that I've generated a list of features for all crates, but the
checkcall is targeting one crate (-p userlib), so many of the features are invalid.This surprises me, because I have not changed
rust-analyzer.check.workspacefrom the default oftrue, so I'd expect the check to use the workspace. The docs forrust-analyzer.check.workspaceread:Is this behaving as expected?
Beta Was this translation helpful? Give feedback.
All reactions