Home Dashboard Directory Help
Search

"Inconsistent line endings" dialogue in IDE by clivehoward-hb


Status: 

Closed
 as Won't Fix Help for as Won't Fix


5
0
Sign in
to vote
Type: Bug
ID: 538108
Opened: 3/2/2010 8:56:00 AM
Access Restriction: Public
0
Workaround(s)
view
4
User(s) can reproduce this bug

Description

Occassionally when opening files in Visual Studio 2010 RC I get the warning dialogue: The line endings in the following files are not consistent. Do you want to normalize the line endings?"

The file has been created in my copy of VS and never edited outside of it.

I believe that others have reported this problem previously as it also happened in VS2008 but it has not been fixed.
Details
Sign in to post a comment.
Posted by Microsoft on 3/12/2010 at 5:29 PM
Hi Clive,

We're not sure exactly how Visual Studio would cause this issue, but if the file hasn't been edited in any other program, it certainly seems plausible. The fact remains that the April 12 launch date for VS 2010 is very rapidly approaching, so we don't have time to fix this for the current release. However, I'm updating the resolution of this issue to Won't Fix so that it will remain in our database and be revisited for a future version of Visual Studio.

Thanks again,
Brittany
Posted by clivehoward-hb on 3/12/2010 at 4:30 PM
Hi Brittany,

Thanks for the reply however it is Visual Studio that is causing the problem in the first place.The file has never been opened or edited outside of VS 2010. I am actually getting this quite frequently in my copy now.

Thanks,

Clive
Posted by Microsoft on 3/12/2010 at 4:23 PM
Hi Clive,

It seems the line ending normalization feature is working correctly for the .aspx file you attached - it actually does have different line endings for lines 191-194 and 196-201. To confirm this outside of Visual Studio, try opening the same .aspx file in notepad. Most of the file is formatted quite nicely, but the affected lines' formatting is different and a bit garbled. It's impossible to tell just by looking at it how the file got into this state (copy/paste is one common way, but it's not the only way), but based on this state, Visual Studio is behaving as expected.

Because Visual Studio is correctly detecting the inconsitent line endings in this file, I'm resolving this issue as By Design. However, if you find the dialog annoying and don't want it to display, you can disable this feature either by unchecking "Always show this dialog" the next time it pops up or by going to Tools->Options->Environment->Documents and unchecking "Check for consistent line endings on load." Either of these should prevent the dialog from appearing in the future.

Thanks again for your feedback,
Brittany
Posted by clivehoward-hb on 3/6/2010 at 5:43 PM
As requested I have now attached a zip file containing an ASPX page and it's code behind file. When I open the .aspx file I get the warning dialog concerning line endings. This file was created using VS 2010 RC and has never been opened in another program or even a different copy of VS 2010 RC. Hope it help. Thanks.
Posted by Microsoft on 3/5/2010 at 5:55 PM
Hi Clive,

Thanks again for reporting this issue. Unfortunately, we haven't been able to reproduce the bug as you described. We understand that this can potentially happen to any file, but it's very difficult to investigate without more information.

Would it be possible for you to do the following:
1.) Next time this happens, cancel out of the Inconsistent Line Endings dialog so that no changes are made.
2.) Save the file without making any further changes (or, if this happens on file open, just leave the file as-is and close it).
3.) Attach the file to this bug. That way we can attempt to reproduce the problem and hopefully investigate.

Thanks for trying the VS 2010 RC and sending your feedback! We hope to hear from you soon.

Brittany Behrens
Program Manager, VS Platform - Editor
http://blogs.msdn.com/visualstudio
Posted by Microsoft on 3/4/2010 at 1:25 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Posted by Microsoft on 3/4/2010 at 1:25 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Posted by clivehoward-hb on 3/3/2010 at 10:14 AM
Thanks for the reply.

There is no file to provide I'm afraid as it happens randomly and potentially to any file. As this is an RC I have been working on a project exclusively in VS and therefore no code has been cut and pasted from anywhere else. The problem did also exist in previous versions of VS and was flagged on this site but not fixed. I have seen it reported that it had something to do with VS checking line endings when a file is opened but not when it is saved. The files I have had problems with were created and saved in VS and then just re-opened in the same copy of the IDE.
Posted by Microsoft on 3/2/2010 at 10:27 PM

2
What that usually means is that you have lines ending with something other than a carriage return/line feed pair. It often happens when you copy and paste from a web page into the code editor.

Since you're developing in Visual Studio, you'll obviously want to choose "Windows" from the drop down.

If possibe, please give us a file to demonstrate this issue so that we can conduct further research.

It would be greatly appreciated if you could provide us with that information as quickly as possible. If we do not hear back from you within 3 days, we will close this issue.

Thanks again for your efforts and we look forward to hearing from you.

Visual Studio Product Team

Posted by Microsoft on 3/2/2010 at 7:08 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
ProposalDetails.zip (restricted) 3/6/2010 -