ui5-language-assistant icon indicating copy to clipboard operation
ui5-language-assistant copied to clipboard

Getting errors for duplicate IDs across different view files

Open patakihara opened this issue 5 months ago • 6 comments

I'm now getting a highlighted error when using the same IDs across different view files. For instance, in the file ShopItemListReport.view.xml:

Select a unique ID. The current "dynamicPageId" ID has already been used. UI5 Language Assistant
ShopPackageListReport.view.xml(13, 12): An identical ID is also used here.

I have some generic controller classes that I reuse across similar views, and they depend on those views having controls with particular IDs, so this would break many of my implementations. This "error" wasn't being highlighted before, and I'm not exactly sure what caused it to be highlighted. I first noticed when updating my project's dependencies, but checking out an earlier branch hasn't prevented it from showing up again.

Is there a way to disable this check?

Someone else has come up with this issue recently and reported it here: iljapostnovs/VSCodeUI5Plugin#422

This may also be related to #646

patakihara avatar Sep 07 '24 10:09 patakihara