Vscode-intelephense: Intelephense doesn't recognize wordpress global functions

Created on 14 Jul 2020  路  5Comments  路  Source: bmewburn/vscode-intelephense

Screenshot from 2020-07-14 09-49-34

Platform and version
OS: Linux mint - 20
VSCode: 1.47.0
Intelephense: 1.5.1 and 1.5.2

All 5 comments

Same issue here, but on windows/sublime-text. It was working until a couple of days ago..

How are you including the wordpress definitions in the workspace? There was a change in 1.5 where workspace folders are now treated as isolated from each other and must be linked via intelephense.environment.includePaths.

So to get wp symbols in 1.5 either add wordpress to intelephense.stubs or use intelephense.environment.includePaths to include an external folder container wordpress definitions.

I have one root folder which contains all the code ( including wordpress). So 2 subfolders of the root are not sharing symbols? Is not this going against the workspace concept?

@Kilbourne that setup should be ok. Are you able to delete the intelephense cache and see if this fixes it?

It worked for me... thanks
Edit: the problem reappeared after a while

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swashata picture swashata  路  3Comments

umpirsky picture umpirsky  路  4Comments

Ilyes512 picture Ilyes512  路  3Comments

zlianon picture zlianon  路  3Comments

aleksandervines picture aleksandervines  路  3Comments