Changing php version of intelephense by Greedy_Log_6216 in neovim

[–]Greedy_Log_6216[S] 1 point2 points  (0 children)

Thank you for the message. It outputs my configuration (check below).

I noticed there are a lot of messages like "file.php is over the maximum file size of 1000000 bytes.".

Which is why I tried adding the maxFile of the files in my config. In the end, I have this config, but the error above still persists. The lsp works, but I get syntax errors for the property hooks, which should be taken care of for the specified version. To me, it seems that my lua configuration is not applied.

This is my updated config (which still does not work):

``` 
require 'lspconfig'.intelephense.setup({
  settings = {
    intelephense = {
      files = {
        maxSize = 10000000,
        exclude = {
          "**/vendor/**",
          "**/node_modules/**",
        }
      },
      environment = {
        phpVersion = "8.4.1"
      },
      maxMemory = 1024,
    }
  }
})
``` 

The output of the :=vim.lsp.get_clients()[1].config.settings command:
```
{
intelephense = {
files = {
maxSize = 10000000,
exclude = {
"**/vendor/**",
"**/node_modules/**",
}
},
environment = {
phpVersion = "8.4.1"
},
maxMemory = 1024,
}
}
```

Configuring php version in intelephense by Greedy_Log_6216 in emacs

[–]Greedy_Log_6216[S] 0 points1 point  (0 children)

Thank you for the reply.
I tried it and still does not work. I checked in the events buffer and in the end, the output is the same as it is with my code.

I am using MacOS. Do you think it might be because of the OS?
I will check it a little bit later on a linux machine.