The Welkin Suite Forum

[Fixed] Consistent crashing when hitting comma in method arguments



Consistent crashing when hitting comma in method arguments

  • Please log in to reply

#1

tim

    Posted 28 Jun 2016

    This is really weird.  Something has happened in Welkin Suite which is causing it to crash every time I press the comma (,) key in a method signature (to add a new argument).  As soon as I hit comma, I get an error message (see attachement), and Welkin Suite crashes.  I have tried rebooting, recreating my project, uninstalling/reinstalling TWS (with reboots in between), and nothing seems to help.  I haven't seen the issue in any other place except adding arguments to method signature.

     

    The error message which pops up has led me to a log file about the event, which says something about a null-pointer error.  I have included the event log below, as well as screenshots.

     

    Any help would be appreciated.  I cannot work while this is broken.  :-(

     

    This is in version 0.29.10.4

     

    I'm no expert, but I think I pulled out the relevant stack trace from the error log:

    System.NullReferenceException: Object reference not set to an instance of an object. 
     at WelkinSuite.ApexIncrementalParser.Implementation.ApexAst.TypeDefinitionExtensions.TypeDefinitionToString(TypeDefinition typeDefinition)
     at WelkinSuite.ApexIncrementalParser.Implementation.ApexAst.MethodDefinition.GetDescription()
     at WelkinSuite.ApexIncrementalParser.Implementation.Analyzers.CodeCompletion.Providers.MembersProvider.IntervalsToCompletionItem(Dictionary`2 intervals, Boolean includeFormalParams)
     at WelkinSuite.ApexIncrementalParser.Implementation.Analyzers.CodeCompletion.Providers.MembersProvider.GetAllItemsFromGlobalAndCurrentScope()
     at WelkinSuite.ApexIncrementalParser.Implementation.Analyzers.CodeCompletion.Providers.MembersProvider.GetItems()
     at WelkinSuite.ApexIncrementalParser.Implementation.Analyzers.CodeCompletion.Providers.MembersProvider.GetCompletionItems(CodeCompletionContextData context)
     at WelkinSuite.ApexIncrementalParser.Implementation.Analyzers.CodeCompletion.CompletionManager.<>c__DisplayClass5.<GetCodeCompletions>b__2(ICompletionItemsProvider completionItemsProvider)
     at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
     at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
     at WelkinSuite.ApexIncrementalParser.Implementation.Analyzers.CodeCompletion.CompletionManager.GetCodeCompletions(String filePath, Int32 bufferPosition, Boolean isDefaultStrategy, String contextString, Int32 contextStringStartPosition)
     at WelkinSuite.ApexCodeAssistance.Implementation.CodeCompletion.ApexCodeCompletionController.TriggerCompletionSession(Boolean defaultStrategy)
     at WelkinSuite.ApexCodeAssistance.Implementation.CodeCompletion.ApexCodeCompletionController.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at WelkinSuite.EditorExtensions.Implementation.BraceCompletion.BraceCompletionController.Exec(Guid& pguidCmdGroup, UInt32 nCmdId, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at WelkinSuite.EditorExtensions.Implementation.Features.CodeFormatFeature.CommandFilter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at WelkinSuite.EditorExtensions.Implementation.Features.DuplicateRowFeature.CommandFilter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at WelkinSuite.EditorExtensions.Implementation.LanguageServices.ApexCommentsController.Exec(Guid& pguidCmdGroup, UInt32 nCmdId, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at WelkinSuite.CodeSnippets.Implementation.ApexSnippetController.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
     at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(Guid cmdGroup, UInt32 cmdID, Object inParam)
     at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(TextCompositionEventArgs args)
     at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<DispatchTextInputEvents>b__0(KeyProcessor p, TextCompositionEventArgs args)
     at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass1e`1.<Dispatch>b__1a()
     at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
    


    2 replies to this topic

    #2

    kate.dulko

      Posted 29 Jun 2016

      Hi Tim,


      Thank you for all the details related to your issue. They are really helpful.


      Our developers have already detected the reason for this issue. Currently, there is no workaround for this.

      The next version of The Welkin Suite will include the fix for this issue. This will be available for you next week.


      Best Regards,

      Kate


      Kate Dulko
      Customer Relations

      The Welkin Suite

      twitter: @KateDulko
      skype id: d_katerina
      e-mail: kate.dulko@welkinsuite.com

       

        


      #3

      kate.dulko

        Posted 19 Jun 2017

        Hi Tim,


        The current issue was solved in one of the previous versions of The Welkin Suite IDE.

        Also, we have released the great update for the Code Assistance functionality in the Bloom R1 version of the IDE, so a lot of other issues related to the Code Completion or Code Assistance options are solved.


        I'll close this topic as solved.

        If you have any other questions, please contact us - we will be happy to assist.


        Regards,

        Kate




        Kate Dulko
        Customer Relations

        The Welkin Suite

        twitter: @KateDulko
        skype id: d_katerina
        e-mail: kate.dulko@welkinsuite.com

         

          


        Boost Your Productivity. Get Started Today

        Try Free Trial