Skip to content

fortran-language-server not recognized #119

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

Closed
PaulXiCao opened this issue Mar 14, 2019 · 2 comments
Closed

fortran-language-server not recognized #119

PaulXiCao opened this issue Mar 14, 2019 · 2 comments

Comments

@PaulXiCao
Copy link

I get the following error message after opening up vs code

[Error - 12:07:18 PM] Starting client failed
Error: Unsupported server configuration {
    "command": null,
    "args": [],
    "options": {}
}
	at createMessageTransports._getServerWorkingDir.then.serverWorkingDir (<$HOME>/.vscode/extensions/krvajalm.linter-gfortran-2.0.2/node_modules/vscode-languageclient/lib/main.js:363:35)

It just started maybe a couple weeks ago.

I enabled the option: language server

...
    "fortran.useLanguageServer": true,
...

The fortran language server is installed w/ the latest version

$ fortls --version
1.5.0

It is installed in the following path (included in $PATH)

$ which fortls
<$HOME>/.local/bin/fortls
$ echo $PATH
...:<$HOME>/.local/bin:...

any ideas?

@pedro-ricardo
Copy link
Collaborator

Hello there,
That's an experimental feature, I don't use it and I'm also not sure if it works...
Therefore I recommend you to use that feature only if you intend to contribute to the development of it.

That said, to get Fortran Language Server to work in VSCode I recommend you to leave our option false and install the FORTRAN IntelliSense extension, which I heard that does a better job in handling the Fortran Language Server.

@PaulXiCao
Copy link
Author

Thanks @pedro-ricardo . Your work around worked (disabling the fortran language server option and installing FORTRAN IntelliSense).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants