Skip to content
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

插件格式化带有注释的 TOML 文件时遇到断言失败 #734

Open
game1991 opened this issue Jan 21, 2025 · 0 comments
Open

插件格式化带有注释的 TOML 文件时遇到断言失败 #734

game1991 opened this issue Jan 21, 2025 · 0 comments

Comments

@game1991
Copy link

game1991 commented Jan 21, 2025

描述问题
在使用 even better toml 插件格式化带有注释的 TOML 文件时遇到断言失败。

重现步骤

  1. 创建一个 TOML 文件,内容如下:
   key = "value" # This is a comment

尝试使用 even better toml 插件进行格式化。
【预期行为】
插件能够正确格式化带有注释的 TOML 文件。

【实际行为】
插件报错:

panicked at /Users/JounQin/Workspaces/GitHub/taplo/crates/taplo/src/formatter/mod.rs:684:25:
assertion failed: entry.comment.is_none()

Stack:
...

环境信息

VSCode 版本:
版本: 1.96.4 (system setup)
提交: cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba
日期: 2025-01-16T00:16:19.038Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631
even better toml 插件版本:
标识符
tamasfe.even-better-toml
版本
0.21.2
上次更新时间
2024-12-25, 17:41:15
操作系统:
版本 Windows 11 专业版
版本号 23H2
安装日期 ‎2024/‎4/‎11
操作系统版本 22631.4602

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

No branches or pull requests

1 participant