Skip to content

Support additional search dirs for Fortran style include directives #301

Closed as not planned
@albertziegenhagel

Description

@albertziegenhagel

Is your feature request related to a problem? Please describe.
While it is possible to pass --include_dirs as additional search directories for pre-processor includes (#include 'file'), it seems that there is no such possibility to pass additional search directories for Fortran include statements (include 'file' without the #). My understanding is that fortls currently only searches for the include files relative to the file that includes them.

Describe the solution you'd like
It should be possible to pass additional search directories for Fortran include statements. I would suggest to just use the same --include_dirs that are used for pre-processor includes. To the best of my knowledge, this is what most (all?) compilers do: just use the paths passed via -I for both #include and include.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions