Comments (5)
Thanks for the quick fix!
from taplo.
Apologies for the title edits, I make a lot of typos and always correct them out of habit. I've looked into this further and it appears that the actual problem is loading a TOML file with invalid syntax. Simply opening a TOML file after inserting invalid syntax causes the same freeze. I was renaming the file extensions before I converted between formats, which could have triggered this.
from taplo.
It doesn't appear like all invalid syntax triggers this, so I'll provide a sample of syntax that does.
[group]
cooldowns = [
{
aggressive = true,
duration = 20_000
}
]
from taplo.
Thanks for the detailed issue!
It seems the parser gets into a loop if there's a new line after {
expecting a new entry while not skipping the invalid syntax, and processing the same thing again and again.
from taplo.
I've pushed a fix, and a new version of the extension should be out soon. Invalid inline tables are still not handled as well as I'd like, but at least they shouldn't cause the parser to hang anymore.
from taplo.
Related Issues (20)
- Schemas seem to get cached forever HOT 1
- VSCode plugin: Auto-indentation for table entries breaks in some cases HOT 1
- RuntimeError: unreachable HOT 3
- feature request: support loading additional configurations for LSP HOT 3
- Can not install with cargo HOT 2
- VS Code extension validates against an outdated version of a local schema HOT 1
- Even Better TOML default configuration HOT 4
- Inconsistent alphabetical ordering of table entries HOT 1
- Even Better TOML automatically picks up a wrong schema for Cargo.toml, even if the status bar suggests "no schema selected" HOT 1
- VSCode item duplication HOT 2
- Duplicate errors reported HOT 1
- Syntax Highlighter gives wrong color coding when escaping double quotes ("") with equals (=) in between HOT 1
- Missing "unstable_features" property in makefile.toml.json schema HOT 2
- Passing `--locked` to `cargo install` causes error[E0635]: unknown feature `proc_macro_span_shrink` HOT 1
- pdm scripts give errors with the help option in pyproject.toml HOT 1
- Error that is not "expected identifier" HOT 2
- What is cache used for when you run format. HOT 1
- Taplo CLI doesn't validate schemas if using schema catalog and cache and cache is existed HOT 4
- LSP crash when typing in TOML in middle of comment: "panicked at 'called `Option::unwrap()` on a `None` value'" HOT 1
- Configuration files are not reloaded on save in vscode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taplo.