Skip to content

Accurate include paths and preprocessor definitions via CMake #133

Open
@letmaik

Description

@letmaik
Contributor

The vscode CMake Tools extension talks to the C/C++ extension API to provide accurate preprocessor definitions and include paths. If vscode-fortran-support would provide a similar API then the CMake Tools extension could use it in the same way. This would avoid having to manually configure include paths etc. if CMake is used as build system.

Activity

MuellerSeb

MuellerSeb commented on Apr 22, 2020

@MuellerSeb

Any news on this?

machsix

machsix commented on Sep 7, 2021

@machsix
Contributor

https://github.com/rizsotto/Bear

This looks like a cool tool if someone prefer Makefile

pinned this issue on Nov 17, 2021
gnikit

gnikit commented on May 9, 2022

@gnikit
Member

I think I should clarify what the status of this feat req is. You can have extremely accurate and functional include paths by using glob patterns. So using cmake to have accurate include paths is not that important anymore.

The circumstances that I can foresee this being the only solution are:

  • There are conflicting include files, hence using a global include would lead to linter conflicts. Although I am not sure if that is possible when you use the -fsyntax-only flag.
  • You want a plug and play experience with your build system i.e. not having to configure linter paths manually.
renierm

renierm commented on Jun 22, 2024

@renierm

The use case I have for this is a complex and always changing compile environment.

The compile environment that I'm working in, has a large set of dependencies and the versions used change often. This is all managed using multiple include paths with specific versions. It would really help if cmake information could be used to configure fortls environment.

Basically, the conflicting include file scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @letmaik@renierm@gnikit@MuellerSeb@machsix

        Issue actions

          Accurate include paths and preprocessor definitions via CMake · Issue #133 · fortran-lang/vscode-fortran-support