You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use Mojo helper returning an object and try to call a method on return of the helper, IDEA does not provde method hints for the package, only SUPER::....
Example script to reproduce the issue:
#!/usr/bin/env perlpackageTest1;
use feature qw(signatures);
no warnings qw(experimental::signatures);
subnew($class) {
returnbless {}, $class;
}
subtest($self) {
return'works';
}
1;
packagemain;
use feature qw/say/;
use Mojolicious::Lite -signatures;
use Test1;
helper test=>sub {
state $pkg = Test1->new
};
get '/'=>sub($c) {
say$c->test->... # <- Hint is only SUPER here, while there should be the list of methods from Test1 package
};
app->start;
Environment info:
IntelliJ IDEA 2019.2.1 Build #IC-192.6262.58
Plugin version 2019.2.4
openjdk version "1.8.0_222"
FreeBSD 13.0-CURRENT
The text was updated successfully, but these errors were encountered:
When you use Mojo helper returning an object and try to call a method on return of the helper, IDEA does not provde method hints for the package, only SUPER::....
Example script to reproduce the issue:
Environment info:
The text was updated successfully, but these errors were encountered: