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

Module procedures still invisible to navigation

Andrew_Smith
소중한 기여자 I
1,742 조회수

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,596 조회수

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,715 조회수

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,689 조회수

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,671 조회수

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,660 조회수
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,637 조회수

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,597 조회수

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,553 조회수

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,530 조회수

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 포인트
응답