Linting in source subdirectories #588
Replies: 5 comments 4 replies
-
So .mod files for the linter are produced upon file opening OR save. To get rid of that error you would have to go into I will admit that I am not a fan of this and I have been wanting to change it for a long time by "initialising" all source files found. The reasons why I haven't are:
|
Beta Was this translation helpful? Give feedback.
-
I did this several times (added empty line, saved, removed line, saved again), did not help. ["INFO" - 6:41:23 PM] Linter.arguments:
-Wall
-ffree-line-length-none
-ffixed-line-length-none
["INFO" - 6:41:23 PM] Linter.moduleOutput: -J ${workspaceFolder}/mod but .mod file is not created for files in subdirectories |
Beta Was this translation helpful? Give feedback.
-
Have you tried also including the mod output dir to your include dirs? I suspect that the linter is unable to find the mod files. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Dear @gnikit Now i am implementing it in a submodule: The problem is that neither hover nor code suggestions are available in implementation part. |
Beta Was this translation helpful? Give feedback.
-
Hi all!
I cannot understand how creation of module files work with Modern Fortran.
My project structure looks like this
mod
directory with linter outputsrc
directory containsPrecisions
module andsubdir
directory with 2 modulesTimerElemental
andTimer
Linter created only single module file module1.mod
Timer
module depends onTimerElemental
module.TimerElemental
detects precisions.mod and everything is OK, butTimer
cannot detect eitherTimerElemental
orPrecisions
What is the correct configuration to work with subdirectories?
Beta Was this translation helpful? Give feedback.
All reactions