Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29041 Discussions

Module procedures still invisible to navigation

Andrew_Smith
Valued Contributor I
1,292 Views

Some changes appear with some blurry icons appearing now, but still doesn't recognise any subroutine or function with the keyword "MODULE".

Andrew_Smith_0-1725366170057.png

 

0 Kudos
1 Solution
Devorah_H_Intel
Moderator
1,146 Views

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".

Andrew_Smith_0-1725366170057.png


 

View solution in original post

0 Kudos
8 Replies
andrew_4619
Honored Contributor III
1,265 Views

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? 

0 Kudos
Andrew_Smith
Valued Contributor I
1,239 Views

It is not intermittent. Here is a reproducer: It gives an empty list:

submodule (Plant) Planted
contains
   module procedure a
   end
end submodule

 Whereas, redefining a as a subroutine does get picked up:

submodule (Plant) Planted
contains
   module subroutine a
   end
end submodule

 

0 Kudos
andrew_4619
Honored Contributor III
1,221 Views

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.

0 Kudos
Andrew_Smith
Valued Contributor I
1,210 Views
The interface to the module procedure would be declared in the module. The implementation in the submodule does not need to repeat the interface and can just be declared a MODULE PROCEDURE. This is normal practice for me as it is more productive (less typing). and less error prone. If Intel added a search for PROCEDURE as well as SUBROUTINE and FUNCTION, it could improve navigation immensely.
My code example was consistent with my original post.
0 Kudos
andrew_4619
Honored Contributor III
1,187 Views

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]

0 Kudos
Devorah_H_Intel
Moderator
1,147 Views

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".

Andrew_Smith_0-1725366170057.png


 

0 Kudos
Andrew_Smith
Valued Contributor I
1,103 Views

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

0 Kudos
andrew_4619
Honored Contributor III
1,080 Views

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.

 

0 Kudos
Reply