Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Definition#findAllReferences(…) seem broken across multiple files

My apologies I pasted the wrong URL. The files are available at https://gist.github.com/4199440

--
Nick

On Dec 3, 2012, at 6:49 PM, Nick Chen <nchen.dev@xxxxxxx> wrote:

Hi Photran Developers

I'd like to confirm this on the mailing list before filing a bugzilla bug report.

We have noticed that the Definition#findAllReferences(...) method does not find references to symbols across multiple files. This problem happens in the latest version of Photran that can be downloaded as part of the Eclipse for Parallel Application Developers (Juno) <http://www.eclipse.org/downloads/packages/node/822> and also the Juno tag from the Photran Git repository.

Here are some steps to reproduce (besides setting a breakpoint at the Definition#findAllReferences and noticing that it does not return anything outside the current file).

1) Load the following two files (main.f90 and subroutines.f90) into a new Fortran project. The text of the files can be found at http://www.eclipse.org/downloads/packages/node/822
2) Right-click on the project and be sure to enable Fortran Analysis and Refactoring in the properties.
3) Try to invoke any of the refactorings that work on subroutines, e.g., "Add Subroutine Parameter" or "Permute Subroutine Parameters".
4) Notice that it will not change the call sites in the main.f90 file.

I have tried it on other features that rely on Definition#findAllReferences(...) besides the Fortran Refactorings. For instance, I tried the Fortran search feature. And when I searched for "calc" (one of the names of the subroutines in subroutines.f90) it only returns the definition and not any of the references across the files.

This leads me to believe that the resolving the bindings works OK but find the references to the Definition does not.

Could current developers confirm that I not missing anything?

Thanks!

--
Nick



_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran

Back to the top