AL icon indicating copy to clipboard operation
AL copied to clipboard

AL includes symbols from apps not in the .alpackages folder

Open lvlaanderen opened this issue 2 years ago • 5 comments

  • AL Extension Version: v9.4.663067

Screenshot 2022-08-12 110531

The app files in the main app folder are loaded as symbols and causes it to complain objects already exist in the symbols when they do not in the .alpackages folder

lvlaanderen avatar Aug 12 '22 10:08 lvlaanderen

This seems to refer to the current version listed in the app.json

lvlaanderen avatar Aug 12 '22 10:08 lvlaanderen

Can you share what's the value (if any) of the setting al.packageCachePath in your settings.json?

thloke avatar Aug 15 '22 02:08 thloke

That value is not set

lvlaanderen avatar Aug 15 '22 08:08 lvlaanderen

Can you share the contents of your settings.json for both the project and VSCode level? Or share a workspace which reproduces this issue.

thloke avatar Sep 01 '22 09:09 thloke

This a typical settings.json { "CRS.AlSubFolderName":"Source", "CRS.ObjectNameSuffix":" ", "CRS.FileNamePattern":"<ObjectTypeShortUpper><ObjectId>.<ObjectNameShort>.al", "CRS.FileNamePatternExtensions":"<ObjectTypeShortUpper><BaseId>.EXT<ObjectId>.<ObjectNameShort>.al", "CRS.FileNamePatternPageCustomizations":"<ObjectTypeShortUpper><BaseId>.EXT<ObjectId>.<ObjectNameShort>.al", "al.enableCodeAnalysis":true, "al.enableCodeActions":true, "al.ruleSetPath":".codeAnalysis\ruleset.json", "al.codeAnalyzers":["${CodeCop}", "${PerTenantExtensionCop}", "${UICop}"], "alVarHelper.ignoreALSuffix":"", "editor.minimap.scale":3 }

lvlaanderen avatar Sep 13 '22 13:09 lvlaanderen

@lvlaanderen Are you still experiencing this issue? Can you also share all the settings you have defined on a user/workspace/project level?

qutreson avatar Dec 29 '22 09:12 qutreson

We cannot reproduce this internally. If this is still happening on the latest version of the AL Extension for VSCode, please re-open and provide all relevant settings.json files.

thloke avatar Jan 10 '23 08:01 thloke