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

[Auto Generated]Plugin error occurred #5330

Closed
intellij-translation-plugin-bot opened this issue Mar 13, 2024 · 1 comment
Closed

[Auto Generated]Plugin error occurred #5330

intellij-translation-plugin-bot opened this issue Mar 13, 2024 · 1 comment
Labels
auto generated report 🤖 This is an automatically generated report bug/crash 💥 Uh-oh! duplicate

Comments

@intellij-translation-plugin-bot

⚠️[Auto Generated Report]-=CD8F9933BCBB000A6A6CF120BDF526CA=-

Description

*** message was redacted (original:1/22/161 submitted:1/7/42)
*** stacktrace was redacted (original:36/427/3376 submitted:38/449/3545)

*** exception class was changed or removed

Environments

Plugin version: 3.5.6

PyCharm 2023.2.4 (Professional Edition)
Build #PY-232.10203.26, built on November 1, 2023
Runtime version: 17.0.8.1+7-b1000.32 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Operating system: Windows 10.0
Last action id: $EditorTranslateAction

Stack Trace

Translation parsing failed[translate.microsoft]: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 72 path $[0].sourceText
   
   com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 72 path $[0].sourceText
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:397)
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
	at com.google.gson.Gson.fromJson(Gson.java:1227)
	at com.google.gson.Gson.fromJson(Gson.java:1137)
	at com.google.gson.Gson.fromJson(Gson.java:1047)
	at com.google.gson.Gson.fromJson(Gson.java:1014)
	at cn.yiiguxing.plugin.translate.trans.microsoft.MicrosoftTranslator.parseTranslation(MicrosoftTranslator.kt:65)
	at cn.yiiguxing.plugin.translate.trans.microsoft.MicrosoftTranslator.access$parseTranslation(MicrosoftTranslator.kt:20)
	at cn.yiiguxing.plugin.translate.trans.microsoft.MicrosoftTranslator$doTranslate$2.invoke(MicrosoftTranslator.kt:37)
	at cn.yiiguxing.plugin.translate.trans.microsoft.MicrosoftTranslator$doTranslate$2.invoke(MicrosoftTranslator.kt:37)
	at cn.yiiguxing.plugin.translate.trans.SimpleTranslateClient.parse(SimpleTranslateClient.kt:19)
	at cn.yiiguxing.plugin.translate.trans.TranslateClient.execute(TranslateClient.kt:52)
	at cn.yiiguxing.plugin.translate.trans.microsoft.MicrosoftTranslator.doTranslate(MicrosoftTranslator.kt:38)
	at cn.yiiguxing.plugin.translate.trans.AbstractTranslator.translate(AbstractTranslator.kt:20)
	at cn.yiiguxing.plugin.translate.trans.TranslateService$translate$$inlined$executeOnPooledThread$1.run(Applications.kt:179)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:272)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 72 path $[0].sourceText
	at com.google.gson.stream.JsonReader.nextString(JsonReader.java:836)
	at com.google.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:421)
	at com.google.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:409)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393)
	... 26 more

Attachments

request.txt
Translator: translate.microsoft
Source language: 检测语言(auto)
Target language: 中文(简体)(zh-CN)
================ Request Text ================
Blockhash Cache
==============================================
translation.txt
[{"detectedLanguage":{"language":"bn-Latn","score":0.99},"sourceText":{"text":"ব্লকহ্যাশ ক্যাচ"},"translations":[{"text":"Blockhash 捕获","to":"zh-Hans"}]}]
@YiiGuxing YiiGuxing added auto generated report 🤖 This is an automatically generated report bug/crash 💥 Uh-oh! duplicate labels Mar 13, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
@YiiGuxing
Copy link
Owner

Duplicate: #5327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto generated report 🤖 This is an automatically generated report bug/crash 💥 Uh-oh! duplicate
Projects
None yet
Development

No branches or pull requests

2 participants