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

Text editor doesn't recognize fixed-form source

Steven_L_Intel1
Employee
2,890 Views
Moved discussion from 11.1 announcement thread
0 Kudos
37 Replies
a_leonard
Novice
1,813 Views
After installing 11.1, Visual Studio no longer seems to recognize lines starting with 'C' as comments or lines with a character in column 6 as continuation lines in the "Fonts and Colors" settings. Maybe a subtle nudge to get us away from old Fortran 77 code?
0 Kudos
Steven_L_Intel1
Employee
1,814 Views
It works for me - what is the file type?
0 Kudos
a_leonard
Novice
1,814 Views
It works for me - what is the file type?
It is a Fortran file with a .f extension. Comments using the '!' are colored properly, just not the old-fashioned kind.
0 Kudos
Peter
Beginner
1,814 Views
To the original poster,

How do I upgrade to 11.1 without starting over again ? I have to go throughtatleast anhour downloading and installing the latest version. Any workarounds for that??

0 Kudos
Steven_L_Intel1
Employee
1,814 Views

Go to Tools > Options > Intel Fortran > General. Is .f listed under Fixed Format Source?
0 Kudos
a_leonard
Novice
1,814 Views

Go to Tools > Options > Intel Fortran > General. Is .f listed under Fixed Format Source?
Here is what I see:

0 Kudos
Steven_L_Intel1
Employee
1,813 Views
Curious. Try an uninstall and reinstall.
0 Kudos
Peter
Beginner
1,813 Views

That should not happen .
Try .for or .FOR instead; .FOR works for me as well as .f for FIXED FORMAT !
0 Kudos
TimP
Honored Contributor III
1,813 Views
Quoting - Peter

That should not happen .
Try .for or .FOR instead; .FOR works for me as well as .f for FIXED FORMAT !

Look for unintentional/free /FR or/4Yf property or ifort.cfg setting.
0 Kudos
Steven_L_Intel1
Employee
1,813 Views
Quoting - tim18

Look for unintentional/free /FR or/4Yf property or ifort.cfg setting.
Tim, the text editor doesn't know about those things.
0 Kudos
abhimodak
New Contributor I
1,814 Views

I am also seeing this problem. I haven't tried to uninstall/reinstall but that shouldn't be required.

Abhi

0 Kudos
Peter
Beginner
1,813 Views
Quoting - abhimodak

I am also seeing this problem. I haven't tried to uninstall/reinstall but that shouldn't be required.

Abhi

I don't see why it should happen ! But you never know what's going on !
Did you guys custom install ??
0 Kudos
Steven_L_Intel1
Employee
1,813 Views
For those of you seeing this problem, which Visual Studio version were you using before and which are you using now? Does it do this for only .f files or for also .for files?

Open up a Windows Explorer directory window, select Tools > Folder Options > File Types (this is for XP - instructions for Vista are slightly different). Scroll down to the entry for file extension F. What does it say the File Type is?
0 Kudos
a_leonard
Novice
1,813 Views
For those of you seeing this problem, which Visual Studio version were you using before and which are you using now? Does it do this for only .f files or for also .for files?

Open up a Windows Explorer directory window, select Tools > Folder Options > File Types (this is for XP - instructions for Vista are slightly different). Scroll down to the entry for file extension F. What does it say the File Type is?
Uninstalling and reinstalling did not help. I did the full installation, not custom.

I am using VS2005, both before and after installing IVF11.1.

Files with extensions .f, .for, and .F90 all show up as "Fortran Source" in the type column of the detailed view of the explorer window (Vista). A file with the .F extension is also listed as "Fortran Source" in the file properties window.

Microsoft Visual Studio 2005
Version 8.0.50727.867 (vsvista.050727-8600)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: Standard

Microsoft Visual C++ 2005 77633-235-1531756-41204
Microsoft Visual C++ 2005

Microsoft Web Application Projects 2005 77633-235-1531756-41204
Microsoft Web Application Projects 2005
Version 8.0.50727.867

Intel Visual Fortran Compiler Integration Package ID: w_cprof_p_11.1.035
Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2005, 11.1.3462.2005, Copyright (C) 2002-2009 Intel Corporation
* Other names and brands may be claimed as the property of others.

Microsoft Visual Studio 2005 Standard Edition - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/926601

Security Update for Microsoft Visual Studio 2005 Standard Edition - ENU (KB947738)
This Security Update is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this Security Update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947738

Update for Microsoft Visual Studio 2005 Standard Edition - ENU (KB932232)
This Update is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this Update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/932232
0 Kudos
Peter
Beginner
1,813 Views
Quoting - a.leonard
Uninstalling and reinstalling did not help. I did the full installation, not custom.

I am using VS2005, both before and after installing IVF11.1.

Files with extensions .f, .for, and .F90 all show up as "Fortran Source" in the type column of the detailed view of the explorer window (Vista). A file with the .F extension is also listed as "Fortran Source" in the file properties window.

Microsoft Visual Studio 2005
Version 8.0.50727.867 (vsvista.050727-8600)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: Standard

Microsoft Visual C++ 2005 77633-235-1531756-41204
Microsoft Visual C++ 2005

Microsoft Web Application Projects 2005 77633-235-1531756-41204
Microsoft Web Application Projects 2005
Version 8.0.50727.867

Intel Visual Fortran Compiler Integration Package ID: w_cprof_p_11.1.035
Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2005, 11.1.3462.2005, Copyright (C) 2002-2009 Intel Corporation
* Other names and brands may be claimed as the property of others.

Microsoft Visual Studio 2005 Standard Edition - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/926601

Security Update for Microsoft Visual Studio 2005 Standard Edition - ENU (KB947738)
This Security Update is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this Security Update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947738

Update for Microsoft Visual Studio 2005 Standard Edition - ENU (KB932232)
This Update is for Microsoft Visual Studio 2005 Standard Edition - ENU.
If you later install a more recent service pack, this Update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/932232
the latest version(ivf 11.1) comes with ms visual studio 2008 shell version. are you not using it? but i dont know if it makes any difference. !
0 Kudos
Steven_L_Intel1
Employee
1,813 Views
Quoting - Peter
the latest version(ivf 11.1) comes with ms visual studio 2008 shell version. are you not using it? but i dont know if it makes any difference. !
If he already has the full VS2005, there would be no reason to use the VS2008 Shell and it is not installed.

Others who are seeing this - which VS version are you using?
0 Kudos
abhimodak
New Contributor I
1,813 Views
My apologies for the delay in responding back.

I was and am using VS 2005 on XP64.

In the File types, F appeared as a visual studio file while F90 as fortran source. For F extension there is an option to "restore" to fortran source. Then I closed and opened the visual studio but still the problem remains.

Abhi
0 Kudos
Steven_L_Intel1
Employee
1,813 Views
Ok, let's try this. For those of you using VS2005, save the attached file and double-click on it to edit the registry. If you are using a different VS version, do not use this file. (You can edit it and change the 8.0 to 9.0 or 7.1 for VS2008/VS2003 if you wish.) Restart Visual Studio and see if the problem persists. This is just a random idea of mine - I have a request in to the IDE developers for their thoughts.
0 Kudos
a_leonard
Novice
1,813 Views
Here's something interesting. If I open the file from File menu or the Solution Explorer window, the text editor is OK. If I open it by double-clicking on a line in the Find Results or Error List windows, it is not. When I close the solution and reopen it, it is not OK anymore, even if it was before.

I think it was like this before the registry change in the previous post. It is definitely like that now.
0 Kudos
abhimodak
New Contributor I
1,695 Views
Use of the registry edit does not help either.

Abhi
0 Kudos
Reply