richterger / Perl-LanguageServer

Language Server for Perl
Other
222 stars 53 forks source link

code completion for subroutine calls / variables #84

Open Stevelriemenbill opened 3 years ago

Stevelriemenbill commented 3 years ago

Hi,

first: thanks for your effort. I really like what you've done here!

Is it planned to implement code completion? E.g.: If you type a dollar sign you get defined variables. If you instantiate a class and assign it to a variable, then use this variable in order to execute a subroutine --> getting a list of all available subroutines of this class and all parent classes.

This is so far the only thing holding me back working with VS Code productively. There are some extensions solving this with exuberant ctags, but not really reliable.

PanosBougas commented 3 years ago

Thanks for all your efforts Gerald, fantastic work!

I would love code completion too, my fellow co-workers as well. There is a Perl tool called Reply which does code completion in the terminal though, don't know how it does that but might be worth taking a look.

davebaird commented 3 years ago

The tagnine extension does a reasonable job. The first 30 or so completions daily are free, then you have to pay them.

richterger commented 3 years ago

Code completion is on my todo list, but I cannot say when it will be done. Anyway VScode text completion already does a good job, which make code completion less urgend for me.

pocco81 commented 3 years ago

Hey! I also would like to have code completion! I'm not using VSCode (I use Nvim), and there is no such thing like a default text completion engine.

I would really appreciate it if you were to add this feature!

marcelarie commented 3 years ago

I use Nvim too and I wanted to know if anyone knows about any Language Server that haves code completion with Perl. :)

marcelarie commented 2 years ago

Hey! I also would like to have code completion! I'm not using VSCode (I use Nvim), and there is no such thing like a default text completion engine.

I would really appreciate it if you were to add this feature!

I found this LS https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md#perlpls and workd really good :)

image image

pocco81 commented 2 years ago

Thanks @marcelarie! I just found out that this commit was the one that introduced this lang server. Thank you! :)