vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

Intelephense server create empty "intelephense" directory in $HOME

Open zlianon opened this issue 5 years ago • 8 comments

zlianon avatar Apr 29 '20 16:04 zlianon

Are you using vscode or another client?

bmewburn avatar May 01 '20 05:05 bmewburn

@bmewburn coc.nvim.

zlianon avatar May 01 '20 07:05 zlianon

Webp net-gifmaker

zlianon avatar May 01 '20 12:05 zlianon

Hi, is there any (initialization) options to make this directory path custom ? I use this directory to put my license key but also want my home directory look clean like $HOME/.intelephense.

garypippi avatar Jan 27 '21 19:01 garypippi

This still seems to be an issue. Would happily make the changes if I knew where to look.

AlexSWall avatar Aug 14 '21 16:08 AlexSWall

This still is an issue today. Using nvim 0.7.0 and intelephense 1.8.2

sean-hale-dev avatar Apr 27 '22 16:04 sean-hale-dev

As a workaround, you can pass a different HOME to intelephense. With neovim:

lspconfig.intelephense.setup{
    cmd = { 'env', 'HOME=/tmp', 'intelephense', '--stdio' },

guidocella avatar Apr 27 '22 17:04 guidocella

@sean-hale-dev, @guidocella

Here is the proper way to configure the storage path with lspconfig and neovim.

require 'lspconfig'.intelephense.setup {
      init_options = {
          globalStoragePath = os.getenv('HOME') .. '/.local/share/intelephense'
      }
}

Wulfre avatar Apr 27 '22 22:04 Wulfre

Is there a place where the shape of the LSP configuration object is documented? It would be helpful to see this in plain while getting set up.

trev-dev avatar Oct 21 '22 19:10 trev-dev

Found stuff:

https://github.com/bmewburn/intelephense-docs/blob/master/installation.md#initialisation-options https://github.com/bmewburn/intelephense-docs/blob/master/gettingStarted.md

trev-dev avatar Oct 21 '22 20:10 trev-dev

@sean-hale-dev, @guidocella

Here is the proper way to configure the storage path with lspconfig and neovim.

require 'lspconfig'.intelephense.setup {
      init_options = {
          globalStoragePath = os.getenv('HOME') .. '/.local/share/intelephense'
      }
}

Thanks this worked for me so far !

MassiGy avatar Sep 03 '23 19:09 MassiGy

Closing, can be configured as above. Defaulting to more appropriate folders tracked in #1866

bmewburn avatar Mar 19 '24 03:03 bmewburn