laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
168 stars 7 forks source link

[Bug]: No autocompletion for validation (Form Request #544

Open SirMishaa opened 2 years ago

SirMishaa commented 2 years ago

Bug description

Hello,

Like you can I see, I have no autocompletion for my class GetQuoteRequest :( I'm a just on a simple Laravel project https://github.com/SirMishaa/yago-challenge

Am I doing something wrong? image

Plugin version

5.3.1.221

Operating system

Linux

Steps to reproduce

No response

Relevant log output

No response

SirMishaa commented 2 years ago

Nvm, it works now... I just needed to write a bit... (like the first two rules of validation, and now I have autocomplete... weird image

adelf commented 2 years ago

That's strange. Actually, I have some reports about the same behavior - "floating" completion for validation rules in FormRequests... but I still can't reproduce this bug.

Could you share your PhpStorm logs? main menu - Help - Show log in Explorer?

SirMishaa commented 2 years ago

idea.log

Here you go And yes, sometime you have autocompletion, sometime not, it's a bit weird.

Allgoodnamesargone commented 2 years ago

Now this is happening on my side ALL the time

hexlay commented 1 year ago

I have the same problem

KKJoshLo commented 1 year ago

Same on me, and I've never seen the autocompletion of validation.

adelf commented 1 year ago

I Couldn't reproduce the issue, but I hope I found the reason. Will try to fix it soon.

adelf commented 1 year ago

Please try the new 6.2.3 version.

Allgoodnamesargone commented 1 year ago

Please try the new 6.2.3 version.

It's not fixed.

GringoDotDev commented 1 year ago

Same here. Version 6.2.4.223.

To be precise - it does autocomplete the rules (min, max, numeric, etc.). It does not autocomplete the field names (firstName, etc.).

heychazza commented 1 year ago

Same here. Version 6.2.4.223.

To be precise - it does autocomplete the rules (min, max, numeric, etc.). It does not autocomplete the field names (firstName, etc.).

Just faced this, i'm unable to auto-complete the form request fields in my controller. Will this ever be a feature? @adelf

adelf commented 1 year ago

@heychazza you mean "$request->firstName" completion?

heychazza commented 1 year ago

@heychazza you mean "$request->firstName" completion?

Yep exactly, if you’ve got a form request, then in your controller try to access a field