Issue with Introduce Variable when using shortcut?

Hello,

In 210 (VS2003), every time I hit ctrl-alt-V (introduce variable), ReSharper gets into a sort of deadlock (hourglass forever, no popup menu at all), but it works perfect when I use the context menu. I searched the tracker and this issue doesn't seem to be there so maybe it's something on my end?

Thank you,
Alexandre

5 comments
Comment actions Permalink

Hello Alexandre,

are you sure that ctrl-alt-V is really mapped to ReSharperAddIn2003.IntroduceVariable?
Please check
this using Tools|Environment|Keyboard. It's strange that the result of command
invocation depends on
whether you access it via a shortcut or a context menu.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello,

In 210 (VS2003), every time I hit ctrl-alt-V (introduce variable),
ReSharper gets into a sort of deadlock (hourglass forever, no popup
menu at all), but it works perfect when I use the context menu. I
searched the tracker and this issue doesn't seem to be there so maybe
it's something on my end?

Thank you,
Alexandre



0
Comment actions Permalink

Hello,

Thanks for your quick reply. It is indeed mapped to ReSharperAddIn2003.IntroduceVariable. Additionnally, I just tried Introduce Method via ctrl-alt-M and it worked perfectly.

Alexandre

0
Comment actions Permalink

Hello Alexandre,

if it happens every time, could you please try to attach the debugger to
the hung devenv.exe
and try to capture stack traces of managed threads? Thanks in advance.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello,

Thanks for your quick reply. It is indeed mapped to
ReSharperAddIn2003.IntroduceVariable. Additionnally, I just tried
Introduce Method via ctrl-alt-M and it worked perfectly.

Alexandre



0
Comment actions Permalink

Hi Dmitry,

Here is the call stack of the 2 threads that are related to ReSharper.

    • 1 **

jetbrains.resharper.util.dll!JetBrains.ReSharper.Util.Concurrency.NativeManualResetEvent.WaitOne(int timeout = ) Line 55 C# jetbrains.resharper.util.dll!JetBrains.ReSharper.Util.Concurrency.ReentrantWriterPreferenceReadWriteLock.WriterLock.Acquire() Line 150 C# jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.UIApplicationShell.AcquireWriteLock() Line 424 C# jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.WriteLockCookie.Init(bool takeLock = ) Line 78 C# jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.WriteLockCookie.Create() Line 92 + 0x10 bytes C# jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Impl.ChangeManagerImpl.OnProviderChanged(JetBrains.ReSharper.Shell.IChangeProvider changeProvider = {JetBrains.ReSharper.TextControl.VSIntegration.VSTextControl}, JetBrains.ReSharper.Shell.IChange changeDeltas = {JetBrains.ReSharper.TextControl.Impl.TextControlChange}, JetBrains.ReSharper.Shell.Progress.ITaskExecutor executor = {JetBrains.ReSharper.Shell.Progress.SimpleTaskExecutor}) Line 370 C# jetbrains.resharper.textcontrol.dll!JetBrains.ReSharper.TextControl.Impl.TextControlChange.Fire() Line 28 C# jetbrains.resharper.vsintegration.dll!JetBrains.ReSharper.TextControl.VSIntegration.VSTextControl.UpdateModel() Line 497 C# jetbrains.resharper.vsintegration.dll!JetBrains.ReSharper.TextControl.VSIntegration.VSTextControl.UpdateRequest() Line 483 C# jetbrains.resharper.util.dll!JetBrains.ReSharper.Util.Alarm.OnTimer(System.Object sender = , System.EventArgs e = ) Line 167 + 0xe bytes C# system.windows.forms.dll!System.Windows.Forms.Timer.OnTick(System.EventArgs e) + 0x18 bytes system.windows.forms.dll!System.Windows.Forms.Timer.Callback(int hWnd, int msg, int idEvent, int dwTime) + 0x1d bytes system.windows.forms.dll!System.Windows.Forms.Timer.set_Enabled(bool value) + 0x15a bytes system.windows.forms.dll!System.Windows.Forms.Timer.Stop() + 0x7 bytes jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Progress.NewProgressWindow.Stop() Line 131 C# mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture, bool verifyAccess) + 0x1a7 bytes mscorlib.dll!System.Delegate.DynamicInvokeImpl(System.Object[] args) + 0x34 bytes mscorlib.dll!System.MulticastDelegate.DynamicInvokeImpl(System.Object[] args) + 0x3e bytes system.windows.forms.dll!System.Windows.Forms.Control.InvokeMarshaledCallbacks() + 0x1ff bytes system.windows.forms.dll!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message m) + 0x743 bytes system.windows.forms.dll!System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message m) + 0x36 bytes system.windows.forms.dll!System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message m) + 0x17 bytes system.windows.forms.dll!System.Windows.Forms.Application.ParkingWindow.WndProc(System.Windows.Forms.Message m) + 0xe bytes system.windows.forms.dll!ControlNativeWindow.OnMessage(System.Windows.Forms.Message m) + 0xb bytes system.windows.forms.dll!ControlNativeWindow.WndProc(System.Windows.Forms.Message m) + 0xbc bytes system.windows.forms.dll!System.Windows.Forms.NativeWindow.Callback(int hWnd, int msg, int wparam, int lparam) + 0x30 bytes jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Progress.NewProgressWindow.RunMessageLoop() Line 506 + 0x9 bytes C# jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Progress.NewProgressWindow.ExecuteTask(JetBrains.ReSharper.Shell.Progress.NewProgressWindow.TaskHelper taskHelper = {JetBrains.ReSharper.Shell.Progress.NewProgressWindow.AsyncTaskHelper}, string taskName = null, bool cancelable = , bool canceled = false) Line 568 + 0x8 bytes C# jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Progress.NewProgressWindow.ExecuteTask(JetBrains.ReSharper.Shell.Progress.TaskWithProgress task = , string taskName = null, bool canceled = ) Line 526 + 0x16 bytes C# jetbrains.resharper.refactorings.dll!JetBrains.ReSharper.Refactorings.Workflow.WorkflowProcessor.Initialize() Line 411 C# jetbrains.resharper.refactorings.dll!JetBrains.ReSharper.Refactorings.Workflow.WorkflowProcessor.Execute() Line 277 + 0x8 bytes C# jetbrains.resharper.refactorings.dll!JetBrains.ReSharper.Refactorings.Workflow.RefactoringActionUtil.ExecuteRefactoring(JetBrains.ReSharper.ActionManagement.IDataContext invocationContext = , JetBrains.ReSharper.Refactorings.Workflow.IRefactoringWorkflow refactoringWorkflow = ) Line 23 C# jetbrains.resharper.refactorings.dll!JetBrains.ReSharper.Refactorings.IntroduceVariable.IntroduceVariableAction.Execute(JetBrains.ReSharper.ActionManagement.IDataContext context = , JetBrains.ReSharper.ActionManagement.DelegateExecute nextExecute = ) Line 17 C# jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(JetBrains.ReSharper.ActionManagement.IDataContext context = ) Line 25 + 0x3e bytes C# jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(JetBrains.ReSharper.ActionManagement.IExecutableAction action = {JetBrains.ReSharper.ActionManagement.Action}, JetBrains.ReSharper.ActionManagement.IDataContext context = ) Line 479 C# jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(JetBrains.ReSharper.ActionManagement.IExecutableAction action = ) Line 466 C# jetbrains.resharper.vsintegration.dll!JetBrains.ReSharper.IDE.ActionManagement.VSIntegration.VSActionManager.Exec(string CmdName = "ReSharperAddIn2003.IntroduceVariable", EnvDTE.vsCommandExecOption ExecuteOption = vsCommandExecOptionDoDefault, System.Object VariantIn = , System.Object VariantOut = , bool Handled = false) Line 223 + 0xb bytes C# jetbrains.resharper.vsintegration.dll!ReSharperAddIn.Exec(string CmdName = "ReSharperAddIn2003.IntroduceVariable", EnvDTE.vsCommandExecOption ExecuteOption = vsCommandExecOptionDoDefault, System.Object VariantIn = , System.Object VariantOut = ]]>, bool Handled = false) Line 222 C#

    • 2 **

mscorlib.dll!System.Threading.WaitHandle.WaitOne() + 0x57 bytes
jetbrains.resharper.shell.dll!AsyncTaskHelper.ThreadFunc() Line 462 + 0x14 bytes C#

0
Comment actions Permalink

Hello Alexandre,

thanks for your help! We've recently seen this problem here,
and will fix it ASAP.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi Dmitry,

Here is the call stack of the 2 threads that are related to ReSharper.

    • 1 **

jetbrains.resharper.util.dll!JetBrains.ReSharper.Util.Concurrency.Nati
veManualResetEvent.WaitOne(int timeout = <has no runtime value>) Line
55 C#
jetbrains.resharper.util.dll!JetBrains.ReSharper.Util.Concurrency.Reen
trantWriterPreferenceReadWriteLock.WriterLock.Acquire() Line 150 C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.UIApplicationS
hell.AcquireWriteLock() Line 424 C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.WriteLockCooki
e.Init(bool takeLock = <has no runtime value>) Line 78 C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.WriteLockCooki
e.Create() Line 92 + 0x10 bytes C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Impl.ChangeMan
agerImpl.OnProviderChanged(JetBrains.ReSharper.Shell.IChangeProvider
changeProvider =
{JetBrains.ReSharper.TextControl.VSIntegration.VSTextControl},
JetBrains.ReSharper.Shell.IChange changeDeltas =
{JetBrains.ReSharper.TextControl.Impl.TextControlChange},
JetBrains.ReSharper.Shell.Progress.ITaskExecutor executor =
{JetBrains.ReSharper.Shell.Progress.SimpleTaskExecutor}) Line 370 C#
jetbrains.resharper.textcontrol.dll!JetBrains.ReSharper.TextControl.Im
pl.TextControlChange.Fire() Line 28 C#
jetbrains.resharper.vsintegration.dll!JetBrains.ReSharper.TextControl.
VSIntegration.VSTextControl.UpdateModel() Line 497 C#
jetbrains.resharper.vsintegration.dll!JetBrains.ReSharper.TextControl.
VSIntegration.VSTextControl.UpdateRequest() Line 483 C#
jetbrains.resharper.util.dll!JetBrains.ReSharper.Util.Alarm.OnTimer(Sy
stem.Object sender = <undefined value>, System.EventArgs e =
<undefined value>) Line 167 + 0xe bytes C#
system.windows.forms.dll!System.Windows.Forms.Timer.OnTick(System.Even
tArgs e) + 0x18 bytes
system.windows.forms.dll!System.Windows.Forms.Timer.Callback(int hWnd,
int msg, int idEvent, int dwTime) + 0x1d bytes
system.windows.forms.dll!System.Windows.Forms.Timer.set_Enabled(bool
value) + 0x15a bytes
system.windows.forms.dll!System.Windows.Forms.Timer.Stop() + 0x7 bytes
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Progress.NewPr
ogressWindow.Stop() Line 131 C#
mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(System
.Object obj, System.Reflection.BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture, bool verifyAccess) + 0x1a7
bytes
mscorlib.dll!System.Delegate.DynamicInvokeImpl(System.Object[] args) +
0x34 bytes
mscorlib.dll!System.MulticastDelegate.DynamicInvokeImpl(System.Object[
] args) + 0x3e bytes
system.windows.forms.dll!System.Windows.Forms.Control.InvokeMarshaledC
allbacks() + 0x1ff bytes
system.windows.forms.dll!System.Windows.Forms.Control.WndProc(System.W
indows.Forms.Message m) + 0x743 bytes
system.windows.forms.dll!System.Windows.Forms.ScrollableControl.WndPro
c(System.Windows.Forms.Message m) + 0x36 bytes
system.windows.forms.dll!System.Windows.Forms.ContainerControl.WndProc
(System.Windows.Forms.Message m) + 0x17 bytes
system.windows.forms.dll!System.Windows.Forms.Application.ParkingWindo
w.WndProc(System.Windows.Forms.Message m) + 0xe bytes
system.windows.forms.dll!ControlNativeWindow.OnMessage(System.Windows.
Forms.Message m) + 0xb bytes
system.windows.forms.dll!ControlNativeWindow.WndProc(System.Windows.Fo
rms.Message m) + 0xbc bytes
system.windows.forms.dll!System.Windows.Forms.NativeWindow.Callback(in
t hWnd, int msg, int wparam, int lparam) + 0x30 bytes
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Progress.NewPr
ogressWindow.RunMessageLoop() Line 506 + 0x9 bytes C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Progress.NewPr
ogressWindow.ExecuteTask(JetBrains.ReSharper.Shell.Progress.NewProgres
sWindow.TaskHelper taskHelper =
{JetBrains.ReSharper.Shell.Progress.NewProgressWindow.AsyncTaskHelper}
, string taskName = null, bool cancelable = <has no runtime value>,
bool canceled = false) Line 568 + 0x8 bytes C#
jetbrains.resharper.shell.dll!JetBrains.ReSharper.Shell.Progress.NewPr
ogressWindow.ExecuteTask(JetBrains.ReSharper.Shell.Progress.TaskWithPr
ogress task = <undefined value>, string taskName = null, bool canceled
= <has no runtime value>) Line 526 + 0x16 bytes C#
jetbrains.resharper.refactorings.dll!JetBrains.ReSharper.Refactorings.
Workflow.WorkflowProcessor.Initialize() Line 411 C#
jetbrains.resharper.refactorings.dll!JetBrains.ReSharper.Refactorings.
Workflow.WorkflowProcessor.Execute() Line 277 + 0x8 bytes C#
jetbrains.resharper.refactorings.dll!JetBrains.ReSharper.Refactorings.
Workflow.RefactoringActionUtil.ExecuteRefactoring(JetBrains.ReSharper.
ActionManagement.IDataContext invocationContext = <undefined value>,
JetBrains.ReSharper.Refactorings.Workflow.IRefactoringWorkflow
refactoringWorkflow = <undefined value>) Line 23 C#
jetbrains.resharper.refactorings.dll!JetBrains.ReSharper.Refactorings.
IntroduceVariable.IntroduceVariableAction.Execute(JetBrains.ReSharper.
ActionManagement.IDataContext context = <undefined value>,
JetBrains.ReSharper.ActionManagement.DelegateExecute nextExecute =
<undefined value>) Line 17 C#
jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionMan
agement.ExecutableAction.Execute(JetBrains.ReSharper.ActionManagement.
IDataContext context = <undefined value>) Line 25 + 0x3e bytes C#
jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionMan
agement.ActionManagerBase.ExecuteAction(JetBrains.ReSharper.ActionMana
gement.IExecutableAction action =
{JetBrains.ReSharper.ActionManagement.Action},
JetBrains.ReSharper.ActionManagement.IDataContext context = <undefined
value>) Line 479 C#
jetbrains.resharper.actionmanagement.dll!JetBrains.ReSharper.ActionMan
agement.ActionManagerBase.ExecuteAction(JetBrains.ReSharper.ActionMana
gement.IExecutableAction action = <undefined value>) Line 466 C#
jetbrains.resharper.vsintegration.dll!JetBrains.ReSharper.IDE.ActionMa
nagement.VSIntegration.VSActionManager.Exec(string CmdName =
"ReSharperAddIn2003.IntroduceVariable", EnvDTE.vsCommandExecOption
ExecuteOption = vsCommandExecOptionDoDefault, System.Object VariantIn
= <undefined value>, System.Object VariantOut = <undefined value>,
bool Handled = false) Line 223 + 0xb bytes C#
jetbrains.resharper.vsintegration.dll!ReSharperAddIn.Exec(string
CmdName = "ReSharperAddIn2003.IntroduceVariable",
EnvDTE.vsCommandExecOption ExecuteOption =
vsCommandExecOptionDoDefault, System.Object VariantIn = <undefined
value>, System.Object VariantOut = <undefined value>, bool Handled =
false) Line 222 C#

    • 2 **

mscorlib.dll!System.Threading.WaitHandle.WaitOne() + 0x57 bytes
jetbrains.resharper.shell.dll!AsyncTaskHelper.ThreadFunc() Line 462 +
0x14 bytes C#



0

Please sign in to leave a comment.