hansec / fortran-language-server

Fortran Language Server for the Language Server Protocol
MIT License
296 stars 57 forks source link

getting completions from Nek5000 although not installed on my system #228

Closed zbinkz closed 2 years ago

zbinkz commented 2 years ago

Hi, I'm running fortls in Kate 20.12.2 on Debian Bullseye kernel 5.10.0-16-amd64, and Plasma 5.20.5. Working on a f90 project and I keep getting completions from Nek5000 code although it is not installed on my system. It's github repo can be found there.

I tried grepping for anything Nek related in /usr/lib/python3/dist-packages/fortls/ but no matches.

Has anyone encountered this? This is my first experience with fortls and I installed it from Debian repos, so it should be on stock settings AFAIK.

gnikit commented 2 years ago

Are you using fortran-language-server or fortls

zbinkz commented 2 years ago

I'm using fortran-language-server and this package is based on fortls.


Description: Fortran Language Server for the Language Server Protocol
 Fortran Language Server (fortls) is an implementation of the Language
 Server Protocol. It can be used with editors that supports the
 protocol (e.g. Emacs with elpa-lsp-mode) to offer support for code
 completion and documentation.```
gnikit commented 2 years ago

so if you do fortls --version you get 1.12.0? Basically, this repo has been anandonded and we started a new language server called fortls (for backwards compatibility with existing tools).

Anyway, as for the issue at hand, if you want you can swap to fortls (pip install fortls) and open a discussion on the repo, https://github.com/gnikit/fortls/discussions. There is not much point in trying to debug fortran-language-server when we can't patch and update the code.

zbinkz commented 2 years ago

Yes, I get version 1.12.0. I'll swap to pip version and check again.