Is php support quite limited or am I using it incorrectly? #4764
Replies: 2 comments
-
A friend of mine scold me for the way I opened this discussion. He told me I shouldn't spec any support if I don't give any information about my init.el or description of the version I'm using (which I will), but I just want to clarify that everything described in the guide here https://emacs-lsp.github.io/lsp-mode/tutorials/php-guide/ works as described, so I think it's not that I need to trouble shoot something or that I was promise something that was not delivered. Also I want to say that I deeply appreciate what works and the work that was made to it. But there are certain things that are crucial to have in my work flow, and seeing how easy it seems to use phpactor's CLI, I think it should be feasible to make them work with emacs, not by my be unfortunately but I'm sure my friend is an expert and might help me out. This is what my friend asked me to share: 1.- Emacs version: GNU Emacs 29.3 (build 1, aarch64-unknown-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-04-01, modified by Debian 2.- This version was installed using apt on Ubuntu 24.04 3.- I'm attaching my init.el init.zip 4.- I want to use emacs as a php IDE. 5.- My question is: Say I want to rename a class in such a way that the file name is also change and that every mention on the rest of the project is updated. Similar to what is mentioned here https://phpactor.readthedocs.io/en/master/reference/refactorings.html#class-move I tried lsp-rename but unfortunately that didn't worked. I'm using emacs inside a Laravel docker image (which include php8.3, composer and npm) so I'm using emacs in terminal instead of the GUI. I hope this help out were I'm coming from. Thank you. |
Beta Was this translation helpful? Give feedback.
-
OK. My bad, lsp-mode was being very clear of what was happening in the message buffer: LSP :: There are no file path candidates ... ClassMover/ClassRenamer Meaning, it is not that lsp-mode doesn't support Class Move, but my sorry ass that din´t understand what it was talking about. My friend did tell me I should look for any error messages, and I should probably had share it here too. I'm attaching it in case someone is interested. But I'm closing this discussion. I hope I didn't waist anyone's time, but I appreciate up hand any attention anyone might have given to this issue. I was feeling frustrated and I didn't know where to go. Thank you. |
Beta Was this translation helpful? Give feedback.
-
I followed https://emacs-lsp.github.io/lsp-mode/tutorials/php-guide/ guide to use lsp-mode with phpactor, and I noticed that phpactor has many functionalities that can be found here https://phpactor.readthedocs.io/en/master/reference/refactorings.html that doesn't seem to be translated to lsp-mode. For instance the possibility of moving classes.
I've been wondering if I'm doing something wrong. Using M-x I was hoping I could find some function called "move-class" or something.
The aforementioned phpactor's feature list seem to imply that it's VIM plugin does work with this. Am I looking at it wrongly?
Thank you for any patience you can spare me. I'm really new to emacs.
Beta Was this translation helpful? Give feedback.
All reactions