You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a project with fpm and am using the fpm.toml file as my ford project file for now. Everything is modern free-form Fortran, but I have the ".f" extension which is automatically reserved for fixed-form. I figured that
[extra.ford]
extensions = ["f"]
would be enough instead of renaming my files to a free-form default, but this does nothing to prevent my files from being read as fixed-form. It seems that this is because I did nothing to change the default value of the fixed_extensions list, which overrides my free-form choice. Is this the expected behavior ? This part of my project file now looks like
Thanks for the bug report @banana-bred! I think this is expected, the way it currently works is that a file is treated as fixed form if its extension appears in fixed_extensions.
I think we could quite easily check if an extension is in both lists and remove it from fixed if it is.
I'm building a project with fpm and am using the
fpm.toml
file as myford
project file for now. Everything is modern free-form Fortran, but I have the ".f" extension which is automatically reserved for fixed-form. I figured thatwould be enough instead of renaming my files to a free-form default, but this does nothing to prevent my files from being read as fixed-form. It seems that this is because I did nothing to change the default value of the
fixed_extensions
list, which overrides my free-form choice. Is this the expected behavior ? This part of my project file now looks likewhich is a very simple fix, but I still find it strange that a default value from another array (
fixed_extensions
) takes precedence here.The text was updated successfully, but these errors were encountered: