Posted 18 years ago
by Sergey Astachov
Version: 4.0.0253
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Hello,
It seems that I found 2 bugs, please see below.
To reproduce first bug do the following steps:
1. Open TestApplication written in .Net and choose the "QuickStart: .NET Language Reflection"
2. Try to add new <AutoReplaceTriggerActivator in example:
a) Write "<AutoReplaceTriggerActivator" (without quotes)
b) Press "Space" button
c) Enter "C" character
d) Press "Ctrl + Space"
After this step IntelliPrompt became almost empty.
e) Try to enter any symbol and you will receive the following exception:
"InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.\r\nParameter name: SelectedIndex"
at System.Windows.Forms.ListBox.set_SelectedIndex(Int32 value)
at ActiproSoftware.SyntaxEditor.IntelliPromptMemberListBox.b(Int32 A_0)
at ActiproSoftware.SyntaxEditor.IntelliPromptMemberListBox.a(Boolean A_0, Int32 A_1, String A_2)
at ActiproSoftware.SyntaxEditor.IntelliPromptMemberList.ActiproSoftware.SyntaxEditor.ISyntaxEditorEditModeHandler.OnSelectionChanged(SelectionEventArgs e)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.a(SelectionEventArgs A_0)
at ActiproSoftware.SyntaxEditor.EditorView.a(Object A_0, SelectionEventArgs A_1)
at ActiproSoftware.SyntaxEditor.Selection.a(SelectionEventArgs A_0)
at ActiproSoftware.SyntaxEditor.Selection.b(Boolean A_0)
at ActiproSoftware.SyntaxEditor.Selection.ResumeEvents()
at ActiproSoftware.SyntaxEditor.Commands.TypingCommand.Execute(EditCommandContext context)
at ActiproSoftware.SyntaxEditor.MacroRecording.a(EditCommand A_0, EditCommandContext A_1)
Second bug:
I tried to add second scheme to an example where defined some common attributes for elements.
For example in main xsd I write the following code:
<xs:element name="elem1">
<xs:complexType>
..... some elements....
<xs:attributeGroup ref="mystyle:all-available-styles"/>
</xs:complexType>
</xs:element>
and in second ("mystyle.xsd") I defined
<xs:attributeGroup name="all-available-styles">
<xs:attribute ref="style1"/>
<xs:attribute ref="style2"/>
... etc ...
</xs:attributeGroup>
When I try to enter elem1 autocomplete perfectly works for attributed defined in main xsd but doesn't work for attributes from "mystyle.xsd" and there is no difference if I tries to enter just "style1" or "mystyle:style1". But at the same time if I enter
"<elem1 mystyle:style1="qqq">" and there is some restrictions on style1 value then Syntax Editor shows me error with restriction description.
PS. Sorry for my poor English
It seems that I found 2 bugs, please see below.
To reproduce first bug do the following steps:
1. Open TestApplication written in .Net and choose the "QuickStart: .NET Language Reflection"
2. Try to add new <AutoReplaceTriggerActivator in example:
a) Write "<AutoReplaceTriggerActivator" (without quotes)
b) Press "Space" button
c) Enter "C" character
d) Press "Ctrl + Space"
After this step IntelliPrompt became almost empty.
e) Try to enter any symbol and you will receive the following exception:
"InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.\r\nParameter name: SelectedIndex"
at System.Windows.Forms.ListBox.set_SelectedIndex(Int32 value)
at ActiproSoftware.SyntaxEditor.IntelliPromptMemberListBox.b(Int32 A_0)
at ActiproSoftware.SyntaxEditor.IntelliPromptMemberListBox.a(Boolean A_0, Int32 A_1, String A_2)
at ActiproSoftware.SyntaxEditor.IntelliPromptMemberList.ActiproSoftware.SyntaxEditor.ISyntaxEditorEditModeHandler.OnSelectionChanged(SelectionEventArgs e)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.a(SelectionEventArgs A_0)
at ActiproSoftware.SyntaxEditor.EditorView.a(Object A_0, SelectionEventArgs A_1)
at ActiproSoftware.SyntaxEditor.Selection.a(SelectionEventArgs A_0)
at ActiproSoftware.SyntaxEditor.Selection.b(Boolean A_0)
at ActiproSoftware.SyntaxEditor.Selection.ResumeEvents()
at ActiproSoftware.SyntaxEditor.Commands.TypingCommand.Execute(EditCommandContext context)
at ActiproSoftware.SyntaxEditor.MacroRecording.a(EditCommand A_0, EditCommandContext A_1)
Second bug:
I tried to add second scheme to an example where defined some common attributes for elements.
For example in main xsd I write the following code:
<xs:element name="elem1">
<xs:complexType>
..... some elements....
<xs:attributeGroup ref="mystyle:all-available-styles"/>
</xs:complexType>
</xs:element>
and in second ("mystyle.xsd") I defined
<xs:attributeGroup name="all-available-styles">
<xs:attribute ref="style1"/>
<xs:attribute ref="style2"/>
... etc ...
</xs:attributeGroup>
When I try to enter elem1 autocomplete perfectly works for attributed defined in main xsd but doesn't work for attributes from "mystyle.xsd" and there is no difference if I tries to enter just "style1" or "mystyle:style1". But at the same time if I enter
"<elem1 mystyle:style1="qqq">" and there is some restrictions on style1 value then Syntax Editor shows me error with restriction description.
PS. Sorry for my poor English