editorconfig-visualstudio
editorconfig-visualstudio copied to clipboard
VS2015 crashes with this plugin.
I have written my own .editorconfig with the help with https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference I have set every entry listed on this page. The .editorconfig works fine with VS2017. But will cause VS2015 crash with EditorConfig plugin installed. Whenever I open a editor, VS2015 crashes.
Call Stack:
EditorConfigWrapper.dll!45451f76() Unknown No symbols loaded. [Frames below may be incorrect and/or missing, no symbols loaded for EditorConfigWrapper.dll] Annotated Frame EditorConfigWrapper.dll!45453c88() Unknown No symbols loaded. EditorConfigWrapper.dll!4545448e() Unknown No symbols loaded. EditorConfigWrapper.dll!45454c0e() Unknown No symbols loaded. EditorConfigWrapper.dll!454549ce() Unknown No symbols loaded. EditorConfigWrapper.dll!45453f73() Unknown No symbols loaded. [Managed to Native Transition] Annotated Frame EditorConfigWrapper.dll!EditorConfig.Core.Parse(string filename) Unknown Non-user code. Skipped loading symbols. EditorConfigPlugin.dll!EditorConfig.VisualStudio.Plugin.LoadSettings(string path) Unknown Non-user code. Skipped loading symbols. EditorConfigPlugin.dll!EditorConfig.VisualStudio.Plugin.Plugin(Microsoft.VisualStudio.Text.Editor.IWpfTextView view, Microsoft.VisualStudio.Text.ITextDocument document, EnvDTE.DTE dte, Microsoft.VisualStudio.Shell.ErrorListProvider messageList, EditorConfig.VisualStudio.IViewSettingsContainer viewSettingsContainer) Unknown Non-user code. Skipped loading symbols. EditorConfigPlugin.dll!EditorConfig.VisualStudio.PluginFactory.TextViewCreated(Microsoft.VisualStudio.Text.Editor.IWpfTextView view) Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.BindContentTypeSpecificAssets.AnonymousMethod__1() Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(object errorSource, System.Action call) Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.BindContentTypeSpecificAssets(Microsoft.VisualStudio.Utilities.IContentType beforeContentType, Microsoft.VisualStudio.Utilities.IContentType afterContentType) Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.Initialize() Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextEditorFactoryService.InitializeTextView(Microsoft.VisualStudio.Text.Editor.IWpfTextView view) Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Init_InitializeWpfTextView() Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Init_OnActivation() Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.PreOuterQueryStatus(ref System.Guid pguidCmdGroup, uint cCmds, Microsoft.VisualStudio.OLE.Interop.OLECMD[] prgCmds) Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CompoundTextViewWindow.QueryStatus(ref System.Guid pguidCmdGroup, uint cCmds, Microsoft.VisualStudio.OLE.Interop.OLECMD[] prgCmds, System.IntPtr pCmdText) Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.QueryStatus(ref System.Guid pguidCmdGroup, uint cCmds, Microsoft.VisualStudio.OLE.Interop.OLECMD[] prgCmds, System.IntPtr pCmdText) Unknown Non-user code. Skipped loading symbols. Microsoft.VisualStudio.Platform.WindowManagement.dll!Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.QueryStatus(ref System.Guid pguidCmdGroup, uint cCmds, Microsoft.VisualStudio.OLE.Interop.OLECMD[] prgCmds, System.IntPtr pCmdText) Unknown Non-user code. Skipped loading symbols.
OutPut: 'devenv.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\pengdeng\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\pq2cjk5s.tyc\EditorConfigWrapper.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Unhandled exception at 0x45451F76 (EditorConfigWrapper.dll) in devenv.exe: Stack cookie instrumentation code detected a stack-based buffer overrun.
I have the same problem. In my case it caused the following line:
csharp_new_line_before_members_in_object_initializers = true
EditorConfig version downloaded today from here
The same configuration file works fine with Visual Studio 2017 Express (EditorConfig version downloaded today from here)
Another update. The cause was found, unfortunately, not the way how to fix it.
'Correct line': some_random_long_line_with_that_has_many_characters = true
(51 characters in name) do not crash the Visual Studio 2015, but the line another_very_long_line_and_with_even_more_characters=true
(52 characters in name) causes the crash of Visual Studio 2015.
Awesome! thanks. @JAD-SVK
This is a huge blocker, there are tons of settings with long names like csharp_space_between_method_declaration_empty_parameter_list_parentheses
and make this extension undeployable.