-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installed PHP extension, but cannot use go to definition #16009
Comments
Hi @onhao! Are you using phpactor or intelephense? If intelephense, do you have an intelephense license? 'Goto Type Definition' is a premium feature and requires an active license in Can you restart Zed, attempt again and see if there's anything notable in your Zed log (download time, language server failed to start, etc)? See also: Zed PHP Language Docs |
When I first installed Zed, it was possible to display the parameters and returns provided by the defined function or method name by moving the mouse over it, but now it doesn't work either |
zed: open log 2024-08-10T14:33:21.194645779+08:00 [ERROR] server stderr: Some("") Caused by: |
return message:
sudo php ./phpactor.phar language-server
PHP Fatal error: Uncaught PharException: internal corruption of phar "/home/wuhao/.local/share/zed/extensions/work/php/phpactor-2024.06.30.0/phpactor.phar" (truncated manifest header) in /home/wuhao/.local/share/zed/extensions/work/php/phpactor-2024.06.30.0/phpactor.phar:10
Stack trace:
#0 /home/wuhao/.local/share/zed/extensions/work/php/phpactor-2024.06.30.0/phpactor.phar(10): Phar::mapPhar()
#1 {main}
thrown in /home/wuhao/.local/share/zed/extensions/work/php/phpactor-2024.06.30.0/phpactor.phar on line 10
At 2024-08-12 22:18:05, "Peter Tripp" ***@***.***> wrote:
phpactor returning an error and printing something to stderr, but a bug on our end if presenting it from printing.
2024-08-10T14:33:22.194861562+08:00 [INFO] starting language server "phpactor", path: "/home/wuhao/www/new", id: 5
2024-08-10T14:33:22.207173193+08:00 [INFO] starting language server. binary path: "/home/wuhao/.local/share/zed/extensions/work/php/phpactor-2024.06.30.0/phpactor.phar", working directory: "/home/wuhao/www/new", args: ["language-server"]
2024-08-10T14:33:22.207345688+08:00 [ERROR] failed to start language server "phpactor": failed to spawn command. path: "/home/wuhao/.local/share/zed/extensions/work/php/phpactor-2024.06.30.0/phpactor.phar", working directory: "/home/wuhao/www/new", args: ["language-server"]
2024-08-10T14:33:22.207360899+08:00 [ERROR] server stderr: Some("")
I'll prep a patch, but in the meantime could you try opening a terminal and running the following to see what the error might be?
cd /home/wuhao/www/new
/home/wuhao/.local/share/zed/extensions/work/php/phpactor-2024.06.30.0/phpactor.phar language-server
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
sudo php ./phpactor.phar language-server |
Check for existing issues
Describe the bug / provide steps to reproduce it
Environment
The installation of Ubuntu 24.04 deb has now been automatically upgraded to 0.147.2. This feature was available during the initial installation
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: