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

Module procedures still invisible to navigation

Andrew_Smith
重要分销商 I
1,974 次查看

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 项奖励
1 解答
Devorah_H_Intel
主持人
1,828 次查看

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 项奖励
8 回复数
andrew_4619
名誉分销商 III
1,947 次查看

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 项奖励
Andrew_Smith
重要分销商 I
1,921 次查看

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 项奖励
andrew_4619
名誉分销商 III
1,903 次查看

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 项奖励
Andrew_Smith
重要分销商 I
1,892 次查看
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 项奖励
andrew_4619
名誉分销商 III
1,869 次查看

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 项奖励
Devorah_H_Intel
主持人
1,829 次查看

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 项奖励
Andrew_Smith
重要分销商 I
1,785 次查看

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 项奖励
andrew_4619
名誉分销商 III
1,762 次查看

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 项奖励
回复