'Add method' action does not work on Windows

Answered

I'm working on IDEA 2018.3.5 with PHP plugin installed both on Mac and Windows 10. I can use 'Add method' action initiated with Opt+Enter if non-declared method reference is underlined with yellow wavy line. Same project being opened on Windows in the same version of IDEA does not let me to create non-declared method with the same action since it's just not underlined. Does anybody know which settings i should check to enable non-declared members to be inspected properly?

6 comments
Comment actions Permalink

Could you please provide a coded example, where the issue can be reproduced? It works for me in Java.

0
Comment actions Permalink

If Alt+Enter on SampleClass::openConnection() IDEA just suggests to "Generate PHPDoc for function". I would like to have "Add method" option exactly as I have it on macOS X.

 

0
Comment actions Permalink

Is it possible that you have disabled "Undefined method" inspection in "File | Settings | Editor | Inspections - PHP - Undefined"?

0
Comment actions Permalink

Looks like all inspection types are enabled

0
Comment actions Permalink

Make sure you don't have Power Save mode enabled in the File menu and inspections are not disabled for this specific file (check the status bar Hector face icon).

0
Comment actions Permalink

First I checked Hector face, inspections were/are enabled. Power Save Mode was disabled. But after I enabled it and disabled again inspection started to work.

0

Please sign in to leave a comment.