Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357021

Summary: There's no way to turn off Photran indexing in a remote project
Product: [Tools] PTP Reporter: Corey Ashford <cjashfor>
Component: Photran.UnknownAssignee: Photran Inbox <photran-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: com-eclipse-dot-org, g.watson, kresimir.hecimovic, mahesh.maney, recoskie
Version: 5.0.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Remote project's properties screen shot none

Description Corey Ashford CLA 2011-09-07 18:44:01 EDT
Build Identifier: I20110613-1736

If my project contains no Fortran source code, there's no reason to enable Photran indexing, and keeping it enabled appears to cause many jobs to get queued up to run during indexing.

There should be some an option to disable Photran indexing, perhaps in the project indexing properties.



Reproducible: Always

Steps to Reproduce:
1_ Install all of PTP, but don't install (or uninstall) all of the Photran-related
features.

2. Run an indexing operation on a remote project, and notice that the Photran indexer still runs.
Comment 1 Chris Recoskie CLA 2011-09-08 11:00:10 EDT
I'll go one further... Photran shouldn't be doing anything if there are no Fortran projects.  If it's kicking off on C/C++ projects then that's a bug as far as I'm concerned.
Comment 2 Jeffrey Overbey CLA 2011-09-08 11:48:35 EDT
The Photran indexer is enabled/disabled in the project properties under Fortran General > Analysis/Refactoring by checking/unchecking "Enable Analysis/Refactoring."

Is this enabled for any of your projects, local or remote?

If none of the projects in the workspace are Fortran projects, or if they have analysis/refactoring disabled, then Photran's indexer will start but should stop almost immediately after it realizes that there are no projects to index.
Comment 3 Corey Ashford CLA 2011-09-09 17:34:29 EDT
(In reply to comment #2)
> The Photran indexer is enabled/disabled in the project properties under Fortran
> General > Analysis/Refactoring by checking/unchecking "Enable
> Analysis/Refactoring."
> 
> Is this enabled for any of your projects, local or remote?
> 
> If none of the projects in the workspace are Fortran projects, or if they have
> analysis/refactoring disabled, then Photran's indexer will start but should
> stop almost immediately after it realizes that there are no projects to index.

My project's properties do not contain any Fortran categories at all.  I will attach a screen shot to show the properties it does have.
Comment 4 Corey Ashford CLA 2011-09-09 17:35:52 EDT
Created attachment 203095 [details]
Remote project's properties screen shot
Comment 5 Corey Ashford CLA 2011-09-14 17:33:17 EDT
I've added the PTP version and the machine where I'm seeing this problem.

It's really quite an annoying error, because not only does it take a *really* long time for these photran indexing jobs to complete, there's no way to stop the process, and in fact, I can't even exit eclipse while it's doing this... I have to kill -HUP java process in order to stop it.
Comment 6 Jeffrey Overbey CLA 2012-03-01 14:26:14 EST
Hi Corey,

I'm having trouble reproducing this.  Can you give me a step-by-step way to reproduce this from scratch/starting with an empty workspace?

Or, can you at least give me an idea of what is in your workspace?  Are there *any* Fortran projects, even local ones?  How big is the remote C/C++ project?  Is there something specific you can do to get multiple Photran indexer tasks to queue up?

If you give Eclipse more heap space (e.g., eclipse -vmargs -Xmx1024m) do you still have the problem?

Also, in Windows > Preferences, if you select the Fortran category, there's a checkbox labeled "(Debugging) Enable Fortran indexer (VPG database) logging."  Check that, close Eclipse, and then restart Eclipse again from a terminal window.  It should spew a lot of timing information to the terminal as the indexer runs.  If you could, let me know what output it gives right before the indexer hangs (and right after, assuming it finishes).  That might help narrow this down...

Thanks.
Comment 7 Mahesh Maney CLA 2013-07-03 06:08:19 EDT
Hi,

The Photran indexer is a killer and causing a pain in our eclipse. I have made sure that the - "(Debugging) Enable Fortran indexer (VPG database) logging." is unchecked. However I still see the Photran indexer task running and killing the performance of my eclipse. Is there away out of this killer task?
Can anyone suggest me with this issue.

Regards
Mahesh Maney R
Comment 8 Kresimir Hecimovic CLA 2014-11-06 10:46:04 EST
Try disabling Photran plugin:
Preferences->General->Startup and Shutdown->Photran Virtual Program Graphg Core Plug-in
Comment 9 Greg Watson CLA 2018-02-26 10:11:44 EST
I added this to the wiki FAQ.