Some changes appear with some blurry icons appearing now, but still doesn't recognise any subroutine or function with the keyword "MODULE".
Is this a new issue specific to IFX, or was it reported previously on the forum or OSC? I will investigate it further.
@Andrew_Smith wrote:
Some changes appear with some blurry icons appearing now, but still doesn't recognise any subroutine or function with the keyword "MODULE".
链接已复制
I am not sure I understand what you mean. When I look in a submodule in VS2022 with the latest Fortran, in the header pulldown on the right I see all the subroutines and functions irrespective if the have the module prefix. Is it some intermittent problem?
It is not intermittent. Here is a reproducer: It gives an empty list:
submodule (Plant) Planted
contains
module procedure a
end
end submoduleWhereas, redefining a as a subroutine does get picked up:
submodule (Plant) Planted
contains
module subroutine a
end
end submodule
OK that isn't consistent with the description in the original post. I do confess to not understanding your usage case in the first code snippet I thought the valid usage of "module procedure a" was only within an interface block relating to a subroutine with the contains. Anyway I have no useful comments to add.
My code example was consistent with my original post.
Ok ""still doesn't recognise any subroutine or function with the keyword "MODULE"." It does not recognise procedure with the keyword module. It does recognise module subroutine and module function. That is what I meant. [edited]
Is this a new issue specific to IFX, or was it reported previously on the forum or OSC? I will investigate it further.
@Andrew_Smith wrote:
Some changes appear with some blurry icons appearing now, but still doesn't recognise any subroutine or function with the keyword "MODULE".
I don't think it is a new issue or specific to IFX. It may well have been reported previously but hard to search for
I do not recall seeing this reported before. Interestingly I opened one of my exiting submodules and added (in the contains)
module procedure a
end
It started the reparsing the file for syntax 'intellisense' or whatever it is called and VS promptly terminated. I reopened and repeated that a few time in slightly different ways with the same result!
However, having slept on it rebooted and tried again it does not crash so maybe VS was having a bad day.