We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version Used:
VS2015 Update 2
Steps to Reproduce:
Expected Behavior:
No exception
Actual Behavior:
An exception is thrown and a message box is shown.
As can be seen from the call stack, 'length' param to Span's ctor is -2 which is invalid.
> Microsoft.VisualStudio.Text.Data.dll!Microsoft.VisualStudio.Text.Span..ctor(int start = 0x000000FA, int length = 0xFFFFFFFE) Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Implementation.BaseSnapshot.GetText(int startIndex = 0x000000FA, int length = 0xFFFFFFFE) Microsoft.CodeAnalysis.CSharp.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.CSharp.BlockCommentEditing.BlockCommentEditingCommandHandler.GetPaddingOrIndentation(Microsoft.VisualStudio.Text.ITextSnapshotLine currentLine = {Microsoft.VisualStudio.Text.Implementation.TextSnapshotLine}, int caretPosition = 0x000000F8, int firstNonWhitespacePosition = 0x000000F8, string exteriorText = "/*") Microsoft.CodeAnalysis.CSharp.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.CSharp.BlockCommentEditing.BlockCommentEditingCommandHandler.GetExteriorTextForNextLine(Microsoft.VisualStudio.Text.SnapshotPoint caretPosition = {Microsoft.VisualStudio.Text.SnapshotPoint}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.BlockCommentEditing.AbstractBlockCommentEditingCommandHandler.TryHandleReturnKey(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.BlockCommentEditing.AbstractBlockCommentEditingCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>.<ExecuteHandlers>b__1() Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.DocumentationComments.AbstractDocumentationCommentCommandHandler<Microsoft.CodeAnalysis.CSharp.Syntax.DocumentationCommentTriviaSyntax, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax>.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>.<ExecuteHandlers>b__1() Microsoft.VisualStudio.LanguageServices.dll!Microsoft.VisualStudio.LanguageServices.Implementation.Snippets.AbstractSnippetCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>.<ExecuteHandlers>b__1() Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.Controller.Microsoft.CodeAnalysis.Editor.ICommandHandler<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.ExecuteCommandWorker<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.Microsoft.CodeAnalysis.Editor.ICommandHandler<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>.<ExecuteHandlers>b__1() Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Formatting.FormatCommandHandler.ExecuteReturnOrTypeCommand(Microsoft.CodeAnalysis.Editor.CommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}, System.Threading.CancellationToken cancellationToken = {System.Threading.CancellationToken}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Formatting.FormatCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>.<ExecuteHandlers>b__1() Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Formatting.Indentation.AbstractSmartTokenFormatterCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.<>c__DisplayClass6_1`1<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>.<ExecuteHandlers>b__1() Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action nextHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>(System.Collections.Generic.IList<Microsoft.CodeAnalysis.Editor.ICommandHandler<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>> commandHandlers = {System.Collections.Generic.List<Microsoft.CodeAnalysis.Editor.ICommandHandler<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>>}, Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action lastHandler = {System.Action}) Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.Microsoft.CodeAnalysis.Editor.ICommandHandlerService.Execute<Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs>(Microsoft.VisualStudio.Utilities.IContentType contentType = {Microsoft.VisualStudio.Utilities.Implementation.ContentTypeImpl}, Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs args = {Microsoft.CodeAnalysis.Editor.Commands.ReturnKeyCommandArgs}, System.Action lastHandler = {System.Action}) Microsoft.VisualStudio.LanguageServices.dll!Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.ExecuteReturn(Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer = {Microsoft.VisualStudio.Text.Implementation.TextBuffer}, Microsoft.VisualStudio.Utilities.IContentType contentType = {Microsoft.VisualStudio.Utilities.Implementation.ContentTypeImpl}, System.Action executeNextCommandTarget = {System.Action}) Microsoft.VisualStudio.LanguageServices.dll!Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.ExecuteVisualStudio2000(ref System.Guid pguidCmdGroup = {System.Guid}, uint commandId = 0x00000003, uint executeInformation = 0x00000000, System.IntPtr pvaIn = 0x00000000, System.IntPtr pvaOut = 0x00000000, Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer = {Microsoft.VisualStudio.Text.Implementation.TextBuffer}, Microsoft.VisualStudio.Utilities.IContentType contentType = {Microsoft.VisualStudio.Utilities.Implementation.ContentTypeImpl}) Microsoft.VisualStudio.LanguageServices.dll!Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint commandId = 0x00000003, uint executeInformation = 0x00000000, System.IntPtr pvaIn = 0x00000000, System.IntPtr pvaOut = 0x00000000) Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 0x00000003, uint nCmdexecopt = 0x00000000, System.IntPtr pvaIn = 0x00000000, System.IntPtr pvaOut = 0x00000000) Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 0x00000003, uint nCmdexecopt = 0x00000000, System.IntPtr pvaIn = 0x00000000, System.IntPtr pvaOut = 0x00000000) Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 0x00000003, uint nCmdexecopt = 0x00000000, System.IntPtr pvaIn = 0x00000000, System.IntPtr pvaOut = 0x00000000) Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CompoundTextViewWindow.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 0x00000003, uint nCmdexecopt = 0x00000000, System.IntPtr pvaIn = 0x00000000, System.IntPtr pvaOut = 0x00000000) Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 0x00000003, uint nCmdexecopt = 0x00000000, System.IntPtr pvaIn = 0x00000000, System.IntPtr pvaOut = 0x00000000) Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 0x00000003, uint nCmdexecopt = 0x00000000, System.IntPtr pvaIn = 0x00000000, System.IntPtr pvaOut = 0x00000000) [Native to Managed Transition]
The text was updated successfully, but these errors were encountered:
Thanks // cc @DiryBoy
Sorry, something went wrong.
Thank you. This will be addressed at the same time with #11057
Thanks for bug report, this will appear in the next update of Visual Studio 2015.
DustinCampbell
No branches or pull requests
Version Used:
VS2015 Update 2
Steps to Reproduce:
Expected Behavior:
No exception
Actual Behavior:
An exception is thrown and a message box is shown.
As can be seen from the call stack, 'length' param to Span's ctor is -2 which is invalid.
The text was updated successfully, but these errors were encountered: