vscode-php-intellisense: Not working although following the guide

I’m probably missing something out but I just basically installed the extension by following the guide and it’s not working at all, I don’t see any of the features just like in #170 . I’d appreciate if someone could take a look over it:

> php -v
PHP 7.1.10 (cli) (built: Sep 26 2017 20:07:27) ( ZTS MSVC14 (Visual C++ 2015) x86 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
  • I installed this extension directly within VS Code
  • I set php.executablePath correctly
  • php.suggest.basic set to false
  • I restarted VS Code but I can’t seem to make use of any features. The dev console doesn’t show any errors

That’s basically everything the readme is telling me. What else could I have missed? Is there anything missing in the guide by any chance or is it just me?

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Reactions: 4
  • Comments: 26 (7 by maintainers)

Most upvoted comments

Same behavior for me, I keep checking back on this addon but it has never been able to work for me with a large laravel project, I get the message in the output channel

[Info  - 11:37:33] All 17292 PHP files parsed in 1098 seconds. 580 MiB allocated.

But I get no code/namespace/class completion… nothing… back to the other plugin

@felixfbecker and others, I was able to resolve the issue 🎉

I installed the extension on my work device earlier today and it was working there. I had some thoughts and I just downloaded a fresh version of PHP 7 on my home device (that device which wasn’t able to run the extension) and placed it in the same partition where VS Code is currently installed on. I went to the user settings and inserted

"php.validate.executablePath": "C:\\Program Files\\PHP\\7.0\\php.exe",
"php.executablePath": "C:\\Program Files\\PHP\\7.0\\php.exe",

as described in the guide. Don’t forget to include the executable file name, too. Luckily, it’s finally working and developing in PHP is actually fun again.