microsoft / AL

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
732 stars 243 forks source link

Not possible to compile BC14 extensions with version 12 or newer of the compiler #7579

Closed mfalk118 closed 10 months ago

mfalk118 commented 10 months ago

1. Describe the bug

Since version 12 BC14 development with procedures with record parameters is not possible. It will fail on all record parameters to procedures saying:

"Argument 1: cannot convert from 'Record "Company Information" temporary' to 'MissingTypeSymbol'",

Switching to version 11.7 solves the issue, however we prefer to run at the newest version

2. To Reproduce Download Symbols from BC 14 with AL compiler 12 or newer

Create one extension, lets call it Extension A. Create a codeunit with a procedure that takes a record parameter

Then in another extension create a call like:

trigger OnAction() var TempBlob: Record "Company Information" temporary; FileMgt: Codeunit FileMgtHLPVPE; ImportFileLbl: Label 'Import Xml File'; begin FileMgt.BLOBImportWithFilter(TempBlob, ImportFileLbl, 'Request.xml', 'Xml Files (.xml)|.xml'); end;

It will fail on the bold line with "Argument 1: cannot convert from 'Record "Company Information" temporary' to 'MissingTypeSymbol'",

If i compile extension A with version 11.7, i can use version 12 or newer in extension B

3. Expected behavior Compiler working and compiling the code

4. Actual behavior Errror as described above

5. Versions:

pborring commented 10 months ago

Closing this as duplicate of https://github.com/microsoft/AL/issues/7529