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
Internal work item: AB#619450
1. Describe the bug
The AL Language Server crashes when defining a procedure that contains XML documentation comments (
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 (
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
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:
Internal work item: AB#619450