Skip to content

AL Language Server Crashes on documented procedure with invalid parameter types #8189

@Stefanosx181

Description

@Stefanosx181

1. Describe the bug

The AL Language Server crashes when defining a procedure that contains XML documentation comments (

) above it and uses an invalid parameter type (for example Label).
The crash happens immediately after typing or saving the procedure and causes the AL Language Server to restart.

2. To Reproduce

Steps to reproduce the behavior:

Open Visual Studio Code

Open or create an AL project

Create a new codeunit

Add a procedure with XML documentation comments (

) above it

Use an invalid parameter type such as Label

codeunit 94126 MyCodeunit
{
///


///Test
///

local procedure Test(Parm: Label)
begin
end;
}

The AL Language Server crashes as soon as the procedure is parsed.

Note:
If the

comment is removed or the parameter type is changed to a valid type (e.g. Text), the issue does not occur.

3. Expected behavior
The AL Language Server should:
Show a compilation or semantic error indicating that Label is not a valid parameter type and continue running without crashing

4. Actual behavior

Stacktrace.txt

5. Versions:

  • AL Language: 16.2.2053416

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions