I am interested in finding a way to pull in the appropriate "use ..." namespace statement to a PHP file I am editing when adding a new class to the code.
From what I understand, PHPstorm does that very nicely and I am curious if this can be replicated in a geany plugin and how much work it might be? Also, if an existing geany plugin could be used as a starting point, perhaps geanyctags??
I did use the plugin ClassBuilder to create a customized Symfony ClassBuilder for my own use so I have some, albeit quite limited, experience in modifying an existing plugin.
Any thoughts?
Hi,
On 22.01.25 03:28, H via Users wrote:
I am interested in finding a way to pull in the appropriate "use ..." namespace statement to a PHP file I am editing when adding a new class to the code.
From what I understand, PHPstorm does that very nicely and I am curious if this can be replicated in a geany plugin and how much work it might be? Also, if an existing geany plugin could be used as a starting point, perhaps geanyctags??
I did use the plugin ClassBuilder to create a customized Symfony ClassBuilder for my own use so I have some, albeit quite limited, experience in modifying an existing plugin.
Any thoughts?
implementing this manually is probably quite some work and in the last nearly 20 years nobody seemed willing to do this.
BUT there is a great new plugin which can integrate existing language servers using the language server protocol. Find the plugin at https://github.com/techee/geany-lsp/, it will be included in the Geany-Plugins collection soon, too.
Using the plugin, you can configure it to use a PHP language server (you need to install it seperately) and if the language server supports adding namespace statements, you can easily use this via the plugin.
Regards, Enrico
On January 26, 2025 8:53:30 AM GMT-05:00, "Enrico Tröger via Users" users@lists.geany.org wrote:
Hi,
On 22.01.25 03:28, H via Users wrote:
I am interested in finding a way to pull in the appropriate "use ..."
namespace statement to a PHP file I am editing when adding a new class to the code.
From what I understand, PHPstorm does that very nicely and I am
curious if this can be replicated in a geany plugin and how much work it might be? Also, if an existing geany plugin could be used as a starting point, perhaps geanyctags??
I did use the plugin ClassBuilder to create a customized Symfony
ClassBuilder for my own use so I have some, albeit quite limited, experience in modifying an existing plugin.
Any thoughts?
implementing this manually is probably quite some work and in the last nearly 20 years nobody seemed willing to do this.
BUT there is a great new plugin which can integrate existing language servers using the language server protocol. Find the plugin at https://github.com/techee/geany-lsp/, it will be included in the Geany-Plugins collection soon, too.
Using the plugin, you can configure it to use a PHP language server (you need to install it seperately) and if the language server supports adding namespace statements, you can easily use this via the plugin.
Regards, Enrico
This sounds interesting although at this time I am not sure how it works and I have to read up on it.
What's the original use case for this new plugin?
On January 26, 2025 6:21:10 PM GMT-05:00, H via Users users@lists.geany.org wrote:
On January 26, 2025 8:53:30 AM GMT-05:00, "Enrico Tröger via Users" users@lists.geany.org wrote:
Hi,
On 22.01.25 03:28, H via Users wrote:
I am interested in finding a way to pull in the appropriate "use
..."
namespace statement to a PHP file I am editing when adding a new class to the code.
From what I understand, PHPstorm does that very nicely and I am
curious if this can be replicated in a geany plugin and how much work it might be? Also, if an existing geany plugin could be used as a starting point, perhaps geanyctags??
I did use the plugin ClassBuilder to create a customized Symfony
ClassBuilder for my own use so I have some, albeit quite limited, experience in modifying an existing plugin.
Any thoughts?
implementing this manually is probably quite some work and in the last
nearly 20 years nobody seemed willing to do this.
BUT there is a great new plugin which can integrate existing language servers using the language server protocol. Find the plugin at https://github.com/techee/geany-lsp/, it will be included in the Geany-Plugins collection soon, too.
Using the plugin, you can configure it to use a PHP language server (you need to install it seperately) and if the language server supports adding namespace statements, you can easily use this via the plugin.
Regards, Enrico
This sounds interesting although at this time I am not sure how it works and I have to read up on it.
What's the original use case for this new plugin? _______________________________________________ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
I did some reading and it looks very useful. Quick googling suggests there are multiple php language servers, including php-language-server on GitHub developed by Felix Becker. Would this be a good one to run or should i look at another language server for php?
Hi,
I did some reading and it looks very useful. Quick googling suggests there are multiple php language servers, including php-language-server on GitHub developed by Felix Becker. Would this be a good one to run or should i look at another language server for php?
I don't know any PHP since version 3 or 4 and so you don't want my advice on anything PHP related :).
I'd say either you just try the different language servers until you are happy and/or check the net what's used most by others.
Regards, Enrico
On January 27, 2025 5:14:16 PM GMT-05:00, "Enrico Tröger via Users" users@lists.geany.org wrote:
Hi,
I did some reading and it looks very useful. Quick googling suggests
there are multiple php language servers, including php-language-server on GitHub developed by Felix Becker. Would this be a good one to run or should i look at another language server for php?
I don't know any PHP since version 3 or 4 and so you don't want my advice on anything PHP related :).
I'd say either you just try the different language servers until you are happy and/or check the net what's used most by others.
Regards, Enrico
Noted. Would anyone with experience with a php language server like to weigh in with an opinion?
Running "php -S localhost:8081" in the directory used to work. It's been a little bit since I've fiddled with PHP.
Snippet from my dotfile: alias serverPHP='php -S localhost:8081'
On Mon, Jan 27, 2025 at 5:04 PM H via Users users@lists.geany.org wrote:
On January 27, 2025 5:14:16 PM GMT-05:00, "Enrico Tröger via Users" < users@lists.geany.org> wrote:
Hi,
I did some reading and it looks very useful. Quick googling suggests
there are multiple php language servers, including php-language-server on GitHub developed by Felix Becker. Would this be a good one to run or should i look at another language server for php?
I don't know any PHP since version 3 or 4 and so you don't want my advice on anything PHP related :).
I'd say either you just try the different language servers until you are happy and/or check the net what's used most by others.
Regards, Enrico
Noted. Would anyone with experience with a php language server like to weigh in with an opinion? _______________________________________________ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
On January 27, 2025 6:28:09 PM GMT-05:00, Oliver via Users users@lists.geany.org wrote:
Running "php -S localhost:8081" in the directory used to work. It's been a little bit since I've fiddled with PHP.
Snippet from my dotfile: alias serverPHP='php -S localhost:8081'
On Mon, Jan 27, 2025 at 5:04 PM H via Users users@lists.geany.org wrote:
On January 27, 2025 5:14:16 PM GMT-05:00, "Enrico Tröger via Users" < users@lists.geany.org> wrote:
Hi,
I did some reading and it looks very useful. Quick googling
suggests
there are multiple php language servers, including
php-language-server
on GitHub developed by Felix Becker. Would this be a good one to run
or
should i look at another language server for php?
I don't know any PHP since version 3 or 4 and so you don't want my advice on anything PHP related :).
I'd say either you just try the different language servers until you are happy and/or check the net what's used most by others.
Regards, Enrico
Noted. Would anyone with experience with a php language server like
to
weigh in with an opinion? _______________________________________________ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
That would be a webserver. Albeit useful in itself, not the php language server I am looking for. For an example of the latter, see https://GitHub.com/felixfbecker/php-language-server.