arnaud-lb / vim-php-namespace

PHP namespace support for VIM. Types "use" statements for you
256 stars 29 forks source link

Failed to insert use statement #41

Closed vhamed closed 5 years ago

vhamed commented 5 years ago

When I enter the number of the corespondent class and press enter this error message appears screenshot from 2019-02-05 14-53-27

arnaud-lb commented 5 years ago

Hi @abdesselame17

The plugin tries to find a class or function declaration in the file (e.g. class Foo or function Foo), by executing these two regexes:

If none match, we get this error.

Could you show the content of the app/Task.php file ?

vhamed commented 5 years ago

I was wrong because I typed 1 instead of 2, there is no method called task in the TasksController class. thnx @arnaud-lb