iljapostnovs / VSCodeUI5Plugin

Visual Studio Code Extension for UI5 Development
Apache License 2.0
61 stars 6 forks source link

Invalid attribute name TagAttributeLinter(UI5plugin) on all properties #289

Closed mateusz-matyjaszczyk closed 1 year ago

mateusz-matyjaszczyk commented 1 year ago

Describe the bug During any development I am always having "Invalid attribute name (X) TagAttributeLinter(UI5plugin)" on all properties of all controls even tho the code works just fine. This is happening on all of my projects so I expect it to be invalid setting or something I am doing wrong rather than extension problem.

To Reproduce Steps to reproduce the behavior: I don't really know how to make anyone reproduce this issue.

Expected behavior Working as described by the author.

Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2023-01-28 at 01 01 21 Screenshot 2023-01-28 at 01 01 26

Not sure if this is anyhow connected but during VS Code opening I am presented with following error: Screenshot 2023-01-28 at 01 07 28

iljapostnovs commented 1 year ago

Hi, It might be connected, UI5 library metadata failed to load. Please try to clear cache F1 -> UI5: Clear cache

mateusz-matyjaszczyk commented 1 year ago

Hey, it did worked out but only with default version - 1.84.28. When I changed it to something more relevant (1.108.4 as it is the long maintenance version announced) I am getting the same error as above: Screenshot 2023-01-28 at 22 25 52

iljapostnovs commented 1 year ago

Try to clear cache until it works. Worked for the third time for me. I have no idea why ui5.sap.com sometimes responds with broken JSON, and sometimes it's fine. Not sure how to fix it. Now after I tried for 30+ times I can't even reproduce the issue anymore. Meanwhile I noticed that Clear Cache command fails if UI5 lib metadata loading failed, fixed that with v0.15.8

mateusz-matyjaszczyk commented 1 year ago

Issue has been resolved with your fix. I've tried multiple times before but I noticed that after initial load failed I can't clear cache etc (basically nothing in connection to this extension worked). After your fix I am able to clear cache thus refresh pulling the library so it does resolve the issue. Thanks for help and great work on the extension itself! (PS. missing your blogs that describe the extension - if I'm not mistaken only 2/3 out of few more were written).