Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Dot notation triggers error, while it's syntactically correct #163

Open
michalfita opened this issue Apr 19, 2022 · 4 comments
Open

Dot notation triggers error, while it's syntactically correct #163

michalfita opened this issue Apr 19, 2022 · 4 comments

Comments

@michalfita
Copy link

Describe the bug
The following line in Cargo.toml triggers three exclamation marks and underscore error next to dot causing the file to be red:

[dependencies]
my-local-crate.path = "../../my-local-crate"

To Reproduce
Open file with above.

Expected behavior
Don't underscore error and don't make the file red.

Screenshots
[None]

Desktop (please complete the following information):

  • OS: any
  • Version: v0.5.10

Additional context
Add any other context about the problem here.

@jedel1043
Copy link

Just want to report that, with the new workspace inherited dependencies, this syntax will have a lot more usage, so it would be good to prioritize this.

@foodstuff
Copy link

foodstuff commented Nov 25, 2022

Just another dev who got caught out by this! The official workspaces documentation uses the dot syntax which caused me to encounter this very bug.

foo = { workspace = true } works, in case anyone wanted to know the work around.

(I was going to work on a pull request to fix this but I couldn't get the tests to work.)

Edit: apparently this is resolved by #170 but the change hasn't been submitted to the marketplace?

@suchapalaver
Copy link

I can confirm that the above workaround works, but otherwise using the regular syntax for the cargo dependencies table causes this issue.

@michalfita
Copy link
Author

#170 seem to handle workspace only, but not the rest on the valid notation.

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

4 participants