Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error about 'unknown module' when modules are in different folder and connected with cmake #223

Open
mghaderizefreh opened this issue May 27, 2022 · 1 comment

Comments

@mghaderizefreh
Copy link

Hey,
I use cmake to build my project. I have several folders each with one or two modules. I receive "PROBLEMS" in vscode saying that the x modules are not found in the project. And I guess because of this I don't receive additional diagnosis regarding the use of subroutines and functions of those modules. Is there a solution for this already available that kind of interacts with cmake and understands the location of other modules?
Thanks

@gnikit
Copy link

gnikit commented May 27, 2022

Hey not sure if you are using fortran-language-server or fortls, since the vscode modern Fortran extension is not compatible with the former.

Aside from that what you want is to setup a configuration file with the location of your source files. See the fortls documentation for more info:

https://gnikit.github.io/fortls/options.html#available-options

All these options can be set via both the command line and/or a configuration file. The command line arguments can be set through the option "fortran.fortls.extraArgs"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants