ReSharper 2.0.211 formatting exception
Try to reformat the following code (with "shorten references" option enabled)
{
public abstract t GetT();
}
}
namespace n12
{
public class c : n11.c
{
public override int GetT()
{
return 0;
}
}
}]]>throws an exception
System.InvalidOperationException: PsiManager is null in write action!
at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.LowLevelModificationUtil.GetManager(ITreeNode node) in c:\TEMP\tmpE8B7.tmp\src\Psi\src\ExtensionsAPI\Tree\LowLevelModificationUtil.cs:line 17
at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.LowLevelModificationUtil.ReplaceChildRange(ITreeNode first, ITreeNode last, ITreeNode[] nodes) in c:\TEMP\tmpE8B7.tmp\src\Psi\src\ExtensionsAPI\Tree\LowLevelModificationUtil.cs:line 88
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.ReplaceNodesAction.RollBack() in c:\TEMP\tmpE8B7.tmp\src\Psi\src\impl\PsiManager\TransactionActions.cs:line 136
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.PsiTransaction.RollBack(TemporaryDocumentsMap temporaryDocumentsMap) in c:\TEMP\tmpE8B7.tmp\src\Psi\src\impl\PsiManager\PsiTransaction.cs:line 102
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.TransactionManager.RollbackTransaction() in c:\TEMP\tmpE8B7.tmp\src\Psi\src\impl\PsiManager\TransactionManager.cs:line 113
at JetBrains.ReSharper.Psi.Impl.PsiManagerImpl.PsiManagerImpl.RollbackTransaction() in c:\TEMP\tmpE8B7.tmp\src\Psi\src\impl\PsiManager\PsiManagerImpl.cs:line 197
at JetBrains.ReSharper.Psi.TemporaryChangeCookie.Dispose() in c:\TEMP\tmpE8B7.tmp\src\Psi\src\PsiCookies.cs:line 31
at JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.ReFormatter.TaskWithProgress(IProgressIndicator progressIndicator) in c:\TEMP\tmpE8B7.tmp\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line 212
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.TaskHelper.Run() in c:\TEMP\tmpE8B7.tmp\src\Shell\src\Progress\ProgressWindow.cs:line 419
--- End of inner exception stack trace ---
at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\TEMP\tmpE8B7.tmp\src\Util\src\Logger.cs:line 297 column 9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\TEMP\tmpE8B7.tmp\src\Util\src\Logger.cs:line 309 column 5
at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in c:\TEMP\tmpE8B7.tmp\src\Shell\src\Progress\ProgressWindow.cs:line 427 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:\TEMP\tmpE8B7.tmp\src\Shell\src\Progress\ProgressWindow.cs:line 487 column 5
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:\TEMP\tmpE8B7.tmp\src\Shell\src\Progress\ProgressWindow.cs:line 343 column 9
at JetBrains.ReSharper.Shell.Progress.ProgressWindow.ExecuteTask(TaskHelper, String, Boolean, Boolean&) in c:\TEMP\tmpE8B7.tmp\src\Shell\src\Progress\ProgressWindow.cs:line 568 column 9
at JetBrains.ReSharper.Shell.Progress.SyncProgressWindow.ExecuteTask(TaskWithProgress, String, Boolean&) in c:\TEMP\tmpE8B7.tmp\src\Shell\src\Progress\ProgressWindow.cs:line 21 column 7
at JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.FormatFiles(Context, ReformatCodeOptions) in c:\TEMP\tmpE8B7.tmp\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line 123 column 11
at JetBrains.ReSharper.CodeInsight.ReformatCode.ReformatCodeActionBase.Execute(IDataContext, DelegateExecute) in c:\TEMP\tmpE8B7.tmp\src\CodeInsight\src\ReformatCode\ReformatCodeAction.cs:line 57 column 13
at JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext) in c:\TEMP\tmpE8B7.tmp\src\ActionManagement\src\Action\ExecutableAction.cs:line 25 column 11
at JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction, IDataContext) in c:\TEMP\tmpE8B7.tmp\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line 482 column 9
at JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction) in c:\TEMP\tmpE8B7.tmp\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line 469 column 5
at JetBrains.ReSharper.IDE.ActionManagement.VSIntegration.VSActionManager.Exec(String, vsCommandExecOption, Object&, Object&, Boolean&) in c:\TEMP\tmpE8B7.tmp\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 241 column 11
at ReSharperAddIn.Exec(String, vsCommandExecOption, Object&, Object&, Boolean&) in c:\TEMP\tmpE8B7.tmp\src\VSIntegration\src\Connect.cs:line 221 column 5
]]>
after which all attempts to do something (even browsing code) with ReSharper fails with exceptions.
Please sign in to leave a comment.
Thank you. Fixed in 213
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Somov Alexander" <no_mail@jetbrains.com> wrote in message
news:17930256.1134633850100.JavaMail.itn@is.intellij.net...