- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
11 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I see now. I can reproduce this in both VS2008 and VS2010. Issue ID is DPD200172234.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has been fixed - I believe the fix will be in Update 8 but if not, then the one after that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Works for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page