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

Rider翻译的时候报错 #743

Closed
2 tasks done
xxxxue opened this issue Apr 29, 2021 · 2 comments
Closed
2 tasks done

Rider翻译的时候报错 #743

xxxxue opened this issue Apr 29, 2021 · 2 comments
Labels
Milestone

Comments

@xxxxue
Copy link

xxxxue commented Apr 29, 2021

检查清单

请确保通过将 [ ] 替换为 [x] 来完成以下步骤

  • 我已经阅读了 README 中的 FAQ ,但仍然无法解决我的问题。
  • 我已经搜索过与我要提交的问题相匹配的问题,但没有找到。

问题详情

问题描述

移到main上面,弹出的依然是英文.但是上面的翻译开关是打开的.
然后点击两下. 切换下开关状态. 他就翻译成功了,
(此时就出现了下面的截图, 每次都会出现,点开后,单击"全部清除"按钮,在重复最开始的操作.就又出来了)
但是鼠标移走. 再移回来main 上. 还是英文.

image

环境 & 错误日志

  • 插件版本: 3.1

  • IDE版本: Rider 2021.1.2

  • 操作系统版本: win10

  • 错误日志:

java.lang.IllegalStateException: originalText must not be null
	at cn.yiiguxing.plugin.translate.action.ToggleQuickDocTranslationAction$toggleTranslation$replaceComponentAction$1.run(ToggleQuickDocTranslationAction.kt:67)
	at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
	at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:521)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$3(NonBlockingReadActionImpl.java:468)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1096)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:79)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:157)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:119)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:57)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:688)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:634)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:64)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:57)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:116)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:79)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:486)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:408)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:834)
@YiiGuxing YiiGuxing added the bug/crash 💥 Uh-oh! label May 1, 2021
niktrop added a commit to niktrop/TranslationPlugin that referenced this issue May 5, 2021
@niktrop
Copy link
Contributor

niktrop commented May 5, 2021

I could not reproduce the exception, but C# documentation should honor "Translate documentation" toggle state once #749 is merged.

@YiiGuxing YiiGuxing added this to the v3.1.1 milestone May 5, 2021
@YiiGuxing
Copy link
Owner

已禁用鼠标悬停文档的翻译:fc8689f

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

No branches or pull requests

3 participants