onivim / oni

Oni: Modern Modal Editing - powered by Neovim
https://www.onivim.io
MIT License
11.35k stars 299 forks source link

Fortran-Language-Server-Completion-Token not recognised #2625

Open MagBad opened 5 years ago

MagBad commented 5 years ago

I could successfully start the fortls language-server with the following options

"language.fortran.languageServer.command": "fortls", "language.fortran.languageServer.rootFiles": [".fortls"],

However since Fortran uses the '%' character to access members of classes etc., oni doesn't seem to be able to provide completions. At least no completions are provided. Errors however are provided by the language-server so I'm assuming the server could be started successfully.

As an example to test you can use the attached file. fortran_test.zip

Steps to see if it's working would be:

  1. Open the file
  2. Try the completion in the function circle_area, by refering to this%radius The completion should appear after the % token.

I couldn't find a list or sort of where to define these symbols. But from #1016 there seem to be an issue with the 'correct' completion symbol. Since that seem related it would be nice to support other characters for completion. Maybe an option?

oni-bot[bot] commented 5 years ago

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.