iljapostnovs / ui5plugin-linter

Linter for UI5 projects
Apache License 2.0
12 stars 3 forks source link

Bug: XML View can't find controller extension methods #150

Open ClementRoyer opened 2 months ago

ClementRoyer commented 2 months ago

Describe the bug When using a controller extension method in an XML View I receive this error:

Event handler "HistoryView.onItemPress" not found in "xx.xxx.xx.xxxx.Customer.controller.App".TagAttributeLinter(UI5plugin)

Is it simply not supported or is this a bug ?

To Reproduce Steps to reproduce the behaviour:

  1. Create blank application
  2. Create an extension controller
  3. Add this extension controller to your "App.controller.js"
  4. In your App.view.xml, use your controller extension method in press event
  5. See error

Screenshots

Error: image

App.controller.js image

Base.controller.js image

HistoryView.js image