Skip to content

Thoughts on future of PHP completion #3853

@AJenbo

Description

@AJenbo

Describe your idea in details

I’ve been a very happy user of CodeLite for years. Its PHP parser has generally been much faster than other tools I’ve tried. Even though its completion and features were not always industry-leading, they were rarely incorrect, which is more than I can say for some other IDEs such as PhpStorm.

Recently, a coworker who uses Neovim approached me about building a better PHP LSP in Rust than what is currently available (C#, PHP, and JS implementations). Over the past few weeks, I have been working on that:

https://github.com/AJenbo/phpantom_lsp
(CodeLite takes about 900MB RAM (about half is the PHP index) and 20 sec for the project used in the comparison table)

The results have been very promising. I have switched to using it instead of CodeLite’s built-in PHP parser. In my testing, PHPantom provides faster and more accurate completion and go-to-definition than other available PHP tools, with minimal memory usage even on large projects.

Given this, I am wondering whether it still makes sense to continue investing effort in the built-in PHP parsing and completion engine in CodeLite. Would there be interest in integrating PHPantom directly into CodeLite?

If so, I would be happy to focus my efforts on improving LSP support further. This approach could also simplify the PHP plugin considerably, potentially reducing it to mainly the Xdebug integration.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions