Open JPBergsma opened 4 years ago
Can you try setting the path manually? You can do this by getting the path to fortls
by running
which fortls
in a command line. Then use that to set the "Executable path" in the extension settings for Fortran IntelliSense. Note, you will need to close and reopen VSCode after changing this setting for it to take effect.
Depending on your specific setup it is possible the PATH
that VSCode uses is different from your terminal/command line.
Dear Chris Hansen,
Thank you for your reply and I am sorry I did not reply sooner.
I did try to set the location of fortls in visual studio code to the location returned by which fortls.
That however did not work. Unfortunatly I gave my old pc on which the error occured to my father. I therefore no longer have regular acces to that pc. I have not gotten around to reinstall everything on my new pc yet. If the error occurs again I will let you know.
Kind regards and best wishes for the new year
Johan
Sent: Friday, December 27, 2019 at 9:47 PM From: "Chris Hansen" notifications@github.com To: hansec/fortran-language-server fortran-language-server@noreply.github.com Cc: Kwlbus kwibus@chemist.com, Author author@noreply.github.com Subject: Re: [hansec/fortran-language-server] Error spawning fortls (#149)
Can you try setting the path manually? You can do this by getting the path to fortls by running
which fortls
in a command line. Then use that to set the "Executable path" in the extension settings for Fortran IntelliSense. Note, you will need to close and reopen VSCode after changing this setting for it to take effect.
Depending on your specific setup it is possible the PATH that VSCode uses is different from your terminal/command line.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I have the same problem. What should I do? Where? Please give details! Many thanks in advance JG
same error for me on Win10 : The notification from VSCODe "Error spawning fortls: Please check that fortran-language-server is installed and in your path." keep spawning despite I set the output of `where fortls
C:\Users\cluzetbe\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts\fortls.exe`
inside Fortran Intellisense (0.6.2) Executable Path.
Hi, I have exactly the same problem on Debian with Fortran Intellisense (0.6.2). I have checked that fortls in well installed (fortls -h works well) and the problem persists even if I indicate the full path to the fortls executable.
When opening a .f90 file in Visual studio code The following error pops up
Error spawning fortls: Please check that fortran-language-server is installed and in your path. When I however got to the command line and type fortls --version the correct version number 1.10.3 is returned so fortls seems to be installed and its location is in path. I therefore do not know how to fix this issue and would appreciate your help with resolving this.
When I run fortls --debug_rootpath=/home/kwibus/.local/lib/
I get :
Testing "initialize" request: Root = "/home/kwibus/.local/lib/" Succesful!
Source directories:
visual studiocode version: Version: 1.40.2 Commit: f359dd69833dd8800b54d458f6d37ab7c78df520 Date: 2019-11-25T14:54:40.719Z Electron: 6.1.5 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Linux x64 4.15.0-72-generic
with Modern Fortran 2.1.1 FORTRAN IntelliSense 0.6.0