Fortran-FOSS-Programmers / Fortran-FOSS-Programmers/ford
Error messages about "USE/variable in source file" -
- Dominant language
- Python
- Stars
- 458
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to use FORD on one of our programs. The source code consists of some 20 files, nothing really large and I thought it was a good test before I would attempt FORD on the whole suite. However, I run into bizarre problems and I have not been able to create a small example that exhibits the same phenomena.
What happens is that FORD complains about a USE statement:
```
Reading file src\agr_hyd_step.f
Traceback (most recent call last):
File "c:\users\markus\.julia\conda\3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
...
Exception: Found USE statemnt in SOURCEFILE
```
When I comment out the USE statements (there are actually two), I get:
```
Reading file src\agr_hyd_step.f
Traceback (most recent call last):
File "c:\users\markus\.julia\conda\3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
...
Exception: Found variable in SOURCEFILE
```
The module is not included in the source tree in which I do the experiment, but that should not matter because I have defined that as an “extra_mod” in the project file. And furthermore I do not see any evidence of FORD first scanning all the source files for module definitions.
I even tried putting a dummy module in the source file, so that it would surely be found, but that does not help in any way either.
It is unclear whether this is due to the fixed-form of the source file or not, as others have been read without a problem. If it helps, I have attached the file in question.
[agr_hyd_step.f.txt](https://github.com/Fortran-FOSS-Programmers/ford/files/9734531/agr_hyd_step.f.txt)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.