-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Follow dependent paths for USE statements. #175
Comments
Please see this comment, it's a tutorial of how to use the flags you want |
@pedro-ricardo OK, I had a read through the other link and I thought I tried adding the module path to the include path to see if that worked. It did not, otherwise I would not have posted this request. Let me try it again, I'll let you know. |
@pedro-ricardo OK, I did it again and I can confirm that the combination of setting
is working, sort of. The reason that I got tripped up testing this earlier is that if no module files are generated yet, then you must open the Fortran files in dependency order to get it working. So, for instance, lets say module Seems like you need some dependency scanning to generate the module files on the fly? Edit: Since the include/linter paths functionality is working, I've updated the title of this issue, and the opening post, to reflect this last bit. Dan |
Hello there @dnwillia-ansys, Thanks for your comments ... It's a valid request and it makes a lot of sense, therefore I'll leave it marked as a feature-request. |
@pedro-ricardo Thanks for the response! I don't think what I'm suggesting needs to be quite a full featured makefile/dependency checker. The extension could simply do two things:
|
I agree with the other issues and this one that the mod files should be placed in a tmp folder. Another option is to link it to a launch profile, which for mine just calls the makefile. This then would contain the dependency order and build all the mod files. Then the user can request when the linter needs to update with the makefile rather than having it automatically do it. Specifically, have the extension linked to a tasks.json task name. Then have the user invoke when it should build the files. Then allow a custom location of the mod files (analogous to the -J option). |
This has not been fixed in version |
Hi,
Can we please have an option to control where module (.mod) files are placed as well as included from?
In our project we need to put the module files in a different path outside of the source code area because we don't use the gfortran compiler normally. Though we like to use it for this extension :-).
I was able to force the generation to another location by adding this line to my settings.json
"fortran.linterExtraArgs": ["-J<path>"]
but then the Linter did not seem to figure out that I've forced it.
Dan
EDIT:
See comments below, there is a workaround, though, if you load a module the .mod files for dependencies are not generated on the fly so you end up with unresolved imports.
The text was updated successfully, but these errors were encountered: