Verified on latest main
PHPantom version / commit
phpantom_lsp 06a6417
Installation method
Built from source
Operating system
macOS aarch64 (Apple Silicon)
Editor
Zed
Bug description
Basically it doesn't work, phpcs reports errors, phpcbf generates temporary file, nothing else.
Steps to reproduce
- Open PHP project with Zed
- Configure the phpcs/phpcbf (standard) in .phpantom.toml (
phpantom_lsp init)
- Restart the server in Zed
- Edit/Save the file
Error output or panic trace
.phpantom.toml
#:schema https://github.com/PHPantom-dev/phpantom_lsp/raw/main/config-schema.json
# PHPantom configuration: only add settings you want to override.
# Editors with TOML schema support (Zed, VS Code + Even Better TOML, Neovim)
# provide autocomplete and hover documentation for all available options.
# Full reference: https://phpantom-dev.github.io/phpantom_lsp/configuration/
[phpcs]
command = "/Users/sergio/.config/composer/vendor/bin/phpcs"
standard = "WordPress"
[formatting]
phpcbf = "/Users/sergio/.config/composer/vendor/bin/phpcbf"
Additional context
The phpcs is in global scope; composer global require --dev kallookoo/phpcs-rules
The phpcs-rules include the phpcs and WordPress rules.
The Zed settings.json settings:
"languages": {
"PHP": {
"language_servers": [
"phpantom",
"!intelephense",
"!phpactor",
"!phptools",
"...",
],
"formatter": "language_server",
"format_on_save": "on",
},
},
"lsp": {
"phpantom": {
"binary": {
"path": "/Users/sergio/.cargo/bin/phpantom_lsp",
"ignore_system_version": false
},
},
}
The phpantom is installed via; cargo install --git https://github.com/PHPantom-dev/phpantom_lsp --branch main phpantom_lsp
Verified on latest main
mainbranch.PHPantom version / commit
phpantom_lsp 06a6417
Installation method
Built from source
Operating system
macOS aarch64 (Apple Silicon)
Editor
Zed
Bug description
Basically it doesn't work, phpcs reports errors, phpcbf generates temporary file, nothing else.
Steps to reproduce
phpantom_lsp init)Error output or panic trace
.phpantom.toml
Additional context
The phpcs is in global scope;
composer global require --dev kallookoo/phpcs-rulesThe phpcs-rules include the phpcs and WordPress rules.
The Zed settings.json settings:
The phpantom is installed via;
cargo install --git https://github.com/PHPantom-dev/phpantom_lsp --branch main phpantom_lsp