You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Respect the line length limit setting for the surrounding Python code.",
"allOf": [
It is nothing ruff is doing wrong, and in fact there is a PR on the taplo side that does fix this exact issue (I confirmed by installing the PR rebased on master and trying again). But it is quite old and we probably need to remind them about it. tamasfe/taplo#644
Feel free to close since there is probably nothing actionable on y'alls part, but I didn't see any issues about this and figured you might want to know.
(Side note that taplo / even better toml is in an interesting spot, as it needs a new active maintainer, but is extremely useful for TOML autocompletion and I'd hate to see that extension die)
The text was updated successfully, but these errors were encountered:
Thanks for the report. We weren't aware that even better TOML crashes on the schema and I can confirm that it is due to the use of allOf. Removing the Schema visitor that moves all $ref into an allOf when generating the schema fixes the crash
let gen = schemars::gen::SchemaGenerator::new(
schemars::gen::SchemaSettings::draft07().with(|config| config.visitors.clear()),
);
However, this now leads to an invalid schema because all other properties on an object are ignored if it has a $ref property. But we could consider using oneOf instead of allOf
Hmm, or not. I'm confused. I can still reproduce that even better toml crashes whenever I add a new [ (individual settings is fine) but even removing the allOf won't help.
Description
Not sure if you all know this yet, but Even Better TOML in VS Code crashes for me on any
ruff.toml
, it looks like this:Untitled.mov
I manually bisect-ed my way through your schema file and figured out it has to do with usage of
allOf
in these two spots:ruff/ruff.schema.json
Lines 882 to 890 in c816542
It is nothing ruff is doing wrong, and in fact there is a PR on the taplo side that does fix this exact issue (I confirmed by installing the PR rebased on master and trying again). But it is quite old and we probably need to remind them about it. tamasfe/taplo#644
Feel free to close since there is probably nothing actionable on y'alls part, but I didn't see any issues about this and figured you might want to know.
(Side note that taplo / even better toml is in an interesting spot, as it needs a new active maintainer, but is extremely useful for TOML autocompletion and I'd hate to see that extension die)
The text was updated successfully, but these errors were encountered: