sublimelsp / LSP-intelephense

PHP support for Sublime's LSP plugin provided through intelephense.
MIT License
96 stars 3 forks source link

Laravel ide helper support #84

Closed zigi05 closed 1 year ago

zigi05 commented 1 year ago

Laravel-ide-helper not working on Sublime Text 4 with lsp-intelephense installed.

jfcherng commented 1 year ago

please follow https://github.com/bmewburn/vscode-intelephense/issues/2459 as this is not an issue of LSP-intelephense. It looks like it will be fixed in the next release of intelephense.

zigi05 commented 1 year ago

I'm trying to use the helper for facades, but they still don't autocomplete or recognized without error. image

jfcherng commented 1 year ago

v1.0.31 has been released. That may fix this.

zigi05 commented 1 year ago

@jfcherng not working :( image

jfcherng commented 1 year ago

What's the error msg?

zigi05 commented 1 year ago

laravel-ide-helper helps code autocompletion service (in our case lsp-intelephense) discover laravel global facades to enable autocompletion. So in ST4 with LSP-Intelephense the laravel-ide-helper has no effect, the Route facade, for example, is not discover nor autocompleted. Here's the error it has: image

jfcherng commented 1 year ago

Can you try to delete intelephense's cache directory? It's in your home directory with name .intelephense.

jfcherng commented 1 year ago

If the issue persists, I suggest you go to the issue link I post since we can't help here.

zigi05 commented 1 year ago

Can you try to delete intelephense's cache directory? It's in your home directory with name .intelephense.

This helped. Thank you.