Closed devlead closed 5 years ago
CallStack from EventViewer
System.NullReferenceException
в Cake.VisualStudio.Helpers.Extensions.RequiresOffset(Microsoft.VisualStudio.Text.ITextSnapshotLine, System.String[])
в Cake.VisualStudio.Editor.SmartIndent.GetDesiredIndentation(Microsoft.VisualStudio.Text.ITextSnapshotLine)
в Microsoft.VisualStudio.Text.Editor.Implementation.SmartIndentationService.GetDesiredIndentation(Microsoft.VisualStudio.Text.Editor.ITextView, Microsoft.VisualStudio.Text.ITextSnapshotLine)
в Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.MapXCoordinate(Microsoft.VisualStudio.Text.Formatting.ITextViewLine, Double, Boolean)
в Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.MoveTo(Microsoft.VisualStudio.Text.Formatting.ITextViewLine, Double, Boolean)
в Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.MoveTo(Microsoft.VisualStudio.Text.Formatting.ITextViewLine, Double)
в Microsoft.VisualStudio.Text.Operations.Implementation.EditorOperations.MoveCaret(Microsoft.VisualStudio.Text.Formatting.ITextViewLine, Double, Boolean)
в Microsoft.VisualStudio.Text.Editor.Implementation.MasterMouseProcessor.HandleMouseLeftButtonDown(Boolean, Boolean, System.Windows.Point)
в Microsoft.VisualStudio.Text.Editor.Implementation.MasterMouseProcessor.DefaultMouseLeftButtonDownHandler(System.Object, System.Windows.Input.MouseButtonEventArgs)
в Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor+<>cDisplayClass34_0.1<Microsoft.VisualStudio.Text.Editor.IMouseProcessor>, System.Action, System.Action
1
Resolved by #87
@PradeepLoganathan commented on Wed Oct 25 2017
What You Are Seeing?
Cake extension is causing VS 2017 15.4.1 to crash constantly. It is replicable easily.
What is Expected?
Cake extension should not crash.
What version of Cake are you using?
Cake for Visual Studio 0.2.0.0
Are you running on a 32 or 64 bit system?
I am running a 64 bit system.
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
None yet.
How Did You Get This To Happen? (Steps to Reproduce)
After installing Cake for visual studio, I created a powershell bootstrapper and a cake.config file. I created a new build.cake file without any code. It crashes once this file is opened. I opened the file in notepad and it is empty.
Output Log
I do not have any output log for the issue. Trying to check if VS2017 has a log.
@SIkebe commented on Fri Oct 27 2017
There is a repository of Cake extension for Visual Studio. https://github.com/cake-build/cake-vs
You should probably raise an issue there.
@PradeepLoganathan commented on Fri Oct 27 2017
Will do thanks !!