-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This Cargo.toml code is crashing the Even Better Toml extension. #755
Comments
+1 Have never had this issue for the past 2 years. Even reverting to old versions of the extension doesn't fix this. According to Cargo Book: Profiles the format below is correct, yet it yields the following error: [profile.release]
lto = true
strip = true
opt-level = 3
panic = "abort"
codegen-units = 1
|
@arpadav @genusistimelord this is not the same issue, issue mentioned by OP is crashing due to comment. Your issue is most likely due to recent changes that were made to Cargo schema. |
@panekj According to https://doc.rust-lang.org/cargo/reference/profiles.html this schema has not changed. I am still using Rust 2021 edition with 0 changes to my project. Even for Rust 2024 edition this seems to be the same. Or am I missing something? If so I would like to update to the most recent schema, I just can't find anything on this |
@panekj Or I think I understand what you mean. Cargo.toml schema has not changed, but there are changes within |
oh sorry, I did not fully look at the first one and saw the second post made. thank you for the fix. |
So Is there any work around for the unexpected errors for |
At the top of the file add
|
For me, |
@panekj thanks for the excellent work. Can you add semantic highlights for "support.type.property-name.toml" and "support.type.property-name.table.toml" (like there is one for tomlArrayKey)? Were you able to solve the comment glitch originally posted? Your work is helping us tremendously dealing with toml files, especially the ability to be able to sort the keys, I wish we could also sort the "support.type.property-name.table.toml" (keys inside [], example [workspace], [workspace.dev] etc.). |
Reverted changes that caused 🙏 |
Please follow #741 for updates (as current issue has been slightly hijacked) |
Crashes at line which begins with
codegen-units
.The text was updated successfully, but these errors were encountered: