Two bugs with attributes autocomplete

SyntaxEditor Web Languages Add-on for Windows Forms Forum

Posted 17 years ago by Sergey Astachov
Version: 4.0.0253
Platform: .NET 2.0
Environment: Windows XP (32-bit)

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">
..... some elements....
<xs:attributeGroup ref="mystyle:all-available-styles"/>

and in second ("mystyle.xsd") I defined
<xs:attributeGroup name="all-available-styles">
<xs:attribute ref="style1"/>
<xs:attribute ref="style2"/>
... etc ...

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

Comments (3)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Sergey,

#1 is now resolved for the next maintenance release.

For #2, can you email over the two XSDs you are using for testing? Then we can debug with those to ensure we get it working correctly.


Actipro Software Support

Posted 17 years ago by Sergey Astachov
> #1 is now resolved for the next maintenance release.

Thanks. Great!

> For #2, can you email over the two XSDs you are using for testing...

I send letter to
support@ with
subject: "Re: Two bugs with attributes autocomplete"

Sorry again for mistake in bug description at first message of this topic.

[Modified at 06/25/2007 12:24 PM]
Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Thanks again for the XSDs and details. #2 is now fixed for the next maintenance release and will show attribute namespace prefixes in the member list.

Additionally the next maintenance release will not show attributes in the member list that have already been inserted into the element.

Actipro Software Support

The latest build of this product (v24.1.0) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.