-
Notifications
You must be signed in to change notification settings - Fork 272
Description
Please include the following with each issue:
1. Describe the bug
Hovering over variables surrounded by quotes does not show the variable value. Only variables without quotes at all are working.
This issue has been adressed multiple times already and in #5640 (comment) it is said that this has been resolved. But I still do have this issue which is quite annoying as it's way harder to debug when you have to add everything to the watch list.
Related issues:
- Debugger 'Out of Scope' value when hovering a variable with a value #5640
- Debugging: Hovering over variables is not working with quoted variable names #7226
- Debugger crashes entirely if we're hovering over a variable #7225
- Debugging not working #7228
2. To Reproduce
// Welcome to your new AL extension.
// Remember that object names and IDs should be unique across all extensions.
// AL snippets start with t*, like tpageext - give them a try and happy coding!
namespace DefaultPublisher.ALProject116;
using Microsoft.Sales.Customer;
pageextension 50101 CustomerListExt2 extends "Customer List"
{
trigger OnOpenPage();
var
"My Variable", "MyVariable2", MyVariable3 : Text;
Customer: Record Customer;
"Sales Line": Record "Sales Line";
begin
"My Variable" := 'Hello world';
"MyVariable2" := 'Hello world';
MyVariable3 := 'Hello world';
Customer.Name := 'Hello world';
Customer."Name 2" := 'Hello world';
"Sales Line".Description := 'Hello world';
end;
}As soon as the variable, the record or the field contains quotes, the value cannot be shown anymore.
al-vsix-out-of-scope-bug.mp4
3. Expected behavior
To be able to see the variable value.
4. Actual behavior
Hovering shows "Out of Scope"
5. Versions:
- AL Language: 17.0.1998613 (pre-release)
- Visual Studio Code: Version: 1.101.2 (user setup)
- Business Central:
- Version: DE Business Central 27.2 (Plattform 27.0.42799.0 + Anwendung 27.2.42879.0)
- Version: DE Business Central 28.0 (Plattform 28.0.43888.0 + Anwendung 28.0.43928.0)
- List of Visual Studio Code extensions that you have installed: []
- Operating System:
- Windows
- Linux
- MacOS
Final Checklist
Please remember to do the following:
-
Search the issue repository to ensure you are reporting a new issue
-
Reproduce the issue after disabling all extensions except the AL Language extension
-
Simplify your code around the issue to better isolate the problem