You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Translation parsing failed[translate.microsoft]: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 72 path $[0].sourceText
Environments
Plugin version: 3.5.6
IntelliJ IDEA 2023.3.4 (Ultimate Edition)
Build #IU-233.14475.28, built on February 13, 2024
Runtime version: 17.0.10+1-b1087.17 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Operating system: Windows 11.0
Last action id: null
Stack Trace
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$translateDocumentation$client$2.invoke(MicrosoftTranslator.kt:55)
at cn.yiiguxing.plugin.translate.trans.microsoft.MicrosoftTranslator$translateDocumentation$client$2.invoke(MicrosoftTranslator.kt:55)
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.translateDocumentation(MicrosoftTranslator.kt:58)
at cn.yiiguxing.plugin.translate.trans.microsoft.MicrosoftTranslator.translateDocumentation(MicrosoftTranslator.kt:47)
at cn.yiiguxing.plugin.translate.documentation.DocumentationsKt.getTranslatedDocumentation(Documentations.kt:144)
at cn.yiiguxing.plugin.translate.documentation.DocumentationsKt.getTranslatedDocumentation(Documentations.kt:76)
at cn.yiiguxing.plugin.translate.documentation.TranslateDocumentationTask$asyncTranslate$lambda$2$$inlined$runAsync$1.run(promise.kt:403)
at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
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:840)
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
[Auto Generated Report]-=16DE298ED42AAA200F5CBD2C615B7931=-
Description
Translation parsing failed[translate.microsoft]: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 72 path $[0].sourceText
Environments
IntelliJ IDEA 2023.3.4 (Ultimate Edition)
Build #IU-233.14475.28, built on February 13, 2024
Runtime version: 17.0.10+1-b1087.17 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Operating system: Windows 11.0
Last action id: null
Stack Trace
Attachments
request.txt
translation.txt
The text was updated successfully, but these errors were encountered: