PHP intelephense lsp setting not working! #23788
Replies: 23 comments
-
I would love good PHP support in Zed. People don't realise how much PHP is used. |
Beta Was this translation helpful? Give feedback.
-
I need support for PHP in Zed |
Beta Was this translation helpful? Give feedback.
-
Does anyone know zed supports intelephense premium ? |
Beta Was this translation helpful? Give feedback.
-
This is important for me, too. Is it a bug, or are we supposed to set the configuration in some other way? |
Beta Was this translation helpful? Give feedback.
-
Premium should work, although not tested by myself: #6965 |
Beta Was this translation helpful? Give feedback.
-
I have a similar issue,
|
Beta Was this translation helpful? Give feedback.
-
braces format is also not being respected |
Beta Was this translation helpful? Give feedback.
-
Has anyone gotten Wordpress (and WooCommerce / ACF) stubs working in Zed? |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
This is a horrible kludge, but I got intelephense to respect the First I opened the zed log (
That file looked like this:
I added a couple paths to
…then restarted zed and opened some php files with a bunch of wordpress function calls and no error messages from intelephense. Go to definition does not work, but mousing over wp function calls does show me the function’s template. obviously there is some kind of disconnect between defining |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Could you please give a more detailed step-by-step explanation of what you had to do? I've forked Zed, installed Rust and Xcode (per these instructions), modified the files as in your commit, ran |
Beta Was this translation helpful? Give feedback.
-
@federicoangelli Yeah, no problem. Basically, part of the release process, I assume is to build the extensions into a WASM plugin, and those plugins are downloaded from some plugin/release server. I think if you run Zed and install the PHP extension, you should have a Now, the tool that's actually used to build the extension (which was somewhat hard to figure out), is in You should then edit the manifest.json file to have some version greater than Then, you move your built extension into the Do note that I did all this in Linux, and the case might be different for Mac, although the biggest difference might be where the extensions are stored. |
Beta Was this translation helpful? Give feedback.
-
@plugd-in You're right, I've managed to make it work following your steps. On macos, the path to where extensions are installed is |
Beta Was this translation helpful? Give feedback.
-
@osiewicz Any chance of getting @plugd-in’s patch incorporated into the official PHP extension so I can avoid setting up a dev environment to be able to compile Zed? 😄 |
Beta Was this translation helpful? Give feedback.
-
v0.1.2 of the PHP extension now has support for reading the LSP settings from the Zed settings: Here's how the settings should be structured in your {
"lsp": {
"intelephense": {
"settings": {
"stubs": ["foo", "bar"],
"files": {
"maxSize": 1000001
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
this one is working for me:
|
Beta Was this translation helpful? Give feedback.
-
I have opened an issue: |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, this does not work for me. I just want to remove the directories /old/ and _old from code completion. But the setting is simply ignored and classes from _old are displayed. Also includePaths do not work. Too bad, I would have loved to switch to the zed IDE for PHP development. |
Beta Was this translation helpful? Give feedback.
-
For those who need to set up intelephense for Drupal, this is what works for me:
|
Beta Was this translation helpful? Give feedback.
-
This ended up being what I needed, thanks for sharing. |
Beta Was this translation helpful? Give feedback.
-
I'm going to move this to the Zed Language support discussions. If folks have suggestions for incorporate additional configuration suggestions to always happy to PRs to docs/languages/php.md. Thanks! |
Beta Was this translation helpful? Give feedback.
-
According to intelephense docs, i want to set
wordpress
stub insideintelephense.stubs
So, i just configure the editor based on zed docs :
But didn't working !!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions