-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata as Source completely breaks with tab indentation #4019
Comments
Exploring even further, it looks like setting indentation to use tabs instead of whitespace completely breaks all of MAS. |
It there any news when this bug will be resolved? We use tabs in our code agreements so it's very uncomfortable to switch tabs=>spaces=>tabs each time we need Go to definition. |
@anfomin The fix is ready for this issue. I will be sending a PR in few minutes. Writing a good testcase was a little tricky here. Sorry for the inconvenience. |
Fixes dotnet#4019 While formatting a complextrivia that falls as a end_of_tree trivia of a tree that is being formatted, adjust the span of the ComplexTrivia for formatting purposes
Fixes dotnet#4019 While formatting a complextrivia that falls as a end_of_tree trivia of a tree that is being formatted, adjust the span of the ComplexTrivia for formatting purposes
Is there any way to install this update to VS2015 RTM? |
Not at the moment. The current plan is that the fix will be part of VS2015 Update 1. |
@Pilchie oh... may be there is approximate release date for this update? It is very inconvenient to switch to spaces indentation when code agreements says to use tabs 👎 Thank you. |
So this is fixed but can't be one can't download the latest and update VS2015? What was all that talk about packages this and different release schedules that and components this. Wow I thought VS2015 and Roslyn was like RTM, should have know it would be useless until the first update to VS2015. |
There is a not-so-great workaround, but it would not be at all fun to have to put up with it for months before a fix comes out. |
Thanks, yes I'm aware that Rosyln was made for developers that use spaces instead of tabs but given we have 8 years of dev on our source code using tabs we aren't really ready to mix tabs with spaces just to use an unfinished, untested product that was rushed to release. |
@solidstock While the anger is probably justified, given VS's minimal handling of spacing as indentation (See any editors which treat spaces as tabs when navigating) and their lack of testing on this feature, it is likely that it won't actually assist in development. For now, I'm switching to spaces for my projects using TabSanity to assist in alleviating my seething hatred for such navigation issues. Smudge Filtration can be performed on working copies for git to allow you to work with spaces for the meantime while not screwing up and polluting your repository's version of the source. You'll lose the capability to analyse some situations with git's tools, but they should be compensated for by VS actually working correctly. If you're using submodules, the filters will likely mess with them, so you can apply to specific paths (.gitignore style) to ensure that only the targetted files get filtered. For example, my
Which will properly select only paths which exist in your index, ignoring those that are under .gitignore or not checked in. A note on usage: Sadly, I've found several flaws with this method that lead to issues... Git's extension for visual studio seems to create commits without applying the smudge filters, so command line or Tortoisegit are your only routes for committing when using this hack if you don't want to fill your repository with the wrong type of whitespace upon doing so. I've hence moved back to tabs, despite the pain, but it may be worth trying this method if you're willing to tolerate the edge case issues. |
|
@MaceWindu Yeah, I really wish bugfixes could be hotpatched over their extension system or something... |
@Pilchie : The current plan is that the fix will be part of VS2015 Update 1. This is such a generic statement. Can you be more specific like, oh you can use the new VS 2015 in December when we integrate this fix. |
@Dessix, talking about extension system: https://visualstudiogallery.msdn.microsoft.com/7c807aa8-40a4-4c75-9c46-e0ba8b34a367 |
@MaceWindu Holy crap, thank you! |
We are working on being able to ship hot fixes via extensions. Unfortunately, doing so requires changes to core VS components that are also being worked on for Update 1 😦 |
Any chance of a date estimate for when we can get back to real work, as @MaceWindu asked? |
I'm not allowed to talk about projected ship dates, but if you look back at the last 9 VS updates that have been released, you might be able to make a guess. |
Well, that's inspiring me to make a few extensions to help with the formatting issues as they arise... |
I thought patching apps like Visual Studio was a solved problem, as old as the computing hills. For example, here's a random hotfix for VS2010. Patching has been baked into Windows Installer since the beginning and is quite mature now. There is a cost for Microsoft to issue a hotfix. They need to build, test, and support it, and account for its presence or absence when supporting Visual Studio in general. It's not clear how shipping a hotfix as an extension simplifies any of this, if they're going to stand behind it. You'd think for a pinpoint bug fix like this, a hotfix would be low enough risk and cost that it would be worth it, especially if developer happiness is at stake. |
pathetic. get a QA team already. |
@MaceWindu Thanks ! |
FYI that this issue should be fixed in today's release of VS 2015 Update 1 CTP at http://blogs.msdn.com/b/visualstudio/archive/2015/10/08/visual-studio-2015-update-1-ctp.aspx. |
This is somewhat embarrassing and sad at the same time. Please write some tests for "Go To Definition" so similar situation will never happen again. Downloaded VS15 yesterday and still have this issue... |
I hope I have the privilege of someday working with all of you as after a 30-year career I have yet to work with a developer who has never introduced a silly bug into their code. I'm in awe how you all can write perfect code on the first try and have never shipped anything with a bug in it. My hats off to you gentlemen for such a stunning feat!
|
Oh, don't get me wrong. Bugs of course happen. What I find embarrassing is not the bug itself, but rather the fact that this particular bug was reported here on Jul 20 (release day), was fixed on Jul 29 and now we are here Oct 22 - nearly three months later - and the bug is still present in the newest version. I just think this is embarrassing and sad. Also, I have hit this bug the first five minutes of usage of VS and keep hitting it multiple times a day. I did not intend to blame any individual, and I am sorry if I did - you guys are doing great job! When I buy software for $500 I just expect something more than this from MS. This being said, VS could use some better/faster update mechanism to prevent things like this. |
Running the RTM build:
MAS completely fails on
Microsoft.VisualStudio.Settings.SettingsStore
.F12 shows an AggregateException message in a dialog. Peek just hangs. Attaching a debugger shows an ArgumentOutRange complaining the
start
is less thanend
from the following stack:The debugger reveals that the tokens being formatted are
It looks like the error comes when trying to format the
#endregion
The text was updated successfully, but these errors were encountered: