Skip to content
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

'Unable to start the Fortran language server.' #215

Closed
Lancashire3000 opened this issue Nov 24, 2021 · 4 comments
Closed

'Unable to start the Fortran language server.' #215

Lancashire3000 opened this issue Nov 24, 2021 · 4 comments

Comments

@Lancashire3000
Copy link

Lancashire3000 commented Nov 24, 2021

Hi,

I installed atom on Windows 10. When I started atom, it tells me,

Unable to start the Fortran language server.

This can occur if you do not have Python installed or if it is not in your path.

Also, make sure to install fortls by running:

pip install fortran-language-server

in cmd, I did python -m pip install fortran-language-server and got Requirement already satisfied: fortran-language-server in c:\users\user\appdata\local\programs\python\python38\lib\site-packages (1.12.0)

I set python in environment variables such that I can type python in any directory.

I also got

fortls language server for Fortran unable to start

Error: spawn fortls ENOENT

'fortls' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

not sure how to fix these issues.

@gnikit
Copy link

gnikit commented Nov 24, 2021

There should be an option in the Atom extension to specify the path to your fortls executable. Not sure where pip installs packages in Windows, if I had to guess I would say c:\users\user\appdata\local\programs\python\python38\bin\fortls. Basically you need to find fortls and point Atom to it.

@Lancashire3000
Copy link
Author

Lancashire3000 commented Nov 24, 2021

@gnikit Thanks! Sorry, where to set the path of fortls in Atom? I used 1.58.0x64. To the contrary in https://stackoverflow.com/questions/35546627/how-to-configure-atom-to-run-python3-scripts, there is no script under Packages. fortls is not in installed packages :(

@gnikit
Copy link

gnikit commented Nov 24, 2021

I don't use Atom, so I don't know the specifics. I assumed that there was some way for Atom to interface with fortls but it appears I was wrong.

The simplest thing to do is to add the directory where fortls is installed to you PATH variable.
A quick Google search will give you the instructions on how to do that on Windows.

@Lancashire3000
Copy link
Author

Thanks! No warning message anymore!

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

No branches or pull requests

2 participants