Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Cargo.toml errors underline whole file #1581

Open
est31 opened this issue Oct 28, 2019 · 0 comments
Open

Cargo.toml errors underline whole file #1581

est31 opened this issue Oct 28, 2019 · 0 comments

Comments

@est31
Copy link
Member

est31 commented Oct 28, 2019

If you make any error in your Cargo.toml, the whole file is underlined in red:

Screenshot_20191028_165522

The error is of the form:

failed to parse manifest at `toml-rs/Cargo.toml`
Feature `preserve_order` includes `indexmaap` which is neither a dependency nor another feature

So clearly, there could be a span for the error, pointing to indexmaap. If we underlined only that it would be much nicer. But this is only an example, my request is about the general feature.

Yes, this will need changes in Cargo. But I still rather file the issue here because this is the tool that suffers most from it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant