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

<bug>悬停翻译失败 #240

Open
NoctisJOJO opened this issue Sep 23, 2024 · 10 comments
Open

<bug>悬停翻译失败 #240

NoctisJOJO opened this issue Sep 23, 2024 · 10 comments

Comments

@NoctisJOJO
Copy link

注释翻译仍然能正常工作
image
但是悬停翻译无法工作
image

@NoctisJOJO
Copy link
Author

NoctisJOJO commented Sep 23, 2024

image
image

设置中,悬停翻译为打开状态

@intellism
Copy link
Owner

image
我这里没有复现,麻烦提供下更多信息。

  • 代码片段
  • output日志

@NoctisJOJO
Copy link
Author

经过验证,翻译插件与Pylance插件冲突
image
当未安装Pylance插件时,鼠标移动至函数上
image
image
安装Pylance插件后,鼠标移动至函数上,可以看到悬浮窗多了一段(function)提示,导致翻译无法启动
image
image

此外可以看出,对于print函数,翻译也并不彻底

附上我的扩展列表
image
image

此为实例代码

import numpy as np
a=np.arange(5)
print(a.dtype)
a.size()
np.linspace()
np.random.uniform(size=(2,3))
#This is a test

@NoctisJOJO
Copy link
Author

更新下,在关闭Pylance扩展后,鼠标悬停至函数,仍然有某些函数无法翻译,推测还是有扩展冲突。。。
image

@intellism
Copy link
Owner

退回到v2.3.3尝试下是否正常。 v3.0.0 新增了语言判断,如果当前文本的语言与target语言相同,会跳过翻译。

@NoctisJOJO
Copy link
Author

退回到v2.3.3尝试下是否正常。 v3.0.0 新增了语言判断,如果当前文本的语言与target语言相同,会跳过翻译。

退回到v2.3.3后正常翻译了,期待更新

@intellism
Copy link
Owner

intellism commented Sep 24, 2024

收到,应该是判断当前语言出问题了。 麻烦提供下你的本地配置。

你的targetLanguage是不是也是 英文?

image

@intellism
Copy link
Owner

周末先添加一个配置,先规避这个问题。

@NoctisJOJO
Copy link
Author

收到,应该是判断当前语言出问题了。 麻烦提供下你的本地配置。

你的targetLanguage是不是也是 英文?

image

图为我的配置,默认配置
image

@tsy-pavel
Copy link

version 3.0.0 is not working. I load back version 2.3.3 and it working perfect. I hope you fix it bug very soon!

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

No branches or pull requests

3 participants