SourceTree startup SpellChecker error
Asked by Bryan Baker:

Since the last update to 1.9.10.0, SourceTree on startup displays the following error:

"SourceTree detected the following invalid Dictionary file references. These are known to cause performance issues. Do you want to remove these invalid dictionaries?"SourceTreeSpellCheckerError.png

No file references are actually displayed. I've clicked both Yes and No multiple times on startup, but each ensuing startup displays the same error message.

I've disabled spell checking in the Tools-Options, which hasn't helped. I've looked in the SourceTree install directory but see nothing resembling dictionaries that might be susceptible to editing. Any other ideas welcome.  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-startup-SpellChecker-error/qaq-p/135950?attachment-id=7610){#link_11689764ed7eec}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/4033/1/SourceTreeSpellCheckerError.png){#display_11689764ed7eec_0}


Answers:
author: Andrew Liddle
body: Seeing this issue in version 3.3.6.

Any Fix?


author: Partha Mandayam
body: I don't understand this bug. What does office have to do with Sourcetree?


author: Mel Pettitt
body: I've had the same problem for about the last couple weeks. Didn't really cause any trouble, just caused me to have to dismiss the dialog.

But today, it has started crashing on startup instead.

As best I can tell (from the sourcetree.log file), it's getting a NullReferenceException exception while trying to call ShowNotificationDialogWithYesConfirmation method in Source.Configuration.Wpf**SpellCheck**PreFlightCheck.Run().

I've tried deleting the custom dictionary (RoamingCustom.dic). That did nothing.

So now SourceTree is totally unusable.


author: chien Nguy?n duc
body: Hi


author: Pedro J. Molina
body: Any fix for this bug, yet?

Experiencing it for months now on a Spanish locale Windows 10.

Related info: <https://stackoverflow.com/questions/41486308/spellchecker-error-source-tree>

comments: author: Pedro J. Molina
body: Whenever I add new words to a Spanish dictionary in Office Word, SourceTree keeps complaining.

I unchecked the option "Spell check commit" under tools \> options as commented here: <https://community.atlassian.com/t5/Sourcetree-questions/After-updating-to-1-9-9-20-I-get-an-invalid-Dictionary/qaq-p/166944>

But problem remains whenever I open SourceTree.


author: Steve Sobol
body: I looked in the log  
(\\users\\YOURLOGIN\\AppData\\local\\Atlassian\\SourcceTree\\sourcetree.log)  

My problem was the custom dictionary C:\\Users\\sjsobol\\AppData\\Roaming\\Microsoft\\Office\\16.0\\d668cc87\\Proofing\\RoamingCustom.dic  

After deleting it, I ran SourceTree and actually saw the path to the .dic file listed in the Invalid Directories dialog. Clicked yes, problem was gone.  

That was a few minutes ago. Don't know when/if it's going to start again, but I have some thoughts:

* Office can use the custom dictionary with no issues
* For SourceTree to be relying on an arbitrary data file created by Office is a pretty heinous hack (IMO)
* The dialog popping up with no dictionaries listed is an obvious bug, and Atlassian knows about it, they've known about it for a while and haven't fixed it,
* and while I \<3 SourceTree, I find it highly irritating that this hasn't been fixed. It doesn't impact usability, it's just annoying, but it'd be nice if it did get fixed.
* Also, SourceTree shouldn't try to load the dictionaries AT ALL if I turn off the "spell-check commit messages" feature, but I did that and still had this problem. Really, guys?

comments: author: ravijays
body: I have exactly the same issue but I do not want to remove the Custom dictionary. I also do not have the spell-check turned on so technically there is no reason for SourceTree to use it.

Any other ideas?


author: csorvagep
body: I've found a similar question:

[After updating to 1.9.9.20, I get an invalid Dictionary notification every time I start up, but it doesn't list any "invalid" files](https://answers.atlassian.com/questions/44898447)

This worked for me.


author: wbbeasley
body: I have the same issue. Was hoping they already solved it. Error started with the 1.9.10 update. I hit Yes and go on just fine.


author: Radoslav Bielik
body: there seems to be more information here, but sadly no workaround... I'm seeing the same issue

<http://stackoverflow.com/questions/41486308/spellchecker-error-source-tree>


Tags: spell-check