Visual Studio and .NET Framework Home
Inconsistent line endings
as Won't Fix
11/10/2008 11:43:29 PM
User(s) can reproduce this bug
I have created a new solution with some new projects. When I open this solution there are always some files where the message box "inconsistent line endings" pops up. The files are only edited in the IDE. The solution in the projects are not under source control. I do not have this behaviour before SP1. The message box is not popping up for every file in the projects only some and even if they were not changed the day before.
I saw that such a behaviour was reported before on the Visual Studio 2005 Beta, maybe it has the same reason?
Visual Studio 2008 SP1
Windows XP Professional
Operating System Language
Steps to Reproduce
What I have done:
Created a new solution, add new empty projects, add some classes, compiled the files and debug it, saved everything, closed the IDE and open it the next day and there it was, a message box "inconsistent line endings".
"Inconsistent line endings"-message box keeps popping up for an unknown reason.
I expect that the line endings are correct and so the "inconsistent line endings" message box won't pop up.
TAP Code (if applicable)
You can indicate your satisfaction with how Microsoft handled this issue by completing this quick
3 question survey
to post a comment.
Please enter a comment.
on 4/8/2009 at 1:45 PM
Thanks for the update. Based on this additional information, it seems this dialog is behaving as expected. For both Visual Studio 2008 and the VS 2010 release we're working on now, the editor does not automatically normalize line endings on save. We check line endings when opening a file but not when saving or closing it, which is why you saw the dialog when you reopen the file the next day.
As you've noticed, there is certainly room for improvement in detection and fixing of inconsistent line endings. Given the tight schedule for VS 2010, we won't be able to fix this for the current release, but we will revisit this issue and the line ending normalization feature overall for a future version of Visual Studio.
on 4/7/2009 at 11:51 PM
When I edited the file I paste a part into the file, it was copied from a web source - but if the line endings were different in the part pasted this should be fixed after saving the first time?
on 4/1/2009 at 4:28 PM
Thank you for reporting this issue. We looked at the solution you uploaded and found that the file test.cpp does contain inconsistent line endings. Some lines have both a line feed character and a carriage return whereas others only have the line feed, which explains why you were seeing the "Inconsistent Line Endings" dialog. What we're not sure about yet is what caused the inconsistent line endings.
If you can provide a bit more information, we'll be able to investigate further. Did you edit the file outside of Visual Studio? Did you run any macros or specific commands in VS when this happened?
Please note that you're under no obligation to respond or provide more information. If we don't hear from you within a week or so, I'll resolve this issue, but you'll be able to post more details or reactivate this bug at any time.
Thanks again for your feedback!
Program Manager, Visual Studio Platform
on 12/8/2008 at 7:27 AM
I have uploaded a new solution. The only file I edited is test.cpp and when opening it the inconsistent line endings message box pops up.
on 11/17/2008 at 3:39 PM
We are unable to reproduce this issue without an example file. Could you please upload the file or an example file that will cause this dialog to appear?
Thanks for you help!
Visual Studio Editor Team
on 11/13/2008 at 4:01 AM
Thanks for your feedback. We are escalating this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.
Visual Studio Product Team
to post a workaround.
Please enter a workaround.
© 2014 Microsoft