Skip to content

Extension cannot launch fortls  #499

@BambOoxX

Description

@BambOoxX

Describe the bug
The extension show a pop-up message with

Error launching fortls: Please check that all selected options are supported by your language server version.

However, no specific options (except for fortls path) have been set (which may be the problem) but I can't see a list of them.
Searching the output of Modern Fortran logs shows

["INFO" - 14:24:15] Extension Name: Modern Fortran
["INFO" - 14:24:15] Extension Version: 3.0.202204291734
["INFO" - 14:24:15] Linter set to: ifort
["INFO" - 14:24:15] Formatter set to: findent
["INFO" - 14:24:15] Autocomplete set to: fortls
["INFO" - 14:24:15] Hover set to: fortls
["INFO" - 14:24:15] Symbols set to: fortls
["INFO" - 14:24:15] using linter: ifort located in: ifort
["INFO" - 14:24:15] Linter.arguments:
-warn
all
["INFO" - 14:24:15] Linter.include:

["INFO" - 14:24:15] Fortran Language Server
["INFO" - 14:25:01] using linter: ifort located in: ifort
["INFO" - 14:25:01] Linter.arguments:
-warn
all

The problem (or at least its symptoms) seems to be close to https://stackoverflow.com/q/72153608/9576551, however I can't see how https://gnikit.github.io/fortls/editor_integration.html#visual-studio-code can help understand which options to change to make fortls work.

Build info (please complete the following information):

  • OS: Windows 10 20H2
  • Extension Version v3.0.2022042917
  • Visual Studio Code Version 1.67.2
  • fortls version 2.7.0 installed with conda

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions