Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VFP]Documentation comments for the array property of a class have incorrect content after generation. #1664

Open
vfp9 opened this issue Jan 5, 2025 · 3 comments

Comments

@vfp9
Copy link
Contributor

vfp9 commented Jan 5, 2025

The following class definitions exist

    /// <summary>
    /// This's a test class
    /// </summary>
    Define Class myCustom  As Custom
        /// <summary>
        /// This's a array property
        /// </summary>
        myArray As Usual
        
        Procedure Init() As Usual
            Dimension This.myArray[1, 2]
        Endproc
    Enddefine

When viewing the description of the myArray property in the Object Explorer, it is summarized as This's a test class

X# 2.21.0.5 And VS2022(17.12.3)

@RobertvanderHulst
Copy link
Member

The problem seems to be that the intellisense parser expects a visibility modifier before myArray AS Usual
If you prefix myArray with PUBLIC then it works as expected.

@vfp9
Copy link
Contributor Author

vfp9 commented Jan 10, 2025

Robert,
The intellisense message is displayed correctly after changing the code as per your comments.
It still displays incorrectly in the object browser.

@RobertvanderHulst
Copy link
Member

The object browser message is read from the XML file that was generated by the compiler. Apparently there is a similar problem in the compiler parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants