Consistent 2.5.318.36 code formatter crash...

The attached class consistently causes the Resharper 2.5.318.36 code
formatter to crash with the following message:


JetBrains.ReSharper.Util.InternalErrorException: Write lock should be
acquired. See Shell.AcquireWriteLock().
An exception has occurred --->
JetBrains.ReSharper.Util.InternalErrorException: Write lock should be
acquired. See Shell.AcquireWriteLock().

at JetBrains.ReSharper.Util.InternalErrorException..ctor(String, Exception)
in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\InternalErrorException.cs:line
28 column 7
at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 144 column 9
at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137 column 5
at JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowed()
in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line
661 column 5
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChild(ITreeNode,
T) in
c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\ModificationUtil.cs:line
135 column 7
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeElementWithSubstitution(IQualifiableReference,
ITypeElement, ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpReferenceUtil.cs:line
527 column 55
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenceTo(IQualifiableReference,
IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpReferenceUtil.cs:line
1201 column 11
at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(IDeclaredElement,
ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\ReferenceName.cs:line
335 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(IReference)
in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
292 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegisteredReferences(IFile,
ReferenceCollection2, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
154 column 9
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFile,
DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
70 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFile,
Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
24 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithProgress(IProgressIndicator)
in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
255 column 19
at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
387 column 11
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode,
CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback,
Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
487 column 9
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
314 column 9
at
JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelper,
String, Boolean, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
577 column 9
at
JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(TaskWithProgress,
String, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgressWindow.cs:line
15 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.FormatFiles(Context,
ReformatCodeOptions) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
145 column 11
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Execute(IDataContext,
DelegateExecute) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
83 column 13
at
JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\ExecutableAction.cs:line
25 column 13
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction,
IDataContext) in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
530 column 11
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
510 column 5
at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
vsCommandExecOption, Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSActionManager.cs:line
491 column 11
at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 260 column
7
at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&, UInt32,
UInt32, IntPtr, IntPtr)
at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
UInt32, IntPtr, IntPtr) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSTextControl.cs:line
620 column 13
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr,
Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
at System.Windows.Forms.NativeWindow.WndProc(Message&)
at JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Windows\VsEditorParentWindow.cs:line
225 column 11
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)

at JetBrains.ReSharper.Util.Logger.Fail(String messageFormat, Object[]
args) in c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 144
--- End of inner exception stack trace ---

at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
Boolean) in c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line
350 column 9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 362 column 5
at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 148 column 9
at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137 column 5
at JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowed()
in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line
661 column 5
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChild(ITreeNode,
T) in
c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\ModificationUtil.cs:line
135 column 7
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeElementWithSubstitution(IQualifiableReference,
ITypeElement, ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpReferenceUtil.cs:line
527 column 55
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenceTo(IQualifiableReference,
IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpReferenceUtil.cs:line
1201 column 11
at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(IDeclaredElement,
ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\ReferenceName.cs:line
335 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(IReference)
in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
292 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegisteredReferences(IFile,
ReferenceCollection2, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
154 column 9
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFile,
DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
70 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFile,
Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
24 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithProgress(IProgressIndicator)
in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
255 column 19
at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
387 column 11
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode,
CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback,
Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
487 column 9
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
314 column 9
at
JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelper,
String, Boolean, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
577 column 9
at
JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(TaskWithProgress,
String, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgressWindow.cs:line
15 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.FormatFiles(Context,
ReformatCodeOptions) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
145 column 11
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Execute(IDataContext,
DelegateExecute) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
83 column 13
at
JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\ExecutableAction.cs:line
25 column 13
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction,
IDataContext) in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
530 column 11
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
510 column 5
at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
vsCommandExecOption, Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSActionManager.cs:line
491 column 11
at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 260 column
7
at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&, UInt32,
UInt32, IntPtr, IntPtr)
at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
UInt32, IntPtr, IntPtr) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSTextControl.cs:line
620 column 13
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr,
Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
at System.Windows.Forms.NativeWindow.WndProc(Message&)
at JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Windows\VsEditorParentWindow.cs:line
225 column 11
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)





Attachment(s):
Crash.zip
4 comments
Comment actions Permalink

Hello Nathan,
RC 319 was released early this morning.

The attached class consistently causes the Resharper 2.5.318.36 code
formatter to crash with the following message:

JetBrains.ReSharper.Util.InternalErrorException: Write lock should be
acquired. See Shell.AcquireWriteLock().
An exception has occurred --->
JetBrains.ReSharper.Util.InternalErrorException: Write lock should be
acquired. See Shell.AcquireWriteLock().
at JetBrains.ReSharper.Util.InternalErrorException..ctor(String,
Exception)
in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\InternalErrorException.
cs:line
28 column 7
at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 144
column 9
at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[])
in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137
column 5
at
JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowed(
)
in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:
line
661 column 5
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChi
ld(ITreeNode,
T) in
c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\Modificati
onUtil.cs:line
135 column 7
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeElem
entWithSubstitution(IQualifiableReference,
ITypeElement, ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefere
nceUtil.cs:line
527 column 55
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenceT
o(IQualifiableReference,
IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefere
nceUtil.cs:line
1201 column 11
at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(IDec
laredElement,
ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\Referen
ceName.cs:line
335 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(IR
eference)
in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
gs2.cs:line
292 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegisteredRe
ferences(IFile,
ReferenceCollection2, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
gs2.cs:line
154 column 9
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFi
le,
DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
gs2.cs:line
70 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFi
le,
Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
gs2.cs:line
24 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithProgr
ess(IProgressIndicator)
in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
ormatCodeAction.cs:line
255 column 19
at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
w.cs:line
387 column 11
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEnt
ry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarante
edCleanup(TryCode,
CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext,
ContextCallback,
Object)
at
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry
)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at
JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
w.cs:line
487 column 9
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
Int32,
IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
w.cs:line
314 column 9
at
JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelp
er,
String, Boolean, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
w.cs:line
577 column 9
at
JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(Task
WithProgress,
String, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgressW
indow.cs:line
15 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Fo
rmatFiles(Context,
ReformatCodeOptions) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
ormatCodeAction.cs:line
145 column 11
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Ex
ecute(IDataContext,
DelegateExecute) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
ormatCodeAction.cs:line
83 column 13
at
JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataCon
text)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\Exec
utableAction.cs:line
25 column 13
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(I
ExecutableAction,
IDataContext) in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManag
er\ActionManagerBase.cs:line
530 column 11
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(I
ExecutableAction)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManag
er\ActionManagerBase.cs:line
510 column 5
at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
vsCommandExecOption, Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSA
ctionManager.cs:line
491 column 11
at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 260
column
7
at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&,
UInt32,
UInt32, IntPtr, IntPtr)
at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
UInt32, IntPtr, IntPtr) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSTextCo
ntrol.cs:line
620 column 13
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr,
IntPtr,
Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
at System.Windows.Forms.NativeWindow.WndProc(Message&)
at
JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&)
in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Windows\
VsEditorParentWindow.cs:line
225 column 11
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
Int32,
IntPtr, IntPtr)
at JetBrains.ReSharper.Util.Logger.Fail(String messageFormat,
Object[]
args) in c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line
144
--- End of inner exception stack trace ---
at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
Boolean) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line
350 column 9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 362
column 5
at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 148
column 9
at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[])
in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137
column 5
at
JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowed(
)
in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:
line
661 column 5
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChi
ld(ITreeNode,
T) in
c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\Modificati
onUtil.cs:line
135 column 7
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeElem
entWithSubstitution(IQualifiableReference,
ITypeElement, ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefere
nceUtil.cs:line
527 column 55
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenceT
o(IQualifiableReference,
IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefere
nceUtil.cs:line
1201 column 11
at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(IDec
laredElement,
ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\Referen
ceName.cs:line
335 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(IR
eference)
in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
gs2.cs:line
292 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegisteredRe
ferences(IFile,
ReferenceCollection2, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
gs2.cs:line
154 column 9
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFi
le,
DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
gs2.cs:line
70 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFi
le,
Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
gs2.cs:line
24 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithProgr
ess(IProgressIndicator)
in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
ormatCodeAction.cs:line
255 column 19
at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
w.cs:line
387 column 11
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEnt
ry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarante
edCleanup(TryCode,
CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext,
ContextCallback,
Object)
at
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry
)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at
JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
w.cs:line
487 column 9
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
Int32,
IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
w.cs:line
314 column 9
at
JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelp
er,
String, Boolean, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
w.cs:line
577 column 9
at
JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(Task
WithProgress,
String, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgressW
indow.cs:line
15 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Fo
rmatFiles(Context,
ReformatCodeOptions) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
ormatCodeAction.cs:line
145 column 11
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Ex
ecute(IDataContext,
DelegateExecute) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
ormatCodeAction.cs:line
83 column 13
at
JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataCon
text)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\Exec
utableAction.cs:line
25 column 13
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(I
ExecutableAction,
IDataContext) in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManag
er\ActionManagerBase.cs:line
530 column 11
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(I
ExecutableAction)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManag
er\ActionManagerBase.cs:line
510 column 5
at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
vsCommandExecOption, Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSA
ctionManager.cs:line
491 column 11
at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 260
column
7
at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&,
UInt32,
UInt32, IntPtr, IntPtr)
at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
UInt32, IntPtr, IntPtr) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSTextCo
ntrol.cs:line
620 column 13
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr,
IntPtr,
Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
at System.Windows.Forms.NativeWindow.WndProc(Message&)
at
JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&)
in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Windows\
VsEditorParentWindow.cs:line
225 column 11
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
Int32,
IntPtr, IntPtr)



0
Comment actions Permalink

Fixed in 321 build.
Thank you for reporting!

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Nathan Baulch" <nathan.baulch@gmail.com> wrote in message
news:el5135$2ef$1@is.intellij.net...

The attached class consistently causes the Resharper 2.5.318.36 code
formatter to crash with the following message:

>
>

JetBrains.ReSharper.Util.InternalErrorException: Write lock should be
acquired. See Shell.AcquireWriteLock().
An exception has occurred --->
JetBrains.ReSharper.Util.InternalErrorException: Write lock should be
acquired. See Shell.AcquireWriteLock().

>

at JetBrains.ReSharper.Util.InternalErrorException..ctor(String,
Exception) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\InternalErrorException.cs:line
28 column 7
at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 144 column 9
at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137 column 5
at JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowed()
in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line
661 column 5
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChild(ITreeNode,
T) in
c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\ModificationUtil.cs:line
135 column 7
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeElementWithSubstitution(IQualifiableReference,
ITypeElement, ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpReferenceUtil.cs:line
527 column 55
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenceTo(IQualifiableReference,
IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpReferenceUtil.cs:line
1201 column 11
at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(IDeclaredElement,
ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\ReferenceName.cs:line
335 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(IReference)
in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
292 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegisteredReferences(IFile,
ReferenceCollection2, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
154 column 9
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFile,
DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
70 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFile,
Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
24 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithProgress(IProgressIndicator)
in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
255 column 19
at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
387 column 11
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode,
CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext,
ContextCallback, Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
487 column 9
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
314 column 9
at
JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelper,
String, Boolean, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
577 column 9
at
JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(TaskWithProgress,
String, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgressWindow.cs:line
15 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.FormatFiles(Context,
ReformatCodeOptions) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
145 column 11
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Execute(IDataContext,
DelegateExecute) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
83 column 13
at
JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\ExecutableAction.cs:line
25 column 13
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction,
IDataContext) in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
530 column 11
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
510 column 5
at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
vsCommandExecOption, Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSActionManager.cs:line
491 column 11
at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 260
column 7
at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&,
UInt32, UInt32, IntPtr, IntPtr)
at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
UInt32, IntPtr, IntPtr) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSTextControl.cs:line
620 column 13
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr,
Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
at System.Windows.Forms.NativeWindow.WndProc(Message&)
at JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Windows\VsEditorParentWindow.cs:line
225 column 11
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)

>

at JetBrains.ReSharper.Util.Logger.Fail(String messageFormat, Object[]
args) in c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 144
--- End of inner exception stack trace ---

>

at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
Boolean) in c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line
350 column 9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 362 column 5
at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 148 column 9
at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[]) in
c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137 column 5
at JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowed()
in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line
661 column 5
at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChild(ITreeNode,
T) in
c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\ModificationUtil.cs:line
135 column 7
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeElementWithSubstitution(IQualifiableReference,
ITypeElement, ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpReferenceUtil.cs:line
527 column 55
at
JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenceTo(IQualifiableReference,
IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpReferenceUtil.cs:line
1201 column 11
at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(IDeclaredElement,
ISubstitution) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\ReferenceName.cs:line
335 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(IReference)
in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
292 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegisteredReferences(IFile,
ReferenceCollection2, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
154 column 9
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFile,
DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
70 column 7
at
JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFile,
Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsings2.cs:line
24 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithProgress(IProgressIndicator)
in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
255 column 19
at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
387 column 11
at
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode,
CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext,
ContextCallback, Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
487 column 9
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
ApplicationContext)
at System.Windows.Forms.Form.ShowDialog(IWin32Window)
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
314 column 9
at
JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelper,
String, Boolean, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindow.cs:line
577 column 9
at
JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(TaskWithProgress,
String, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgressWindow.cs:line
15 column 7
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.FormatFiles(Context,
ReformatCodeOptions) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
145 column 11
at
JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Execute(IDataContext,
DelegateExecute) in
c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line
83 column 13
at
JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\ExecutableAction.cs:line
25 column 13
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction,
IDataContext) in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
530 column 11
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction)
in
c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
510 column 5
at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
vsCommandExecOption, Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSActionManager.cs:line
491 column 11
at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
Object&, Object&, Boolean&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 260
column 7
at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&,
UInt32, UInt32, IntPtr, IntPtr)
at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
UInt32, IntPtr, IntPtr) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSTextControl.cs:line
620 column 13
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr,
Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
at System.Windows.Forms.NativeWindow.WndProc(Message&)
at JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&) in
c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Windows\VsEditorParentWindow.cs:line
225 column 11
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32,
IntPtr, IntPtr)

>



0
Comment actions Permalink

Typo! I meant to say 2.5.319.36 :)

"Matthew Moody" <mgmoody@nospam.com> wrote in message
news:987a13602ea538c8e6c079698ee8@news.jetbrains.com...

Hello Nathan,
RC 319 was released early this morning.

>
>> The attached class consistently causes the Resharper 2.5.318.36 code
>> formatter to crash with the following message:
>>
>> JetBrains.ReSharper.Util.InternalErrorException: Write lock should be
>> acquired. See Shell.AcquireWriteLock().
>> An exception has occurred --->
>> JetBrains.ReSharper.Util.InternalErrorException: Write lock should be
>> acquired. See Shell.AcquireWriteLock().
>> at JetBrains.ReSharper.Util.InternalErrorException..ctor(String,
>> Exception)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\InternalErrorException.
>> cs:line
>> 28 column 7
>> at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 144
>> column 9
>> at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[])
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137
>> column 5
>> at
>> JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowed(
>> )
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:
>> line
>> 661 column 5
>> at
>> JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChi
>> ld(ITreeNode,
>> T) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\Modificati
>> onUtil.cs:line
>> 135 column 7
>> at
>> JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeElem
>> entWithSubstitution(IQualifiableReference,
>> ITypeElement, ISubstitution) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefere
>> nceUtil.cs:line
>> 527 column 55
>> at
>> JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenceT
>> o(IQualifiableReference,
>> IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefere
>> nceUtil.cs:line
>> 1201 column 11
>> at
>> JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(IDec
>> laredElement,
>> ISubstitution) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\Referen
>> ceName.cs:line
>> 335 column 7
>> at
>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(IR
>> eference)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
>> gs2.cs:line
>> 292 column 7
>> at
>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegisteredRe
>> ferences(IFile,
>> ReferenceCollection2, IProgressIndicator) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
>> gs2.cs:line
>> 154 column 9
>> at
>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFi
>> le,
>> DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
>> gs2.cs:line
>> 70 column 7
>> at
>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFi
>> le,
>> Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
>> gs2.cs:line
>> 24 column 7
>> at
>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithProgr
>> ess(IProgressIndicator)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
>> ormatCodeAction.cs:line
>> 255 column 19
>> at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
>> w.cs:line
>> 387 column 11
>> at
>> System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEnt
>> ry)
>> at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
>> at System.Threading.ExecutionContext.runTryCode(Object)
>> at
>> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarante
>> edCleanup(TryCode,
>> CleanupCode, Object)
>> at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
>> ContextCallback, Object)
>> at System.Threading.ExecutionContext.Run(ExecutionContext,
>> ContextCallback,
>> Object)
>> at
>> System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry
>> )
>> at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
>> at System.Windows.Forms.Control.WndProc(Message&)
>> at System.Windows.Forms.ScrollableControl.WndProc(Message&)
>> at System.Windows.Forms.ContainerControl.WndProc(Message&)
>> at System.Windows.Forms.Form.WndProc(Message&)
>> at
>> JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&) in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
>> w.cs:line
>> 487 column 9
>> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
>> at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
>> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
>> Int32,
>> IntPtr, IntPtr)
>> at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
>> at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
>> at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
>> ApplicationContext)
>> at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
>> ApplicationContext)
>> at System.Windows.Forms.Form.ShowDialog(IWin32Window)
>> at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
>> w.cs:line
>> 314 column 9
>> at
>> JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelp
>> er,
>> String, Boolean, Boolean&) in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
>> w.cs:line
>> 577 column 9
>> at
>> JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(Task
>> WithProgress,
>> String, Boolean&) in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgressW
>> indow.cs:line
>> 15 column 7
>> at
>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Fo
>> rmatFiles(Context,
>> ReformatCodeOptions) in
>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
>> ormatCodeAction.cs:line
>> 145 column 11
>> at
>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Ex
>> ecute(IDataContext,
>> DelegateExecute) in
>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
>> ormatCodeAction.cs:line
>> 83 column 13
>> at
>> JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataCon
>> text)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\Exec
>> utableAction.cs:line
>> 25 column 13
>> at
>> JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(I
>> ExecutableAction,
>> IDataContext) in
>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManag
>> er\ActionManagerBase.cs:line
>> 530 column 11
>> at
>> JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(I
>> ExecutableAction)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManag
>> er\ActionManagerBase.cs:line
>> 510 column 5
>> at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
>> vsCommandExecOption, Object&, Object&, Boolean&) in
>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSA
>> ctionManager.cs:line
>> 491 column 11
>> at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
>> Object&, Object&, Boolean&) in
>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 260
>> column
>> 7
>> at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&,
>> UInt32,
>> UInt32, IntPtr, IntPtr)
>> at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
>> UInt32, IntPtr, IntPtr) in
>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSTextCo
>> ntrol.cs:line
>> 620 column 13
>> at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr,
>> IntPtr,
>> Int32, IntPtr, IntPtr)
>> at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
>> at System.Windows.Forms.NativeWindow.WndProc(Message&)
>> at
>> JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Windows\
>> VsEditorParentWindow.cs:line
>> 225 column 11
>> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
>> Int32,
>> IntPtr, IntPtr)
>> at JetBrains.ReSharper.Util.Logger.Fail(String messageFormat,
>> Object[]
>> args) in c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line
>> 144
>> --- End of inner exception stack trace ---
>> at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
>> Boolean) in
>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line
>> 350 column 9
>> at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 362
>> column 5
>> at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 148
>> column 9
>> at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[])
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137
>> column 5
>> at
>> JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowed(
>> )
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:
>> line
>> 661 column 5
>> at
>> JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChi
>> ld(ITreeNode,
>> T) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\Modificati
>> onUtil.cs:line
>> 135 column 7
>> at
>> JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeElem
>> entWithSubstitution(IQualifiableReference,
>> ITypeElement, ISubstitution) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefere
>> nceUtil.cs:line
>> 527 column 55
>> at
>> JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenceT
>> o(IQualifiableReference,
>> IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefere
>> nceUtil.cs:line
>> 1201 column 11
>> at
>> JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(IDec
>> laredElement,
>> ISubstitution) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\Referen
>> ceName.cs:line
>> 335 column 7
>> at
>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(IR
>> eference)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
>> gs2.cs:line
>> 292 column 7
>> at
>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegisteredRe
>> ferences(IFile,
>> ReferenceCollection2, IProgressIndicator) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
>> gs2.cs:line
>> 154 column 9
>> at
>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFi
>> le,
>> DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
>> gs2.cs:line
>> 70 column 7
>> at
>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharpFi
>> le,
>> Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUsin
>> gs2.cs:line
>> 24 column 7
>> at
>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithProgr
>> ess(IProgressIndicator)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
>> ormatCodeAction.cs:line
>> 255 column 19
>> at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
>> w.cs:line
>> 387 column 11
>> at
>> System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEnt
>> ry)
>> at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
>> at System.Threading.ExecutionContext.runTryCode(Object)
>> at
>> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarante
>> edCleanup(TryCode,
>> CleanupCode, Object)
>> at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
>> ContextCallback, Object)
>> at System.Threading.ExecutionContext.Run(ExecutionContext,
>> ContextCallback,
>> Object)
>> at
>> System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry
>> )
>> at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
>> at System.Windows.Forms.Control.WndProc(Message&)
>> at System.Windows.Forms.ScrollableControl.WndProc(Message&)
>> at System.Windows.Forms.ContainerControl.WndProc(Message&)
>> at System.Windows.Forms.Form.WndProc(Message&)
>> at
>> JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&) in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
>> w.cs:line
>> 487 column 9
>> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
>> at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
>> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
>> Int32,
>> IntPtr, IntPtr)
>> at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
>> at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
>> at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
>> ApplicationContext)
>> at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
>> ApplicationContext)
>> at System.Windows.Forms.Form.ShowDialog(IWin32Window)
>> at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
>> w.cs:line
>> 314 column 9
>> at
>> JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelp
>> er,
>> String, Boolean, Boolean&) in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWindo
>> w.cs:line
>> 577 column 9
>> at
>> JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(Task
>> WithProgress,
>> String, Boolean&) in
>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgressW
>> indow.cs:line
>> 15 column 7
>> at
>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Fo
>> rmatFiles(Context,
>> ReformatCodeOptions) in
>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
>> ormatCodeAction.cs:line
>> 145 column 11
>> at
>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Ex
>> ecute(IDataContext,
>> DelegateExecute) in
>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\Ref
>> ormatCodeAction.cs:line
>> 83 column 13
>> at
>> JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataCon
>> text)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\Exec
>> utableAction.cs:line
>> 25 column 13
>> at
>> JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(I
>> ExecutableAction,
>> IDataContext) in
>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManag
>> er\ActionManagerBase.cs:line
>> 530 column 11
>> at
>> JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(I
>> ExecutableAction)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionManag
>> er\ActionManagerBase.cs:line
>> 510 column 5
>> at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
>> vsCommandExecOption, Object&, Object&, Boolean&) in
>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSA
>> ctionManager.cs:line
>> 491 column 11
>> at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
>> Object&, Object&, Boolean&) in
>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 260
>> column
>> 7
>> at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&,
>> UInt32,
>> UInt32, IntPtr, IntPtr)
>> at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
>> UInt32, IntPtr, IntPtr) in
>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSTextCo
>> ntrol.cs:line
>> 620 column 13
>> at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr,
>> IntPtr,
>> Int32, IntPtr, IntPtr)
>> at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
>> at System.Windows.Forms.NativeWindow.WndProc(Message&)
>> at
>> JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&)
>> in
>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Windows\
>> VsEditorParentWindow.cs:line
>> 225 column 11
>> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
>> Int32,
>> IntPtr, IntPtr)
>



0
Comment actions Permalink

Hello Nathan,

been there, done that ;)

Typo! I meant to say 2.5.319.36 :)

"Matthew Moody" <mgmoody@nospam.com> wrote in message
news:987a13602ea538c8e6c079698ee8@news.jetbrains.com...

>> Hello Nathan,
>> RC 319 was released early this morning.
>>> The attached class consistently causes the Resharper 2.5.318.36 code
>>> formatter to crash with the following message:
>>>
>>> JetBrains.ReSharper.Util.InternalErrorException: Write lock should
>>> be
>>> acquired. See Shell.AcquireWriteLock().
>>> An exception has occurred --->
>>> JetBrains.ReSharper.Util.InternalErrorException: Write lock should
>>> be
>>> acquired. See Shell.AcquireWriteLock().
>>> at JetBrains.ReSharper.Util.InternalErrorException..ctor(String,
>>> Exception)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\InternalErrorExceptio
>>> n.
>>> cs:line
>>> 28 column 7
>>> at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 144
>>> column 9
>>> at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[])
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137
>>> column 5
>>> at
>>> JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowe
>>> d(
>>> )
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.c
>>> s:
>>> line
>>> 661 column 5
>>> at
>>> JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceC
>>> hi
>>> ld(ITreeNode,
>>> T) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\Modifica
>>> ti
>>> onUtil.cs:line
>>> 135 column 7
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeEl
>>> em
>>> entWithSubstitution(IQualifiableReference,
>>> ITypeElement, ISubstitution) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefe
>>> re
>>> nceUtil.cs:line
>>> 527 column 55
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenc
>>> eT
>>> o(IQualifiableReference,
>>> IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefe
>>> re
>>> nceUtil.cs:line
>>> 1201 column 11
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(ID
>>> ec
>>> laredElement,
>>> ISubstitution) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\Refer
>>> en
>>> ceName.cs:line
>>> 335 column 7
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(
>>> IR
>>> eference)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUs
>>> in
>>> gs2.cs:line
>>> 292 column 7
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegistered
>>> Re
>>> ferences(IFile,
>>> ReferenceCollection2, IProgressIndicator) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUs
>>> in
>>> gs2.cs:line
>>> 154 column 9
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharp
>>> Fi
>>> le,
>>> DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUs
>>> in
>>> gs2.cs:line
>>> 70 column 7
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharp
>>> Fi
>>> le,
>>> Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUs
>>> in
>>> gs2.cs:line
>>> 24 column 7
>>> at
>>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithPro
>>> gr
>>> ess(IProgressIndicator)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\R
>>> ef
>>> ormatCodeAction.cs:line
>>> 255 column 19
>>> at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWin
>>> do
>>> w.cs:line
>>> 387 column 11
>>> at
>>> System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodE
>>> nt
>>> ry)
>>> at
>>> System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
>>> at System.Threading.ExecutionContext.runTryCode(Object)
>>> at
>>> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaran
>>> te
>>> edCleanup(TryCode,
>>> CleanupCode, Object)
>>> at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
>>> ContextCallback, Object)
>>> at System.Threading.ExecutionContext.Run(ExecutionContext,
>>> ContextCallback,
>>> Object)
>>> at
>>> System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEnt
>>> ry
>>> )
>>> at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
>>> at System.Windows.Forms.Control.WndProc(Message&)
>>> at System.Windows.Forms.ScrollableControl.WndProc(Message&)
>>> at System.Windows.Forms.ContainerControl.WndProc(Message&)
>>> at System.Windows.Forms.Form.WndProc(Message&)
>>> at
>>> JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWin
>>> do
>>> w.cs:line
>>> 487 column 9
>>> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
>>> at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
>>> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
>>> Int32,
>>> IntPtr, IntPtr)
>>> at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
>>> at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
>>> at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
>>> ApplicationContext)
>>> at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
>>> ApplicationContext)
>>> at System.Windows.Forms.Form.ShowDialog(IWin32Window)
>>> at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWin
>>> do
>>> w.cs:line
>>> 314 column 9
>>> at
>>> JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHe
>>> lp
>>> er,
>>> String, Boolean, Boolean&) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWin
>>> do
>>> w.cs:line
>>> 577 column 9
>>> at
>>> JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(Ta
>>> sk
>>> WithProgress,
>>> String, Boolean&) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgres
>>> sW
>>> indow.cs:line
>>> 15 column 7
>>> at
>>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.
>>> Fo
>>> rmatFiles(Context,
>>> ReformatCodeOptions) in
>>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\R
>>> ef
>>> ormatCodeAction.cs:line
>>> 145 column 11
>>> at
>>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.
>>> Ex
>>> ecute(IDataContext,
>>> DelegateExecute) in
>>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\R
>>> ef
>>> ormatCodeAction.cs:line
>>> 83 column 13
>>> at
>>> JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataC
>>> on
>>> text)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\Ex
>>> ec
>>> utableAction.cs:line
>>> 25 column 13
>>> at
>>> JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction
>>> (I
>>> ExecutableAction,
>>> IDataContext) in
>>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionMan
>>> ag
>>> er\ActionManagerBase.cs:line
>>> 530 column 11
>>> at
>>> JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction
>>> (I
>>> ExecutableAction)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionMan
>>> ag
>>> er\ActionManagerBase.cs:line
>>> 510 column 5
>>> at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
>>> vsCommandExecOption, Object&, Object&, Boolean&) in
>>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\V
>>> SA
>>> ctionManager.cs:line
>>> 491 column 11
>>> at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
>>> Object&, Object&, Boolean&) in
>>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line
>>> 260
>>> column
>>> 7
>>> at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&,
>>> UInt32,
>>> UInt32, IntPtr, IntPtr)
>>> at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
>>> UInt32, IntPtr, IntPtr) in
>>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSText
>>> Co
>>> ntrol.cs:line
>>> 620 column 13
>>> at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr,
>>> IntPtr,
>>> Int32, IntPtr, IntPtr)
>>> at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
>>> at System.Windows.Forms.NativeWindow.WndProc(Message&)
>>> at
>>> JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Window
>>> s\
>>> VsEditorParentWindow.cs:line
>>> 225 column 11
>>> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
>>> Int32,
>>> IntPtr, IntPtr)
>>> at JetBrains.ReSharper.Util.Logger.Fail(String messageFormat,
>>> Object[]
>>> args) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line
>>> 144
>>> --- End of inner exception stack trace ---
>>> at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
>>> Boolean) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line
>>> 350 column 9
>>> at JetBrains.ReSharper.Util.Logger.LogException(Exception) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 362
>>> column 5
>>> at JetBrains.ReSharper.Util.Logger.Fail(String, Object[]) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 148
>>> column 9
>>> at JetBrains.ReSharper.Util.Logger.Assert(Boolean, String, Object[])
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Util\src\Logger.cs:line 137
>>> column 5
>>> at
>>> JetBrains.ReSharper.Shell.UIApplicationShell.AssertWriteAccessAllowe
>>> d(
>>> )
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.c
>>> s:
>>> line
>>> 661 column 5
>>> at
>>> JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceC
>>> hi
>>> ld(ITreeNode,
>>> T) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi\src\ExtensionsAPI\Modifica
>>> ti
>>> onUtil.cs:line
>>> 135 column 7
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindToTypeEl
>>> em
>>> entWithSubstitution(IQualifiableReference,
>>> ITypeElement, ISubstitution) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefe
>>> re
>>> nceUtil.cs:line
>>> 527 column 55
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Impl.CSharpReferenceUtil.BindReferenc
>>> eT
>>> o(IQualifiableReference,
>>> IDeclaredElement, ISubstitution, ICSharpIdentifierNode) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\CSharpRefe
>>> re
>>> nceUtil.cs:line
>>> 1201 column 11
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ReferenceNameStub.BindTo(ID
>>> ec
>>> laredElement,
>>> ISubstitution) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Impl\Tree\Refer
>>> en
>>> ceName.cs:line
>>> 335 column 7
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindReference(
>>> IR
>>> eference)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUs
>>> in
>>> gs2.cs:line
>>> 292 column 7
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.ReBindRegistered
>>> Re
>>> ferences(IFile,
>>> ReferenceCollection2, IProgressIndicator) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUs
>>> in
>>> gs2.cs:line
>>> 154 column 9
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharp
>>> Fi
>>> le,
>>> DocumentRange, Boolean, Boolean, Boolean, IProgressIndicator) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUs
>>> in
>>> gs2.cs:line
>>> 70 column 7
>>> at
>>> JetBrains.ReSharper.Psi.CSharp.Util.OptimizeUsings2.Optimize(ICSharp
>>> Fi
>>> le,
>>> Boolean, Boolean, Boolean, Int32, IProgressIndicator) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Psi.CSharp\src\Util\OptimizeUs
>>> in
>>> gs2.cs:line
>>> 24 column 7
>>> at
>>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReFormatter.TaskWithPro
>>> gr
>>> ess(IProgressIndicator)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\R
>>> ef
>>> ormatCodeAction.cs:line
>>> 255 column 19
>>> at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWin
>>> do
>>> w.cs:line
>>> 387 column 11
>>> at
>>> System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodE
>>> nt
>>> ry)
>>> at
>>> System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
>>> at System.Threading.ExecutionContext.runTryCode(Object)
>>> at
>>> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaran
>>> te
>>> edCleanup(TryCode,
>>> CleanupCode, Object)
>>> at System.Threading.ExecutionContext.RunInternal(ExecutionContext,
>>> ContextCallback, Object)
>>> at System.Threading.ExecutionContext.Run(ExecutionContext,
>>> ContextCallback,
>>> Object)
>>> at
>>> System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEnt
>>> ry
>>> )
>>> at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
>>> at System.Windows.Forms.Control.WndProc(Message&)
>>> at System.Windows.Forms.ScrollableControl.WndProc(Message&)
>>> at System.Windows.Forms.ContainerControl.WndProc(Message&)
>>> at System.Windows.Forms.Form.WndProc(Message&)
>>> at
>>> JetBrains.ReSharper.Shell.Progress.ProgressWindow.WndProc(Message&)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWin
>>> do
>>> w.cs:line
>>> 487 column 9
>>> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
>>> at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
>>> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
>>> Int32,
>>> IntPtr, IntPtr)
>>> at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
>>> at System.Windows.Forms.ThreadContext.LocalModalMessageLoop(Form)
>>> at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32,
>>> ApplicationContext)
>>> at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32,
>>> ApplicationContext)
>>> at System.Windows.Forms.Form.ShowDialog(IWin32Window)
>>> at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ShowDialog() in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWin
>>> do
>>> w.cs:line
>>> 314 column 9
>>> at
>>> JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHe
>>> lp
>>> er,
>>> String, Boolean, Boolean&) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\ProgressWin
>>> do
>>> w.cs:line
>>> 577 column 9
>>> at
>>> JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(Ta
>>> sk
>>> WithProgress,
>>> String, Boolean&) in
>>> c:\BuildAgent\work\ReSharper-Main\src\Shell\src\Progress\SyncProgres
>>> sW
>>> indow.cs:line
>>> 15 column 7
>>> at
>>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.
>>> Fo
>>> rmatFiles(Context,
>>> ReformatCodeOptions) in
>>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\R
>>> ef
>>> ormatCodeAction.cs:line
>>> 145 column 11
>>> at
>>> JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.
>>> Ex
>>> ecute(IDataContext,
>>> DelegateExecute) in
>>> c:\BuildAgent\work\ReSharper-Main\src\CodeInsight\src\ReformatCode\R
>>> ef
>>> ormatCodeAction.cs:line
>>> 83 column 13
>>> at
>>> JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataC
>>> on
>>> text)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\Action\Ex
>>> ec
>>> utableAction.cs:line
>>> 25 column 13
>>> at
>>> JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction
>>> (I
>>> ExecutableAction,
>>> IDataContext) in
>>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionMan
>>> ag
>>> er\ActionManagerBase.cs:line
>>> 530 column 11
>>> at
>>> JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction
>>> (I
>>> ExecutableAction)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\ActionManagement\src\ActionMan
>>> ag
>>> er\ActionManagerBase.cs:line
>>> 510 column 5
>>> at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
>>> vsCommandExecOption, Object&, Object&, Boolean&) in
>>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\V
>>> SA
>>> ctionManager.cs:line
>>> 491 column 11
>>> at JetBrains.VSAddin.AbstractAddIn.Exec(String, vsCommandExecOption,
>>> Object&, Object&, Boolean&) in
>>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line
>>> 260
>>> column
>>> 7
>>> at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&,
>>> UInt32,
>>> UInt32, IntPtr, IntPtr)
>>> at JetBrains.VSAddin.TextControl.MyCommandFilter.Exec(Guid&, UInt32,
>>> UInt32, IntPtr, IntPtr) in
>>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\VSText
>>> Co
>>> ntrol.cs:line
>>> 620 column 13
>>> at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr,
>>> IntPtr,
>>> Int32, IntPtr, IntPtr)
>>> at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
>>> at System.Windows.Forms.NativeWindow.WndProc(Message&)
>>> at
>>> JetBrains.VSAddin.TextControl.VsEditorParentWindow.WndProc(Message&)
>>> in
>>> c:\BuildAgent\work\ReSharper-Main\src\VSAddin\src\TextControl\Window
>>> s\
>>> VsEditorParentWindow.cs:line
>>> 225 column 11
>>> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr,
>>> Int32,
>>> IntPtr, IntPtr)


0

Please sign in to leave a comment.