iljapostnovs / VSCodeUI5Plugin

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

Linter for controller by reference #414

Closed ClementRoyer closed 3 months ago

ClementRoyer commented 3 months ago

Describe the bug

Reference to an other controller doesn't seems to work.

Screenshots ![image](https://github.com/iljapostnovs/VSCodeUI5Plugin/assets/40796663/9b9497b6-a8e0-41fb-b60a-bd0ec8a5ff0e)

In BAS I have the same thing except when using a ControllerExtension, everything work for it.

How to reproduce

iljapostnovs commented 3 months ago

Hi, thanks for the bug report.

Could you please provide minimal project example in order to reproduce the issue?

ClementRoyer commented 3 months ago

TestApp.zip

Yes, here is a little test app with a basic controller and a controller

iljapostnovs commented 3 months ago

Thanks for the example!

Well, long story short, it is an acorn-loose issue, it parses the project incorrectly because of god only knows which reason. Using prettier as code formatter should solve the issue.

It was kind of described here

If you remove this newline, everything will work: image image

ClementRoyer commented 3 months ago

Oh wow no way, it's working. This bug is insane

Thank you for your time on this !!