vscode-fortran-support: "No symbols found in document" error in VS Code v1.67 with Modern Fortran v3.0.2022042917

Hi,

I had been using VS Code with Modern Fortran & fortls without any issues till today right before I upgraded the VS Code to the latest stable release v1.67. The issue I ran into is that the VS Code could not show the outline of the codes in the outline panel (see a snapshot below). --> “No symbols found in document”

Screenshot from 2022-05-06 14-16-10

I have tried disabling all extensions, reloading the windows, restarting the program, and even downgrading to VS Code 1.66 and v1.65v, but they didn’t help. I also found this #154 and it seems that the issue I have is also from the VS Code, not Fortran extensions?

Below are the details of my environment setup:

Code snippets in my setting.json file:

  // Fortran
  "fortran.fortls.path": "fortls",
  "fortran.linter.extraArgs": ["-ffree-form"],
  "files.associations": {
    "*.F": "FortranFreeForm",
    "*.f": "FortranFreeForm"
  },

Any ideas to fix this issue?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

Yes. Have a nice weekend!

I see. Thanks again for clarifying things.

Did you restart VSCode after uninstalling Modern Fortran? If so could you try again with VSCode closed.

Also, try setting in you settings, see if something changes if not, try the other option “Both”

  "fortran.provide.symbols": "fortls"