Current filter:
                                You should refresh the page.
                                  • [DevExpress Support Team: CLONED FROM T699296: Visual Studio Extremely slow after DevEx install]
                                    I downloaded and installed CodeRush 18.2.4.18346.  The problem I am having is after correcting a misspelled word in a comments section.  I either get a "Please wait for an editor command to finish..." message or a "Committing Line" message.  Each message takes about 8 seconds to complete.

                                    I did get a " 'SpellCheckerCodeFixProvider' encountered an error and has been disabled. " error.  I copied the Stack Trace:
                                    ----------
                                    System.AggregateException : One or more errors occurred. ---> Object reference not set to an instance of an object.
                                       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
                                       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,CancellationToken cancellationToken)
                                       at Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.InvokeWorker(Func`1 getFromDocument,IProgressTracker progressTracker,CancellationToken cancellationToken)
                                       at Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.<>c__DisplayClass18_0.<InvokeCore>b__0()
                                       at Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformAction(IExtensionManager extensionManager,Object extension,Action action)
                                    ---> (Inner Exception #0) System.NullReferenceException : Object reference not set to an instance of an object.
                                       at DevExpress.Internal.WeakEventHandlerBase`1.Invoke(Invoker invoker)
                                       at DevExpress.Internal.WeakEventHandlerStrategy`2.Raise(Object sender,TArgs args)
                                       at DevExpress.XtraSpellChecker.SpellCheckerCustomDictionary.RaiseWordAddedEvent(String word)
                                       at DevExpress.XtraSpellChecker.SpellCheckerCustomDictionary.OnWordAdded(String word)
                                       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.VisualBasic.Diagnostics.SpellChecker.SpellCheckerCodeFixProvider.AddToDictionaryOperation.Apply(Workspace workspace,CancellationToken cancellationToken)
                                       at Microsoft.CodeAnalysis.CodeActions.CodeActionOperation.TryApply(Workspace workspace,IProgressTracker progressTracker,CancellationToken cancellationToken)
                                       at Microsoft.CodeAnalysis.Editor.Implementation.CodeActions.CodeActionEditHandlerService.ProcessOperations(Workspace workspace,ImmutableArray`1 operations,IProgressTracker progressTracker,CancellationToken cancellationToken)
                                       at async Microsoft.CodeAnalysis.Editor.Implementation.CodeActions.CodeActionEditHandlerService.ApplyAsync(<Unknown Parameters>)<---

                                    ---------

                                • Alex Z (DevExpress) 12.20.2018

                                  Hello,

                                  Currently, we not able to reproduce this issue locally, however, we have made several changes in the spell checker code.
                                  Would you please try the following daily build and see if this issue is still reproducible: DevExpress.CodeRush.Roslyn-18.2.5.18354.vsix

                                • Eric Adolphson 12.20.2018

                                  CodeRush ver 18.2.4.18346

                                  Only quick setting enabled:
                                    Clipboard History
                                    Spell checker
                                    Templates

                                  Sometimes spell check does not show errors until first edit is made, but could not get this to repeat every time

                                  AboutBox.vb
                                    Version 5
                                      Version 5.0.2.x
                                    Version 5.0.2.2
                                      PrintXuc.vb
                                    Private Function GetManager()
                                      Dim bsvc
                                    Add to dictionary: bsvc

                                  'SpellCheckedCodrFixProvider' encountered an error and has been disabled.
                                  System.AggregateException : One or more errors occurred. ---> Object reference not set to an instance of an object.
                                     at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
                                     at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,CancellationToken cancellationToken)
                                     at Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.InvokeWorker(Func`1 getFromDocument,IProgressTracker progressTracker,CancellationToken cancellationToken)
                                     at Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.<>c__DisplayClass18_0.<InvokeCore>b__0()
                                     at Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformAction(IExtensionManager extensionManager,Object extension,Action action)
                                  ---> (Inner Exception #0) System.NullReferenceException : Object reference not set to an instance of an object.
                                     at DevExpress.Internal.WeakEventHandlerBase`1.Invoke(Invoker invoker)
                                     at DevExpress.Internal.WeakEventHandlerStrategy`2.Raise(Object sender,TArgs args)
                                     at DevExpress.XtraSpellChecker.SpellCheckerCustomDictionary.RaiseWordAddedEvent(String word)
                                     at DevExpress.XtraSpellChecker.SpellCheckerCustomDictionary.OnWordAdded(String word)
                                     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.VisualBasic.Diagnostics.SpellChecker.SpellCheckerCodeFixProvider.AddToDictionaryOperation.Apply(Workspace workspace,CancellationToken cancellationToken)
                                     at Microsoft.CodeAnalysis.CodeActions.CodeActionOperation.TryApply(Workspace workspace,IProgressTracker progressTracker,CancellationToken cancellationToken)
                                     at Microsoft.CodeAnalysis.Editor.Implementation.CodeActions.CodeActionEditHandlerService.ProcessOperations(Workspace workspace,ImmutableArray`1 operations,IProgressTracker progressTracker,CancellationToken cancellationToken)
                                     at async Microsoft.CodeAnalysis.Editor.Implementation.CodeActions.CodeActionEditHandlerService.ApplyAsync(<Unknown Parameters>)<---

                                  Crashed repeated multiple times.

                                  CodeRush ver 18.2.5.18354

                                  Only quick settings enabled:
                                    Clipboard History
                                    Spell checker
                                    Templates

                                  Sometimes spell check does not show errors until first edit is made, but could not get this to repeat every time

                                  Added "bsvc" to dictionary without crash

                                  Used Notepad++ to deleted "bsvc" from custom dictionary to re-test.

                                  On second test, was able to add "bsvc" without crash, but "bsvc" was still marked a misspelled.
                                  Moved mouse to "bsvc" in code, and got CodeRush prompt for misspelled word.
                                  Clicked on drop down arrow to get list of correctly spelled words, and "bsvc" was at the top of the list.
                                  "Add to dictionary" is not in the list.
                                  Looked at the contents of Custom.dic, and "bsvc" not in list.

                                  3rd time adding "bsvc" to dictionary everything worked.

                                  Fourth time got a repeat of the second test.
                                  Fourth test also had spell check not show errors until first edit is made.  I don't know if the "not showing until edit is made" is related to "Add to dictionary" not working.

                                  5th time adding "bsvc" to dictionary everything worked, and spell check showed errors BEFORE i made any edits.

                                  I am including the AboutBox form, and my custom dictionary AFTER I deleted "bsvc"

                                • Alex Z (DevExpress) 12.21.2018

                                  Eric,

                                  Thank you for additional information. I was able to reproduce this issue on my machine.
                                  Please give us some time to research and fix this issue.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:


                                Additional information:

                                Hi Eric,
                                We researched the issue and made changes in our code and the issue doesn't occur now. We prepared a build with the latest changes and suggest you try it:
                                http://downloads.devexpress.com/Share/IDE/181226/DevExpress.CodeRush.Roslyn-18.2.5.18360.exe
                                Please inform us about your experience.

                                Show all comments
                                • Eric Adolphson 12.26.2018

                                  Will the new CodeRush and breaking up my comments file into 3 smaller files, everything is working well.

                                  One proposed feature:  It is possible to use the spell check feature to fix errors without moving the current text cursor.
                                    1) Move the mouse wheel to scroll to the next spelling error
                                    2) Hover the mouse over the error
                                    3) Click the drop down arrow next to the popup light bulb
                                    4) Select the correctly spelled word from the drop down list.

                                  This works great .

                                  The feature I would like to see changed is the automatic re position of the text after a spell check fix.  If the user has scrolled more than a screen's height, then the display is scrolled back to the text cursor, not keeping the current displayed text on screen.

                                  If you do steps 1-4 above in Visual Studio (in step 1, make sure to scroll two screen heights of text), you will see the text re position to the text cursor.  If would be nice if the text did not scroll back, but stayed in place.

                                • Alex Eg (DevExpress) 12.27.2018

                                  Eric,
                                  I agree with you that scrolling back to the caret position after the code fix is applied is not always comfortable. However, we cannot control this behavior because it's managed by Visual Studio. Here is a screencast showing the same behavior when using the VS built-in code fix
                                  http://take.ms/5HQBX

                                • Eric Adolphson 01.02.2019

                                  We have solved all the problems with CodeRush being slow.

                                  Now the problem is I cannot turn spell checking back on.  I have gone to:
                                    CodeRush->Options->Quick Setup, [X] Spell checker, [ OK ]
                                  Also I have tried
                                    CodeRush->Options->Quick Setup, [ Default ], [ OK ]

                                  But neither turn on spell checker even when the Spell checked option is selected

                                   

                                • Przemyslaw Wlodarczak (DevExpress) 01.03.2019

                                  Eric,

                                  I tried to reproduce the issue, but failed. Here is the video showing how it looks on my machine - https://monosnap.com/file/bdvEplHrQS7j0URcYbppzKyWdHKq4b
                                  Please note, some spell checker contexts may be disabled - for example, in my video I disabled the spell checker for strings and it did not show issues for them anymore though it was enabled. May this be the cause of the problem?
                                  If not, please send me your CodeRush settings. They are stored in the "%AppData%\CodeRush\Settings" folder and in the ".cr" folder located next to your solution file. Also, provide your CodeRush log, which is stored in the "%AppData%..\Local\CodeRush\Logs".
                                  Please zip everything and send to me so that I can investigate this information.

                                • Eric Adolphson 01.03.2019

                                  I am sending you all the files.  In one solution folder, I do not have a ".cr" folder.  In a different solution folder, I do have a ".cr" folder. In both solutions, CodeRush spell check is not functioning.

                                • Przemyslaw Wlodarczak (DevExpress) 01.04.2019

                                  Eric,
                                  Thank you for the files. I analyzed them. Your CodeRush log does not contain any errors. I also applied your settings to my instance of Visual Studio and everything appears to work properly on my side - see the video https://www.screencast.com/t/p2120sNGR

                                  Can you record a similar video showing the issue on your side? You can use the free Monosnap or Jing tool for this task.
                                  Eventually, please specify what exactly does not work for you. In particular:
                                  * is the "Toggle spell checker" button enabled in the toolbar?
                                  * do you get the spell checker squiggles in the editor?
                                  * are the spelling errors visible in the Code Issues tool window?
                                  * do you get the spell checker fixes when you invoke the lightbulb menu for a misspelled word?

                                  I greatly appreciate your cooperation and am looking forward to hearing from you.

                                • Eric Adolphson 01.06.2019

                                  Per my attached file:

                                  1. Spell Check is turned on (Blue highlight around Spell Check tool bar button)
                                  2. No squiggles in the editor (see line 204)
                                  3. No spelling errors in Code Issues window
                                  4. No Light bulb when moving mouse onto misspelled word.

                                  I could not get Monosnap to work.

                                • Przemyslaw Wlodarczak (DevExpress) 01.07.2019

                                  Eric,

                                  Thank you for all the information and the attached screenshot. It looks like the spell checker is disabled for comments. This is the case for the solution without the ".cr" folder - according to the setting files you provided previously. However, it should be enabled for comments for the solution with the ".cr" folder. To confirm this, please follow these steps:

                                  1. Open the solution with the ".cr" folder you sent to me previously.Open the CodeRush options window and navigate to the "Editor\All Languages\Code Analysis\Spell Checker" page.
                                  2) See the "Comments" checkbox. It should be checked - according to your setting files. Don't change its state now. Just let me know how it looks like here. It will help me determine where to eventually add an additional logging code to diagnose the issue further.
                                  2. Close all Visual Studio instances.
                                  3. Open the new Visual Studio instance without any solution.  Open the CodeRush options window and navigate to the "Editor\All Languages\Code Analysis\Spell Checker" page.
                                  4. The "Comments" checkbox should be unchecked now - according to your setting files. Please also inform me if it is true or not.
                                  5. Please check the "Comments" checkbox now. It should look like in the picture below. You can also check the "Strings", "Verbatim strings" and "Xml comments" options.
                                  6. Close the options window with the OK button. The spell checker should be enabled now for comments (and respectively for strings, verbatim strings and xml doc comments) for every solution.
                                  7. Open the solution without the ".cr" folder. Please see if the spell checker works for comments now and let me know.
                                  8. Now check the solution with the ".cr" folder. Please see if the spell checker works for comments here as well. Let me know the results.

                                  I am looking forward to hearing from you.

                                • Eric Adolphson 01.07.2019
                                  1. Ok
                                  2. Yes, for the solution with the .cr folder, on CodeRush Options "Editor\All Languages\Code Analysis\Spell Checker" Comments is checked.
                                  3. Done
                                  4. Also Done
                                  5. Yes, Comments is NOT checked (No items in the Contents section checked)
                                  6. Checked "Comments", "Strings", "Verbatim strings" and "Xml comments"
                                  7. OK
                                  8. WE HAVE SPELL CHECK!
                                  9. we also have a .cr folder

                                  Looks like you did it!

                                • Przemyslaw Wlodarczak (DevExpress) 01.08.2019

                                  Eric,

                                  I am happy to hear that the issue is resolved now.
                                  Do not hesitate to contact us if you face any difficulties with our tools. We will always be happy to help.