- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
All our source code is Unix carriage return formatted. My Visual Studio
2010 settings are to keep current format for carriage returns.
Nevertheless, when I edit a Fortran source code file, carriage return
are always in Windows format (\\r\\n) instead of with current settings
(\\n). Is there a way to fix this?
Also, when editing C++ source code, selecting multiple lines and pressing the tab key will indent these lines. It used to also work like this with older versions of Intel Fortran. Now, selecting multiple lines and pressing the Tab key will delete the lines and insert a tab character. Is there a way to go back to the old (and more compliant) behavior?
I am currently using the Update 7 of Composer XE 2011.
Thanks,
Etienne
P.S. In fact, both problems only occur in VS 2010. None of them in VS 2005
Also, when editing C++ source code, selecting multiple lines and pressing the tab key will indent these lines. It used to also work like this with older versions of Intel Fortran. Now, selecting multiple lines and pressing the Tab key will delete the lines and insert a tab character. Is there a way to go back to the old (and more compliant) behavior?
I am currently using the Update 7 of Composer XE 2011.
Thanks,
Etienne
P.S. In fact, both problems only occur in VS 2010. None of them in VS 2005
コピーされたリンク
10 返答(返信)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I suspect these are related to our new source browser support which is on VS 2010 and VS 2005. I will investigate and see if I can reproduce.
------
Wendy
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Any chance for this to be fixed in Update 8?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I can't reproduce either problem with Update 7.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Can we get the project directories and files zipped up. There must be something unique in how you have the files configured. We need to reproduce before we can fix it.
Thanks,
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Attached are two files, in Fixed Fortran mode. The orig one is as is while in the modified one, I added 2 comments lines. These lines have Windows carriage returns... My settings of Visual Studio 2010 are to use actual settings for carriage returns, which should be Unix. It works correctly for C++ code, only behaves like this for Fortran. I also tried to select lines and press Tab and still got the behavior of having a Tab inserted and the lines deleted.
I started a new instance of VS 2010 and loaded the file directly, without having any projects or solutions loaded. I then edited and saved the file.
Here is the Info box of VS 2010:
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel
Installed Version: Professional
Microsoft Visual C++ 2010 01018-532-2002181-70792
Microsoft Visual C++ 2010
Microsoft Visual Studio 2010 Team Explorer 01018-532-2002181-70792
Microsoft Visual Studio 2010 Team Explorer
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2522890) KB2522890
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2522890.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2529927) KB2529927
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2529927.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2548139) KB2548139
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2548139.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2549864) KB2549864
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2549864.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2565057) KB2565057
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2565057.
Intel Visual Fortran Package ID: w_fcompxe_2011.7.258
Intel Visual Fortran Composer XE 2011 Update 7 Integration for Microsoft Visual Studio* 2010, 12.1.3518.2010, Copyright (C) 2002-2011 Intel Corporation
* Other names and brands may be claimed as the property of others.
Microsoft Python Tools for Visual Studio 1.0
Python Tools for Visual Studio provides intellisense, project support, project and item templates, as well as a REPL window for Python development.
Microsoft Python Tools for Visual Studio - Profiling Support 1.0
Profiling support for Python projects.
Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual Studio 2010 Professional - 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/983509.
Regards,
Etienne
I started a new instance of VS 2010 and loaded the file directly, without having any projects or solutions loaded. I then edited and saved the file.
Here is the Info box of VS 2010:
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel
Installed Version: Professional
Microsoft Visual C++ 2010 01018-532-2002181-70792
Microsoft Visual C++ 2010
Microsoft Visual Studio 2010 Team Explorer 01018-532-2002181-70792
Microsoft Visual Studio 2010 Team Explorer
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2522890) KB2522890
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2522890.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2529927) KB2529927
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2529927.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2548139) KB2548139
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2548139.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2549864) KB2549864
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2549864.
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2565057) KB2565057
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2565057.
Intel Visual Fortran Package ID: w_fcompxe_2011.7.258
Intel Visual Fortran Composer XE 2011 Update 7 Integration for Microsoft Visual Studio* 2010, 12.1.3518.2010, Copyright (C) 2002-2011 Intel Corporation
* Other names and brands may be claimed as the property of others.
Microsoft Python Tools for Visual Studio 1.0
Python Tools for Visual Studio provides intellisense, project support, project and item templates, as well as a REPL window for Python development.
Microsoft Python Tools for Visual Studio - Profiling Support 1.0
Profiling support for Python projects.
Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual Studio 2010 Professional - 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/983509.
Regards,
Etienne
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Lines 28 onwards in the first file that you attached contain a few carriage returns, whereas most of the lines are terminated by line-feeds only. Some editors can get confused if they examine the first few lines, conclude that the file does not contain carriage returns, and you try to edit source lines that contain carriage returns.
A simple fix is to remove CRs from all your source files.
A simple fix is to remove CRs from all your source files.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I think the important part is that you edited these files not as part of a project. There was an issue where such files were not being handled properly, and I think that will be fixed in Update 8. I will try your files and see if I can reproduce the problem.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
The first file is the one I modified, using VS 2010 editor, to show you how it was saved!
The second file is the original one, containing only line-feeds, which is the format we use here since we compile on both Windows and Unix platforms.
I think you got me wrong on this: at first, I do not have a single carriage return in my code. They appear when I edit Fortran code with VS 2010, no matter what the settings of VS 2010 are: carriage return will be used for the lines I edited if I press the Return key while editing. To see the bug, you have to hit the Enter key to create new lines. If you only change a word, all the line feed remains, they do not change to carriage returns. But if you add new lines, all of these will contain carriage returns, not linefeed as they should since VS2010 is set to preserve the end of line format.
Only happens for VS 2010, not for VS 2005.
Etienne
The second file is the original one, containing only line-feeds, which is the format we use here since we compile on both Windows and Unix platforms.
I think you got me wrong on this: at first, I do not have a single carriage return in my code. They appear when I edit Fortran code with VS 2010, no matter what the settings of VS 2010 are: carriage return will be used for the lines I edited if I press the Return key while editing. To see the bug, you have to hit the Enter key to create new lines. If you only change a word, all the line feed remains, they do not change to carriage returns. But if you add new lines, all of these will contain carriage returns, not linefeed as they should since VS2010 is set to preserve the end of line format.
Only happens for VS 2010, not for VS 2005.
Etienne
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
The problem is there no matter if the files are in a project or not. I gave you the project less procedure, for simplicity. I see both problems (carriage returns and tabs) no matter if in a project or not.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
>I think you got me wrong on this: at first, I do not have a single carriage return in my code.
I wrote a comment on the contents of the file that you attached, and about inconsistent EOLs causing problems.
I have nothing to say about how those carriage returns got into the file.
I wrote a comment on the contents of the file that you attached, and about inconsistent EOLs causing problems.
I have nothing to say about how those carriage returns got into the file.
