Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
728
stars
241
forks
source link
AL0570: The symbol X results in the same translation ID #6658
1. Describe the bug
I've created an overload (I had to modify only a parameter, so I duplicated the function and modify only the parameter) and at first sight, no errors were thrown. But when I tried to compile the project it will return me this error:
error AL0570: The symbol 'X' results in the same translation ID as one or more other symbols. Rename symbol to resolve the problem.
Yes I see that the error says "Rename the symbol to solve the issue" but, I don't think that is right solution. Why I must change the name of the symbol if they are in two different procedure (but with the same name)??
2. To Reproduce
Steps to reproduce the behavior:
local procedure Overload(var test: text)
var
myLabel: Label 'AH!';
begin
end;
local procedure Overload(var test: Integer)
var
myLabel: Label 'AH!';
begin
end;
and then compile!
Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
3. Expected behavior
No error thrown, the id must be different because they are different procedures.
4. Actual behavior
A clear and concise description of what happened accompanied by images, animations, or a link to a video showing the issue occurring
Please include the following with each issue:
1. Describe the bug I've created an overload (I had to modify only a parameter, so I duplicated the function and modify only the parameter) and at first sight, no errors were thrown. But when I tried to compile the project it will return me this error: error AL0570: The symbol 'X' results in the same translation ID as one or more other symbols. Rename symbol to resolve the problem.
Yes I see that the error says "Rename the symbol to solve the issue" but, I don't think that is right solution. Why I must change the name of the symbol if they are in two different procedure (but with the same name)??
2. To Reproduce Steps to reproduce the behavior:
and then compile!
Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
3. Expected behavior No error thrown, the id must be different because they are different procedures.
4. Actual behavior A clear and concise description of what happened accompanied by images, animations, or a link to a video showing the issue occurring
5. Versions:
AL Language: Name: AL Language Id: ms-dynamics-smb.al Description: AL development tools for Dynamics 365 Business Central Version: 7.1.453917 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al
Visual Studio Code: Version: 1.56.2 (user setup) Commit: 054a9295330880ed74ceaedda236253b4f39a335 Date: 2021-05-12T17:13:13.157Z (3 wks ago) Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Windows_NT x64 10.0.18363
Business Central:
List of Visual Studio Code extensions that you have installed:
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