AL icon indicating copy to clipboard operation
AL copied to clipboard

idRanges property

Open nmahate opened this issue 7 years ago • 6 comments

Describe the bug Compiler doesnt accept the declaring of the idRanges property on the app.json file, to support multiple id ranges. I've used the example from the following online documentation:

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-json-files

To Reproduce

  1. Go to app.json
  2. Add property for idRanges as "idRanges": {"from": 50100,"to": 50200},{"from": 50202,"to": 50300}

Expected behavior No compiler issue

Screenshots image

Versions:

  • AL Langauge: 2.1.6.9331
  • Business Central: W1 13.2 (26556)

nmahate avatar Dec 20 '18 10:12 nmahate

The compiler issue was resolved by including square brackets, as follows "idRanges": [{"from": 50100,"to": 50200},{"from": 50202,"to": 50300}]

However, cannot publish the app due to the following error... error AS0014: The project manifest must contain the allocated identifier range.

nmahate avatar Dec 20 '18 11:12 nmahate

Hi @nmahate ! If you enter the name of the property "idRanges": and then use Ctrl+Space, Intellisense will guide you towards the right syntax. AS0014 is an AppSourceCop error. Are you creating an extension for AppSource?

atoader avatar Dec 20 '18 12:12 atoader

Hi. I'm publishing it to a local container. But we intend for the app to go onto appsource, so I've kept the AppSourceCop analyzer on.

The id's in the example were just to display the initial problem with the compiler. I am using a range intended for AppSource.

nmahate avatar Dec 20 '18 12:12 nmahate

This looks like a bug in the analyzer. I will mark it for investigation.

atoader avatar Dec 20 '18 12:12 atoader

Hi, I have a similar problem but the compiler is reporting an issue with the property.

image

VSIX is 2.1.69331

deano808 avatar Jan 09 '19 14:01 deano808

Hi, this issue is not reproducing on our master branch. In runtime 3.0 this issue is resolved, which is our spring release. Please work around the issue for now and make sure to update your extension when our new version is out, and this issue should be resolved. If you are a BC customer and need this feature activated sooner, please open a support ticket and we can consider to make it available for previous runtime versions.

Thanks!

Johan

ghost avatar Feb 05 '19 10:02 ghost