Modern Fortran extension seems to fail to initialize fortls

Hi!

I just recently switched computers and have been enjoying the features of fortls through Modern Fortran. After the switch I have attempted to set up Modern Fortran with fortls in the exact same way, but it does not seem to be working. I have also attempted to compare the two machines, and I really do not see the differentiating factor, and I would very much appreciate some help.

The weirdest part of my “error” is that there is no error when launching VSCode, and Modern Fortran works for syntax highlighting, so I believe only fortls is not working as intended. There is no “hover”-feature or any intellingent autocomplete.

I have tried multiple things, after installing fortls using pip I have tried reinstalling fortls, both globally and using pipx.
I have also tried both the VSCode from Flatpak (my OS is Linux Mint) and the .deb file downloaded from “Running Visual Studio Code on Linux”.
I have also tried Modern Fortran in both Release and Pre-Release.

Using the output panel and Modern Fortran logging level set to “Debug” I get the output seen in the attached picture. It most interestingly does not contain any mention of initialization of the language server…

Running fortls --version from the terminal I get “3.1.2” as output, so it seems to be in PATH. I have also tried the set the "fortran.fortls.path": to the path I get when running whereis fortls.

My current relevant .json settings are:

    "fortran.fortls.notifyInit": true,
    "fortran.fortls.nthreads": 6,
    "fortran.logging.level":"Debug",
    "fortran.fortls.disabled": false,

Sorry if I have overlooked something obvious, and thank you in advance!

It now, after 6 days, miraculously works!

I have no idea why.