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

sytax coloring lost with v12 update 5 in VS2010?

abhimodak
New Contributor I
1,528 Views
Hi

I find that syntax coloring, block commenting lost for files with extensions such as .f95 in v12 update 5 in VS2010. It is so even after these are added through Tool --> Options and restarting the visual studio.

This however works with VS2005 as before.

Abhi
0 Kudos
11 Replies
Steven_L_Intel1
Employee
1,528 Views
I saw someone else complained about this but I was unable to reproduce it on my system. VS2010 with Update 5 installed shows colors for added file types for me. This is with Update 5.

0 Kudos
abhimodak
New Contributor I
1,528 Views
Hi Steve

I think I know the difference here. You have that file as a part of the "project". It works when that's the case. It won't work if the file is just opened (dragged and put into visual studio window) in editor (without it being a part of the project).

Abhi
0 Kudos
Steven_L_Intel1
Employee
1,528 Views
Yes, I see now. I can reproduce this in both VS2008 and VS2010. Issue ID is DPD200172234.
0 Kudos
Steven_L_Intel1
Employee
1,528 Views
This has been fixed - I believe the fix will be in Update 8 but if not, then the one after that.
0 Kudos
Andrew_Smith
Valued Contributor I
1,528 Views
I installed V12 update 8 and I added .f90i as a header file extension but it fails to syntax color or source browse these files when used in include statements. Only .fi seams to work.
0 Kudos
Steven_L_Intel1
Employee
1,528 Views
Ok - I guess we overlooked the include file issue. I'll let the developers know for both syntax coloring (it works in a project, not outside a project) and the source browsing.
0 Kudos
abhimodak
New Contributor I
1,528 Views
Hi

I think this issue -- that is a .f95 file which not in the projectnot showing syntax coloring -- has (re)-appeared with update 9. { I am actually not sure if it was resolved in update 8.}

Abhi
0 Kudos
Steven_L_Intel1
Employee
1,528 Views
Works for me.

0 Kudos
abhimodak
New Contributor I
1,528 Views

Humn. It doesn't for me (attached is a snapshot). What may be wrong? The only change I made was to install update 9.

Abhi

0 Kudos
Steven_L_Intel1
Employee
1,528 Views
Dunno. I assume you had the .f95 free form source setting in there before? Try removing those, restart VS, put them back in, restart again and then try opening the file.
0 Kudos
abhimodak
New Contributor I
1,528 Views
Hi Steve

I was about to say that remove, restart, add, restart worked... But I experienced something else (and bit convoluted) as well.

(1) I did follow the remove, restart, add, restart BEFORE creating the attached snapshot.

(2) Then I double clicked a .f95 file, it opened with syntax coloring and editor enhancements. I drag-n-dropped a .f95; it also had all the editor features.

(3) Then I did the following which is captured in the attached snapshot. You will see that the top panel shows a VS solution where main project is in C++ and there is a Fortran DLL. Whereas the bottom part of the picture shows a VS solution with Fortran-only project. I drag-n-drop the same file Source7.f95; in the Fortran-only (or Fortran main?) solution, the syntax coloring appears along with all other applicable editor enhancements but for the other case it does not.

I have not tried a Fortran main with C++ dll.

(4) Once the file "lost" its syntax coloringand if I go back to step 2 all editor features are gone again for .f95 file! It will show the editor features only in the alive Fortran-only project instance of the VS.

(5) I then closed ALL the files in the solution with mixed projects. SAVED the project, closed Visual Studio and reopened it. Now did step 2 and there are all the editor features again....


Abhi
0 Kudos
Reply