And crashes VS
Unhandled exception:
System.IO.DirectoryNotFoundException
Could not find a part of the path 'C:\Users{user}\AppData\Roaming\CodeRush\Settings\Private\custom.dic'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter…ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamWriter…ctor(String path, Boolean append, Encoding encoding)
at DevExpress.XtraSpellChecker.SpellCheckerCustomDictionary.SaveToFile()
at DevExpress.XtraSpellChecker.SpellCheckerCustomDictionary.Save()
at DevExpress.XtraSpellChecker.SpellCheckerCustomDictionary.AddWord(String word)
at DevExpress.CodeRush.VSFeatures.SpellChecker.SpellCheckerFactory.AddToDictionary(String word)
at DevExpress.CodeRush.VSFeatures.SpellChecker.SpellItemChecker.AddToDictionary(String word)
at DevExpress.CodeAnalysis.Spell.SpellCheckerService.AddToDictionary(String word)
at DevExpress.CodeRush.VSFeatures.SpellChecker.Taggers.AddToDictionarySmartTagAction.Invoke()
at Microsoft.VisualStudio.Language.Intellisense.Implementation.SmartTagMenuCommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Workaround: manually create file 'C:\Users{User}\AppData\Roaming\CodeRush\Settings\Private\custom.dic'
Hi Joel,
I wanted to take a moment to thank you for trying the CodeRush for Roslyn Preview. We appreciate it greatly.
I have managed to reproduce this crash locally and we prepared necessary changes to fix this problem. You can download this build containing these changes.
Note: To install the build, follow these steps: