Skip to content

Crash when no Compiler is installed #837

Open
@Nuramon27

Description

@Nuramon27

Is there an existing issue for this?

  • I have searched the existing issues

Description

When trying to use the Extension without a fortran compiler installed (and only the language server), it always crashes immediately, even if I set "fortran.linter.compiler" to "Disabled" in the settings.

Steps to reproduce:
Install fortls. Install Modern Fortran Extension on a system with no fortran compiler (gfortran, ifort) installed. In the extension settings, set "fortran.linter.compiler": "Disabled". Then open a fortran source file and, if the language server does not start automatically, execute the command "Fortran: Restart the Fortran Language Server".

Error Messages
The errors shown in VSCode as popup messages are "Server initialization failed" and "Fortran Language Server client: couldn't create connection to server". The extension tries to restart a few times before it gives up with the message "The Fortran Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information."

In the "Extension Host"-Output of VSCode, I could see the error message "[error] Error: not found: Disabled" and after that a few times "[error] Error: tuple index out of range".

Screenshots

No response

Expected Behaviour

Without a compiler, I expected the extension to work with only the functionalities provided by the language server, i.e. hover, autocompletion, symbols and Go to & Peeking into definitions, but without linting.

Version of Modern Fortran

v3.2.0

Version of Visual Studio Code

v1.75.1

Platform and Architecture

Windows 10

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions