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

Error occurred when adding a new key #817

Open
ultimaweapon opened this issue Oct 7, 2022 · 9 comments
Open

Error occurred when adding a new key #817

ultimaweapon opened this issue Oct 7, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@ultimaweapon
Copy link

Describe the bug
When I tried to add a new key the following error triggered:

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'l'
    |     property 'next' -> object with constructor 'l'
    --- property 'prev' closes the circle

I have checked JSON files and its syntax is correct. It was working without this issue before but today I comeback to work on my project since last month and it broken.

Extension Version
i18n Ally v2.8.1

Framework/i18n package you are using

    "vue-i18n": "^8.27.2",
    "vue-i18n-composable": "^2.0.0",

To Reproduce
Steps to reproduce the behavior:

  1. Go to i18n Ally panel on the left.
  2. Click on + button on a TREE pane.
  3. See error

I don't know what is the cause of this error because the error does not tell where the error come from.

Device Infomation

  • OS: Arch Linux
  • Version: Rolling release
  • VS Code Version: 1.72.0

Extension Log

🈶 Activated, v2.8.1

――――――

💼 Workspace root changed to "[redacted]"
📦 Packages file "package.json" found
🕳 Packages file "pubspec.yaml" not exists
🕳 Packages file "composer.json" not exists
🕳 Packages file "Gemfile" not exists
🌞 Enabled
🧩 Enabled frameworks: Vue, General
🧬 Enabled parsers: json, yaml, json5

📈 Telemetry id: ab834df8-f586-436f-bb46-e489f9a3a6f1
🚀 Initializing loader "[redacted]"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.(?<ext>json|ya?ml|json5)$/

📂 Loading locales under [redacted]/src/translations
	📑 Loading (en-US) en-US.json [1665151978129.1572]
	📑 Loading (th-TH) th-TH.json [1665148110023.1475]

👀 Watching change on [redacted]/src/translations
✅ Loading finished


――――――

Screenshots
Screenshot from 2022-10-07 22-00-41

@ultimaweapon ultimaweapon added the bug Something isn't working label Oct 7, 2022
@ultimaweapon
Copy link
Author

Just noticed the error will occurred after expand at least one item in the tree. If I clicked on + button after VS Code is started without expanding any item in the tree no error occurred.

@James-Pini
Copy link

Yep, experiencing the same issue.

@ultimaweapon's workaround worked for me as well. Just reopen VS Code and make sure not to expand any items in the tree.

@kibotrel
Copy link

I'm experiencing the same problem and it is quite annoying, a fix would be really appreciated!

@sneko
Copy link

sneko commented Jan 24, 2023

@antfu don't know if you're still active on this repo but this is really blocking adoption of the vscode extension.

Thank you,

@Arya-Aghaei
Copy link

+1

1 similar comment
@baranwang
Copy link

+1

@agoudbg
Copy link

agoudbg commented Apr 25, 2023

+1 it's annoying

@mmxxfff
Copy link

mmxxfff commented Jun 1, 2023

+1 2023, no one cares?

@giovanniciriello
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

9 participants