Bug detected in the "summary display in autocompletion"

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 12 years ago by BenjaminL
Version: 4.0.0246
Environment: Windows XP (32-bit)
Avatar
Hello actipro,

I think i have detected a bug in the "summary display" during the autocompletion.
I provide you all code and document below.

In your Test application ".Net Language Reflection", I import my Dll file. after that, i write "using Cpt.Wrappers" in the using block.
Then, i write "C." for acessing to autocompletion and for the "Activate" method, there is an error (see JIT debugger information below) and for the "Address" structure, the summary doesn't display.


The C# code :

// Version = 1
using System;
using System.Runtime.InteropServices;
using System.Text;
    namespace Cpt.Wrappers
    {
        public class C
        {
            /// <summary>
            /// Summary ONE
            /// </summary>
            /// <param name="apnInfo">Summary of a parameter</param>
            /// <returns>Summary of a return</returns>
            public static int Activate(Address apnInfo)
            {
                return 0;
            }
            /// <summary>
            /// Summary that is not displayed ...
            /// </summary>
            public class Address
            {
            }
        }
    }
The XML Help file :

<?xml version="1.0"?>
<doc>
    <assembly>
        <name>Cpt.Wrappers.CPA</name>
    </assembly>
    <members>
        <member name="M:Cpt.Wrappers.C.Activate(Cpt.Wrappers.C.Address)">
            <summary>
            Summary ONE
            </summary>
            <param name="apnInfo">Summary of a parameter</param>
            <returns>Summary of a return</returns>
        </member>
        <member name="T:Cpt.Wrappers.C.Address">
            <summary>
            Summary that is not displayed ...
            </summary>
        </member>
    </members>
</doc>

Here is the stack provided by the error text box in your ".Net Language reflection" application :

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.a(DotNetLanguage A_0, DotNetContext A_1, IDomType A_2, IDomMember A_3, Int32 A_4, Boolean A_5)
   at ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpSyntaxLanguage.OnSyntaxEditorIntelliPromptMemberListItemDescriptionRequested(SyntaxEditor syntaxEditor, EventArgs e)
   at ActiproSoftware.SyntaxEditor.SyntaxEditor.c(EventArgs A_0)
   at aw.b(EventArgs A_0)
   at cn.a()
   at cn.a(SyntaxEditor A_0)
   at ActiproSoftware.SyntaxEditor.SyntaxEditor.f()
   at ActiproSoftware.SyntaxEditor.SyntaxEditor.h(Object A_0, EventArgs A_1)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TestApplication
    Assembly Version: 1.0.2649.21536
    Win32 Version: 1.0.2649.21536
    CodeBase: file:///C:/Program%20Files/Actipro%20Software/SyntaxEditor/v4.0.0238/TestApplication-CSharp.Net20/bin/Debug/TestApplication.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ActiproSoftware.Shared.Net20
    Assembly Version: 1.0.85.0
    Win32 Version: 1.0.85.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.Shared.Net20/1.0.85.0__36ff2196ab5654b9/ActiproSoftware.Shared.Net20.dll
----------------------------------------
ActiproSoftware.SyntaxEditor.Net20
    Assembly Version: 4.0.238.0
    Win32 Version: 4.0.238.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.SyntaxEditor.Net20/4.0.238.0__21a821480e210563/ActiproSoftware.SyntaxEditor.Net20.dll
----------------------------------------
ActiproSoftware.SyntaxEditor.Addons.DotNet.Net20
    Assembly Version: 4.0.238.0
    Win32 Version: 4.0.238.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.SyntaxEditor.Addons.DotNet.Net20/4.0.238.0__21a821480e210563/ActiproSoftware.SyntaxEditor.Addons.DotNet.Net20.dll
----------------------------------------
ActiproSoftware.WinUICore.Net20
    Assembly Version: 1.0.85.0
    Win32 Version: 1.0.85.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.WinUICore.Net20/1.0.85.0__1eba893a2bc55de5/ActiproSoftware.WinUICore.Net20.dll
----------------------------------------
System.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Comments (5)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Benjamin,

Please first upgrade to the latest maintenance release. I see from your exception info you are a number of maintenance releases behind and I think this might have been fixed after the build you have. Let us know if that fixes it.


Actipro Software Support

Posted 12 years ago by BenjaminL
Avatar
Thanks for your fast support,



The exception problem generated by the function is solved but the second problem is not solved.

We alredy haven't got the summary of the class during the autocompletion (with the same code and the same test)

Regards.

(PS : I have updated to the 4.0.0246 version)

[Modified at 04/11/2007 07:35 AM]
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hmm, I just tried build 246 on .NET 1.1 and am seeing the summary when I type "C." and scroll to the Address item in the member list.

Can you please post the code that you paste in (including the "C." part) so I can see exactly what you are trying and where your "C." is?


Actipro Software Support

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks for the sample assembly. The documentation for nested types wasn't being retrieved properly by the DotNetProjectResolver. This is now fixed for the next maintenance release.


Actipro Software Support

Posted 12 years ago by BenjaminL
Avatar
Thanks for your support.

I am waiting the next release.

Regards, BenjaminL
The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.