Ctrl+Click not always working Follow
I have a problem with R# 4.0 which also occurs in the latest nightly builds. After a while, CtrlClick to goto declaration seems to stop working for a while. The blue underline won't show up, and when I CtrlClick, nothing happens. However, Ctrl+B or the context menu "go to declaration" still works fine, so I guess this is a problem with some mouse hook or such. Sometimes, after one or two minutes, it starts working again, sometimes it doesn't.
Perhaps this has something to do with my OS - it's Vista Sp1 64-bit.
Please sign in to leave a comment.
Hello Urs,
If you have some time, could you please check the following: when you notice
Ctrl-Click won't work, stop doing anything in VS and leave it idle for a
while, something like 10-15 minutes. Then try Ctrl-Click again and tell us
if it works after that or not. I have some suspicions about why this can
happen. Thank you.
Sincerely,
Ilya Ryzhenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
UE> I have a problem with R# 4.0 which also occurs in the latest nightly
UE> builds. After a while, Ctrl+Click to goto declaration seems to stop
UE> working for a while. The blue underline won't show up, and when I
UE> CtrlClick, nothing happens. However, CtrlB or the context menu "go
UE> to declaration" still works fine, so I guess this is a problem with
UE> some mouse hook or such. Sometimes, after one or two minutes, it
UE> starts working again, sometimes it doesn't.
UE>
UE> Perhaps this has something to do with my OS - it's Vista Sp1 64-bit.
UE>
Ilya,
I tried as you suggested, but after 1 hour of being idle, it still doesn't respond to Ctrl+Click.
However, I noticed something interesting: If I do the following
1. Go to R# Options, turn off Ctrl+Click
2. Go to R# Options, turn on Ctrl+Click again,
the following exception is being thrown:
JetBrains.Util.LoggerException: There is no such filter to remove. ---> System.InvalidOperationException: There is no such filter to remove.
at JetBrains.VSIntegration.IDE.VSActiveTextControlManager.RemoveTextControlMessageFilter(ITextControlMessageFilter messageFilter) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\VSIntegration\src\IDE\VSActiveTextControlManager.cs:line 718
at JetBrains.ReSharper.CodeView.Highlighting.HyperlinkManager.Dispose() in c:\Agent\work\e9a2fff71e84fb33\src\CodeView\src\Highlighting\HyperlinkManager.cs:line 85
at JetBrains.ReSharper.CodeView.Highlighting.HyperlinkManager.b__0() in c:\Agent\work\e9a2fff71e84fb33\src\CodeView\src\Highlighting\HyperlinkManager.cs:line 62 at JetBrains.DataFlow.DataFlowEx.<>c__DisplayClass34`1.b__33(PropertyChangedEventArgs`1 args) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\DataFlow\DataFlowEx.cs:line 317 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\DataFlow\Signal!1.cs:line 259 --- End of inner exception stack trace --- at JetBrains.Util.Logger.LogException(Exception) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\Logger\Logger.cs:line 441 column 3 at JetBrains.DataFlow.Signal`1.NotifySinks(TValue) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\DataFlow\Signal!1.cs:line 265 column 6 at JetBrains.DataFlow.Signal`1.Fire(TValue, Object) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\DataFlow\Signal!1.cs:line 377 column 3 at JetBrains.DataFlow.Property`1.FireChange(TValue, TValue, Object) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\DataFlow\Property!1.cs:line 162 column 5 at JetBrains.DataFlow.Property`1.SetValue(TValue, Object) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\DataFlow\Property!1.cs:line 444 column 4 at JetBrains.DataFlow.PropertyBinding`2.CopyTargetToSource() in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\DataFlow\PropertyBinding!2.cs:line 299 column 5 at JetBrains.UI.Options.Helpers.AStackPanelOptionsPage.OnOk() in c:\Agent\work\e9a2fff71e84fb33\Platform\src\UI\src\Options\Helpers\AStackPanelOptionsPage.cs:line 108 column 37 at JetBrains.UI.Options.OptionsDialog.OnButtonOkClicked(Object, EventArgs) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\UI\src\Options\OptionsDialog.cs:line 418 column 6 at System.Windows.Forms.Control.OnClick(EventArgs) at System.Windows.Forms.Button.OnClick(EventArgs) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs) at System.Windows.Forms.Control.WmMouseUp(Message&, MouseButtons, Int32) at System.Windows.Forms.Control.WndProc(Message&) at System.Windows.Forms.ButtonBase.WndProc(Message&) at System.Windows.Forms.Button.WndProc(Message&) 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.Application.RunDialog(Form) at System.Windows.Forms.Form.ShowDialog(IWin32Window) at JetBrains.UI.Options.OptionsManager.ShowOptions() in c:\Agent\work\e9a2fff71e84fb33\Platform\src\UI\src\Options\OptionsManager.cs:line 231 column 9 at JetBrains.UI.Options.ShowOptionsAction.Execute(IDataContext, DelegateExecute) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\UI\src\Options\ShowOptionsAction.cs:line 13 column 3 at JetBrains.ActionManagement.ExecutableAction.Execute(IDataContext) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\UI\src\ActionSystem\Action\ExecutableAction.cs:line 30 column 13 at JetBrains.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction, IDataContext) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\UI\src\ActionSystem\ActionManager\ActionManagerBase.cs:line 637 column 11 at JetBrains.VSIntegration.ActionManagement.VSActionManager.ExecuteAction(IExecutableAction, IDataContext) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 2774 column 7 at JetBrains.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\UI\src\ActionSystem\ActionManager\ActionManagerBase.cs:line 581 column 5 at JetBrains.ActionManagement.ActionManagerBase.ExecuteAction(String) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\UI\src\ActionSystem\ActionManager\ActionManagerBase.cs:line 576 column 5 at JetBrains.VSIntegration.<>c__DisplayClass3.]]>b__0() in c:\Agent\work\e9a2fff71e84fb33\Platform\src\VSIntegration\src\PackageBase.cs:line 66 column 11
at JetBrains.Threading.ReentrancyGuard.Execute(String, Action) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 282 column 6
at JetBrains.Threading.ReentrancyGuard.TryExecute(String, Action) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 417 column 4
at JetBrains.VSIntegration.PackageBase.Exec(Guid&, UInt32, UInt32, IntPtr, IntPtr) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\VSIntegration\src\PackageBase.cs:line 40 column 6
at JetBrains.VSIntegration.Package.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid&, UInt32, UInt32, IntPtr, IntPtr) in c:\Agent\work\e9a2fff71e84fb33\Platform\src\VSIntegration\src\Package.cs:line 209 column 4
When I go to the options dialog again, the CtrlClick checkbox is set, but CtrlClick still is not working.
I submitted the issue as #72275.
Regards,
Urs
Hello Ilya,
I just left my computer for another 1 hours. After I returned, Ctrl+Click now works...
I just wanted to chime in here since I've seen this happen to me too. I also run Vista SP1 x64, FWIW.
Restarting VS seems to have "fixed" it.
FYI, this is still a problem with the latest R# 4.5 Version (Build 1231). Sometimes, after long use of VS, Ctrl+Click suddenly stops working, whereas I can still navigate by using Ctrl+B. The functionality will sometimes return after a while. Sometimes I have to restart VS to be able to get the function back.
I use VS2008 SP1, Vista x64 SP1.
I have the same behaviour.
Me too. The most common way for me to get it to fail is to use the feature while debugging.
I've noticed a degredation of this feature, probably since the release for VS2010. I find I often have to click 2 times (sometimes more) to get to the declaration. It is a very noticeable difference. I am holding down the ctrl key first. This never used to happen before, this feature was always 100% reliable, now it's roughly in the 50% reliable range. Maybe it's a WPF thing?
Just tried ctrl-click 3 times before it went to declaration.
Hello,
What version of ReSharper are you using? Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
5.1.1753.3
I'm using a later one than that at work and it happened again today. I'm not at work but I can post that version tomorrow.
Hello,
I've experimented with Ctrl+Click for some time, but I couldn't reproduce
this behavior on the latest bugfix build from http://confluence.jetbrains.net/display/ReSharper/ReSharper5.1.2Bugfix+Builds.
Let me know if you see the same behavior with the latest build. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Still doing it in 1760.
I can understand why you may be having difficulty reproducing it. This happens only a small percentage of the time but it happens enough to be noticeable.
I don't know if you do development work, but the best way to experience this is to sit down for a few hours and write code. In that time I'm sure you would see it (assuming you use the feature regularly).
I am working in a Win Server 2008 environment both at home and at work and I see the issue both places in this same version.
Hello,
I do development work a lot, but I haven't seen such behavior with the latest
builds. Could you please capture a screencast of this behavior (for instance
using Jing from http://www.techsmith.com/jing/) when you see it next time
and attach it here? Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
This is still happening (1762). I can now describe what is happening in detail as it just happened and I slowed down to write down what happened step by step. This is the behavior when it takes 3 clicks before getting the expected behavior.
1) Hover mouse over method
2) Hold down ctrl key (and keep holding down thru all 3 clicks)
3) Click first time. See screenshot below. Here is where the method becomes highlighted and underlined but no action. Mouse is still hovering over the method. What you can't see in the screenshot unfortunately, and this may or may not be imortant, is that the mouse icon is now the hand with pointed finger (like on over a web link, sorry can't think of the official term).
4) Click the second time and now the highlight goes away, the hand mouse icon is still there and now the cursor is inside the method text.
5) Click a third time and I get the expected action, I get to the implementation.
Remember I have held down the ctrl key the whole time.
I tried getting several screencast products to work but they wouldn't work right on my 2 monitor setup or the Srv 2008 R2 OS. I'm not sure how practical that would be anyway as this is intemittent and I would have to record a long time making very large files. Jing is out as it is a security concern at work.
Edit: I think I may have found a way to reproduce this. Make sure VStudio solution explorer is open and stays open. Click in sol explorer and then move mouse to an already-open code module and do the ctrl-click. I'm able to reproduce at least the 2 click issue (the fist click is as described above, but the 2nd click performs the correct action). The feature seems to work every time if the code module is the active window (that is I have clicked or typed in there immediately before attempting to use the feature). I get this same behavior if I click on just about any other VStudio window or panel (like the output panel).
Hello,
Thank you for detailed steps! However, I still could not replicate this behavior,
even when the focus was in Solution Explorer. I've created a task for our
QA engineer: http://youtrack.jetbrains.net/issue/RSRP-200649 and we will
keep investigating this problem. Meanwhile, could you please check if this
also happens on other machines that have some different OS installed (not
Windows Server 2008)?
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Do you have any additional plugins / addons installed in VS environment? I couldn't reproduce this behavior. Also what kind of projects do you have in your solution?
Thanks in advance!
Attached file lists what I have installed in VS2010.
The solution I'm working in has ASP.NET and class library project types.
I can test this on a Win 7 box in VS2008 if you think that will help. I have plans to spin up other VM's w/ other OS's in the not too distant future so I'll be able to test them.
Let me see if I can clarify further in case it might help to reproduce:
Click in Sol Explorer
move mouse to code module without clicking in it, and hover over a type
press down ctrl key
then click on the type while still holding down ctrl key
-- The behavior I get is step 3 above (screenshot)
Attachment(s):
VS2010InstalledProducts.txt.zip
Hello,
I managed to reproduce the scenario with Solution Explorer, so I've logged
a bug-report: http://youtrack.jetbrains.net/issue/RSRP-200790 and you're
welcome to monitor its status. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I've gotta say, experiencing an issue reported in 2008 just fills me with hope... Anyway, this was happening for me today on ReSharper Ultimate 2019.1.2 (Visual Studio Pro 16.1.3, Windows 10 Pro x64 Version 1809). After not being able to Ctrl-Click all morning, I left for lunch, came back and now it is working. This leads me to believe this is the same issue that Ilya was referring to.
Hello Cullen!
Thank you for the feedback.
Sorry to know you've experienced problem with ReSharper though not so sure it's the same problem as topic starter described.
If you again experience the same problem please run Visual Studio with the following command line: 'devenv /ReSharper.LogFile C:\resharper_log.txt /ReSharper.LogLevel Verbose', reproduce the issue and send us a corresponding 'resharper_log.txt' file.
Thanks in advance.