AutoCompleteAccepted problem (Branch 4.0, changeset 95811)

Topics: Developer Forum, User Forum
Mar 16, 2012 at 12:29 PM

Hello, I'm using Branch 4.0 from the change set 95811 and I came across this problem with the AutoCompleteAccepted event.

This is my AutoComplete setup:

            scintilla1->AutoComplete->SingleLineAccept = false;
            scintilla1->AutoComplete->IsCaseSensitive = true;
            scintilla1->AutoComplete->DropRestOfWord = true;
            scintilla1->AutoComplete->AutoHide = false;
            scintilla1->AutoComplete->AutomaticLengthEntered = true;
            scintilla1->ConfigurationManager->Language = "CPP";           
            scintilla1->AutoComplete->ListString = "FirstWord SecondWord SecondWordAgain ThirdWord";

And I will be showing the results with this method:

System::Void scintilla1_AutoCompleteAccepted(System::Object^  sender, ScintillaNet::AutoCompleteAcceptedEventArgs^  e){
                 System::Diagnostics::Debug::WriteLine( e->Text );

Now, these are use case scenarios:

1 -Ctrl+Space
  -Hit Enter on "FirstWord" ( Output: "FirstWord" )
2 -Ctrl+Space
  -Hit Enter on "SecondWord" ( Output: "SecondWord" )
3 -Ctrl+Space
  -Hit Enter on "SecondWordAgain" ( Output: "SecondWordAgain" )             
4 -Ctrl+Space
  -Hit Enter on "ThirdWord" ( Output: "ThirdWord" )              
5 -Ctrl+Space
  -Type "T" (there is only "ThirdWord" in the autocomplete list now)
  -Hit Enter on "ThirdWord" ( Output: "FirstWord" ) (?? WHY not "ThirdWord" ??)
6 -Ctrl+Space
  -Type "S (there are only "SecondWord" and "SecondWordAgain" in the autocomplete list now)
  -Use down arrow, to select "SecondWordAgain"
  -Hit Enter on "SecontWordAgain" ( Output: "SecondWord" ) (?? WHY not "SecondWordAgain" ??)
7 -Ctrl+Space
  -Type "S (there are only "SecondWord" and "SecondWordAgain" in the autocomplete list now)
  -Hit Enter on "SecontWord" ( Output: "FirstWord" ) (?? WHY not "SecondWord" ??)

Am I doing something wrong with my AutoComplete setup or is it a ScintillaNET bug?

Thanks in advance!

Mar 26, 2012 at 8:34 AM

*Bump*, really nobody knows anything about this issue?

Mar 26, 2012 at 3:02 PM

blah38621 is who created the 4.0 branch and has a particular interest in AutoComplete. You'll have to ask him.



Mar 26, 2012 at 7:45 PM

I'm looking into it now.

Mar 26, 2012 at 8:20 PM
Edited Mar 26, 2012 at 8:23 PM

If your not looking for automatic showing of the auto-complete list (thus the ctrl+space), I would advise using the release branch, I think the issue is that 4.0 doesn't like it if you don't set a trigger string. Or no, it might just be it doesn't like you setting it via code.....