Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Weird behaviour generating documentation comments for internal procedures #10

Closed
rvanbekkum opened this issue Jul 8, 2020 · 2 comments
Labels
bug Something isn't working released

Comments

@rvanbekkum
Copy link

Dear @365businessdev,
I have ran into some weird issues trying to add documentation comments to internal procedures.

  1. It seems to be doing something wrong if there is a local procedure beneath an internal procedure. I think this is best explained with an example:

    internal procedure MyInternalProcedure(SomeInterface: Interface "Line With Price"; SomeRec: Record "Custom Address Format"): Boolean
    var
        SomeCodeunit: Codeunit "Sales-Post";
    begin
        exit(true);
    end;
    
    local procedure MyLocalProcedure(): Integer
    begin
        exit(42);
    end;

    Putting the code above in a codeunit and then typing /// above the internal procedure, results in:
    image

  2. If I have an internal procedure at the bottom of a codeunit, typing /// doesn't trigger any documentation comment generation.

@sirhc101 sirhc101 added bug Something isn't working ships in future version labels Jul 8, 2020
@sirhc101
Copy link
Collaborator

sirhc101 commented Jul 8, 2020

You're absolutly right! internal procedure is not working properly. Fixed this in dev branch already and preparing for release

@sirhc101
Copy link
Collaborator

sirhc101 commented Jul 8, 2020

Fixed in version 0.3.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

2 participants