hansec / vscode-fortran-ls

Fortran IntelliSense for Visual Studio Code
MIT License
37 stars 7 forks source link

Error launching fortls #43

Closed lukhirt closed 2 years ago

lukhirt commented 2 years ago

Hi,

I am getting the following error:

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

  1. I have FLS 1.12.0 installed through pip:
    • done the debugging as described on the FLS WIKI and all seems correct.
  2. I have python installed (3.8.3).
  3. I have Modern Fortran extension installed as well.

Is there any way I could see what exactly is the problem? Is there any kind of log file for this extension? I suppose that since I have latest version of FLS the arguments I am providing should not be a problem, right?

Thanks in advance!

lukhirt commented 2 years ago

A bit of an update. I've played a bit with the code inside extension.js. Looks that even when fortls is called w/o any arguments I get the non-zero large value of results.status:

const results = child_process_1.spawnSync(executablePath, [""]);

I've also tried specifying explicit path to fortls.exe here and that also ended up with some large integer for results.status,

By the way, I am worrking on Windows.

lukhirt commented 2 years ago

That was a python version issue. Going back to Python 3.7.7 solved the issue. Cheers!