-
Notifications
You must be signed in to change notification settings - Fork 3
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
Standalone installation instructions #13
Comments
Now you should be able to run the server for neovim with Ps. im trying to solve the same problem as you (using it in neovim) i don't know if this is the "recommended" way to get it up and running but so far it looks promising. |
Hi @Simerax and @enderger . Yes, that's the recommended method for getting it running. The https://github.com/bscan/PerlNavigator docs have more information about this type of configuration, as the Perl and Raku Navigators both share the same architecture. For the Perl version, it also can be downloaded from NPM, which is something I'd like to add here. Pull requests would also be more than welcome. The settings will likely vary per editor, so crowdsourcing this would be helpful. |
Jupyter LabI followed the instructions on the PerlNavigator site to install RakuNavigator into To use RakuNavigator with JupyterLab I created a file
in the directory After tweaking the Raku-Kernel to use "mimetype": "text/x-raku", instead of "mimetype": "text/plain" for new Notebooks (basically search/replace) it worked. Will do a PR, maybe the change gets included. |
I couldn't get the Raku language server to work with emacs 29.1. I did these steps:
Then I went to the PerlNavigator repo, where there are instructions for emacs and eglot, and I converted the following
to this
I added the RakuNavigator configuration to my .emacs file. Then I did:
to make server.js executable. Then I installed the
Then I restarted emacs, and I opened the file b.raku and the mode line specified
but I got the error:
Here's the full output:
In the buffer containing my raku file, I don't get any language hints when I put the cursor on a function or anything else that would make me think the language server is working.
Here's some debug output:
|
Hi @7stud, I believe the issue is that server.js is not an executable. For perlnavigator, I provide an executable that is installed in For the Raku version, I have not yet uploaded this to npm or added the executable. In the meantime, you can preface the command with "node" and it should work. See the comment from @rcmlz as well where they used this as a command:
|
There's lots of good information here, but could I sugest adding installation instructions to README documentation per editor? |
It is working for me in emacs, installing as in #13 (comment) and then:
However it is extremely limited. I don't have VSCode installed to test, so I'm not sure if in VSCode it has more functionality and I haven't fully configured it right. It only completes symbols in my code, not from the standard library, and sometimes gets wrong which symbols are in scope for completion. The doc doesn't show docstrings, just |
Hi @bo-tato, glad it's working. A pull-request on how to get this working in emacs would certainly be welcome. There is similar documentation on the Perl Navigator that could be of use: https://github.com/bscan/PerlNavigator#emacs Yes, the functionality is currently limited. For autocompletion, it does not currently consider scope. It also supports autocompletion of installed modules, including docstrings, plus go-to definition to those modules. Another nice feature is the reporting of DocumentSymbol which vscode uses heavily. Here's an example showing the outline view on the left, the "sticky scroll" feature where it pins the line of code containing the class, and the breadcrumbs. The other key feature is syntax checking where it compiles the code and gets diagnostics from the raku compiler: Although generally speaking, you are correct that this language server is missing a variety of features (e.g. code formatting, standard library functions and docs, parsing all files in a project, better understanding of scope). I've had much more success with the Perl version, both in terms of the features it supports, and the larger community of contributors. I'd certainly love some help with this project if anyone is interested in collaborating. |
Thanks a lot for the great answer and images. It is working like that for completion and documentation of module names. Other than module names I think it doesn't support docstrings yet? If I have:
and request lsp documentation with the cursor on foo, it just says Right now I'm just at the stage of playing around a little with Raku. But if I do actually end up adopting it as a language I use for scripting or coding then I would be interested in collaborating on improving the lsp and editor support |
Thanks @bo-tato, sounds great! It does not support docstrings yet, but that would be a great addition. Should be straightforward since it's already parsing documentation. And yes, I'd love to collaborate if you continue down the path of using Raku. |
Currently, there is no information on separating the language server from the VSCode extension. For users of other editors, it might be good to provide instructions for installing the server outside of VSCode to be used in something like Neovim.
The text was updated successfully, but these errors were encountered: