-
Notifications
You must be signed in to change notification settings - Fork 2
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
[crash] Parsing error when processing a tsconfig file with comments #32
Comments
Hi there! I'm using a simple JSON decoder to parse the tsconfig.json, however as you used comments in yours (which is not supported by standard JSON files) it introduces a crash during parsing. I'll see if I can easily add support for JSON with comments, sorry for the issue! |
Update: after some research, the official Kotlinx.serialization I'm using has very recently merged support for JSON comments, which is the last feature they needed to fully support JSON5. This means that I'm only waiting for a release from them containing this commit to fully support that. In the meantime, you can bypass the issue by removing any non-standard JSON feature from your
|
Thanks, |
@shiftcontrol-dan @shimizu-izumi I realized that while this new release isn't out, I can try to manually remove comments of the file in-memory before passing it to the JSON parser, it's not optimal but not that hard to do and would fix the issue; the switch to a cleaner solution would later on be transparent for users |
What is the issue?
I tried using the plugin for the first time and immediately got this error.
What are the steps to reproduce this issue?
What were you expecting to happen?
For the plugin to render.
Paste any relevant logs, error output, etc.
What OS are you experiencing the problem on?
macOS
Additional platform information
Build version: WebStorm 2023.3.6 Build: #WS-233.15026.13 March 21, 2024
JRE: 17.0.10+1-b1087.23, JetBrains s.r.o.
JVM: 17.0.10+1-b1087.23, OpenJDK 64-Bit Server VM, JetBrains s.r.o.
Operating System: Mac OS X 14.4.1 (aarch64)
=== Plugins ===
Custom plugins: [Space (233.15026.16), .ignore (4.5.2), AI Assistant (233.15026.24), GitHub Copilot (1.5.2.5345), shadcn/ui Components Manager (0.7.7)]
Disabled plugins:[]
Duplicates
The text was updated successfully, but these errors were encountered: