Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran-dev] Fortran project properties

On Apr 6, 2010, at 2:30 AM, Jeffrey Overbey wrote:

>> If I have Photran installed, all my C/C++ projects show "Fortran Build" and "Fortran General"
>> items in the project properties. Presumably this is because you've done away with the Fortran
>> project type, but I think it's really confusing. Don't you have a Fortran nature? Shouldn't these
>> properties only be shown for projects with this nature?
> 
> We have always allowed C projects and Fortran projects to be used
> interchangeably: everything that works in one works in the other.
> This is mostly because we "steal" large pieces from CDT, and so we
> give Fortran projects a C nature to make them function properly.
> 
> The Fortran nature is a recent addition; Matt Scarpino originally
> contributed it to give Fortran projects the "right" icons in the
> Fortran Projects view (despite the fact that they're C projects under
> the hood).  You're right, conceptually -- we should probably move to a
> model where a Fortran projects is-a-kind-of C project, but a C project
> is not necessarily a Fortran project.  But that's a can of worms I'd
> rather not open three weeks before Helios M7.  :-)  In the near term,
> I think it's best that we keep C and Fortran projects interchangeable,
> but this would be worth revisiting after Helios...
> 

If Photran was stand-alone then I'd agree, but because it's included in Helios then impacting on another project like this becomes a big issue. 

I would really rather Photran sorted this out prior to the release, and I don't see that it should be too difficult. You should be able to create a projectNature filter on the propertyPage extension that only displays the properties for Fortran projects. See the RDT project for details.

Greg

Back to the top