拼写检查错误源树

Spellchecker error source tree

每次我打开 sourcetree 时,我都会收到这个烦人的弹出窗口:

"SourceTree detected the following invalid Dictionary file references. These are known to cause performance issues.

Do you want to remove these invalid dictionaries?"

如果我点击 'Yes' -> 关闭 sourcetree -> 重新打开它 -> 弹出窗口再次出现。

有谁知道如何解决这个问题?

我使用的是 1.9.10.0 版本

这是 SourceTree 中的错误。这似乎没有解决方法(请参阅下面引用的部分了解原因)。

Atlassian 自己的 JIRA 上列出了两个错误:

SRCTREEWIN-6664 has this comment 来自一位 Atlassian 工作人员:

SourceTree is reporting that there are invalid file entries listed in the registry for the Windows spellchecker. If these are not deleted it can cause performance issues in SourceTree. The dialog should list the files to be deleted. However it appears it is possible to get empty entries in the registry, something we didn't see during testing. We are working to improve the notification's presentation of this.

SRCTREEWIN-6674 也是关于这个错误并指出它是导致问题的 SourceTree。

It appears that SourceTree itself is creating the empty entry. If I use regedit to remove the extra empty line (one of the 2 newline characters) from _ Global _ under HKEY_CURRENT_USER\SOFTWARE\Microsoft\Spelling\Dictionaries then SourceTree will start up without the error message the next time. But when it starts, the extra empty line will be created again in that registry entry!

source

When SourceTree starts it creates a new dictionary file (e.g. xljwxlxe.dic) under %localappdata%\Temp and adds the dictionary to the previously mentioned registry entry (along with the illegal empty line).

... snip ...

When SourceTree closes, it removes the dictionary again, but leaves the empty line in the registry.

source

所以基本上,唯一的解决方法是从 SourceTree 正在检查的注册表项中删除空行。但是在你这样做之后,打开 SourceTree 只会再次添加空白行,并在你下次打开 SourceTree 时导致同样的问题。

更新: 正如 Osiris M. 在 , there's a possible solution over on Atlassian Answers 中指出的那样,但它似乎对某些人有效,对其他人无效。它对我不起作用。

刚拿到a working solution from the Atlassian forum.

我做了以下操作:

  1. 删除您的用户临时位置中的所有 *.dic 文件:%localappdata%\Temp
  2. 打开SourceTree,你会得到同样的通知,但这次程序确实会显示错误的条目。
  3. 同意删除错误条目后,通知将不再显示。

我有同样的错误。我有一个法语 windows 10,并在 SourceTree 下使用英语拼写检查。 我只是通过安装 windows 10 的英语语言包来修复错误。 希望对你有帮助

在 Atlassian 修复这两个错误之前,我的解决方案是安排一个每小时的任务,运行s 以下 Windows 批处理文件。

要更正两个换行符而不是一个换行符的问题,只需查询注册表和 re-adding 相同的数据即可解决问题。

如果在 Sourcetree 中性能仍然很慢,运行任务更频繁,例如每半小时一次。

:: fix-dictionaries.bat
@echo off

set regPath="HKEY_CURRENT_USER\Software\Microsoft\Spelling\Dictionaries"
set regName="_Global_"

for /f "tokens=2*" %%a in ('REG QUERY %regPath% /v %regName%') do set "regData=%%~b"

REG ADD %regPath% /t REG_MULTI_SZ /v %regName% /d "%regData%" /f