Skip to content

include statement not show any messages in nvim #498

@Haku2023

Description

@Haku2023

Describe the bug
Using Nvim with Fortls, the #include sapmle.inc hover or go to definition not act

Config file

.fortlsrc file in the root of the project

{
  "source_dirs": ["./**"],
  "incl_suffixes": ["inc"],
  "pp_suffixes": ["inc"],
  "include_dirs": ["include","src"]
}

Project Structure

/Solution/src/src_sub/a.F90
/Solution/include/sample.inc

inside a.F90 I have

#include "sample.inc"

Expected behavior

  1. hover may show the sample.inc file content
  2. gd to go to the sample.inc file

while I'm not sure whether fortls supports these feature for include files

Message from Inspect

Syntax
  - cInclude links to PreProc
  - cIncluded links to String

Setup information

  • OS: Linux
  • fortls Version [e.g. 3.2.2]
  • Code editor used [e.g.Nvim]
  • Lsp plugin with mason plugin to installed the fortls

Thanks for the amazing project, I transfer from Visual Studio to Nvim because of the convenience of fortls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions