mouse pointer issues
A really useful and easy to use tool! However, I have noticed that using the mouse pointer within the source code area can be tricky. The position is not always recognized and sometimes the cursor goes to a different area. Others at my research center have the same problem so it is not a problem with my computer.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Josh Paulson on 16 Aug, 2011 10:53 AM
Manuela,
Thanks for reporting this and what version of RStudio are you using and on what platform? Do you see this in .R files, .Rnw files, or even all file types that you are using? We have not heard of this before, but would definitely like to get to the bottom of it.
Thanks,
Josh
3 Posted by Manuela Gonzalez on 16 Aug, 2011 11:45 AM
Sorry for not mentioning all those details before.
I am using Rstudio version 0.94.92, on Windows 7 Home Premium 64 Service Pack 1. I have R version 2.11.1 for 64 bits.
I only use .R files and it happens with all files I have used (some had been created before using TinnR, others I started in Rstudio.
Let me know if there are other details that could be helpful
Thanks
Manuela
Support Staff 4 Posted by Josh Paulson on 16 Aug, 2011 01:56 PM
Manuela,
Thanks for the prompt response and I was not able to reproduce this on Windows using 0.94.92. Was curious if you could you also provide a quick screenshot so we can see exactly what is going wrong?
Thanks,
Josh
5 Posted by Manuela Gonzalez on 16 Aug, 2011 02:33 PM
Showing the problem in a screenshot may be tricky as the issue is that area where I point with the mouse pointer does not always correspond to the area where the cursor is placed.
Maybe an example would help. The issue is similar to if in this text box I placed the mouse pointer over the word "always" above but the cursor jumped to the word "problem". I haven't observed a pattern of where the cursor will "jump to" (not always above or left) but generally it seems harder to point at code further from the line numbers on the left side of the screen.
As I mentioned other people at my work place are having similar problems, I can ask about their operating system if that helps.
Support Staff 6 Posted by Josh Paulson on 17 Aug, 2011 11:08 AM
Manuela,
I understand it might be complicated to show this, but even a overview of your setup will help. Also possible, but not necessary, you could enumerate where you clicked and where the cursor showed up in paint. Again not necessary and a general screenshot would help here.
Thanks,
Josh
7 Posted by Jan on 22 Aug, 2011 07:58 PM
Hi, I have the same problem with the same system configuration as Manuela has.
Support Staff 8 Posted by Josh Paulson on 22 Aug, 2011 08:02 PM
Jan,
Thanks and can you also take a quick screenshot so we can see what your environment looks like. No worries if it is hard to show exactly what is going wrong. You should be able to upload the screenshot directly to this discussion.
Thanks,
Josh
Support Staff 9 Posted by Joe Cheng on 22 Aug, 2011 11:23 PM
Just to reiterate what Josh said, any screenshot would help, as the contents of your editor and the appearance of your font will both be helpful in figuring out the problem. Thanks.
10 Posted by Jan on 23 Aug, 2011 07:29 AM
Well, here is the screenshot. I hope my English is sufficient to understand the issue.
11 Posted by Manuela Gonzalez on 23 Aug, 2011 07:32 AM
Here is a screenshot
Support Staff 12 Posted by Joe Cheng on 23 Aug, 2011 07:35 AM
Hmmm. Does it make a difference if you are at the top of a document vs. several screenfuls down?
13 Posted by Jan on 23 Aug, 2011 08:12 AM
No, it does not. I try to find the cause of the effect but I started RStudio only few minutes ago and now it works as it has.
14 Posted by Manuela Gonzalez on 23 Aug, 2011 09:05 AM
I also found the issue is not always there, sometimes it works as it should but others the pointer and cursor do not match. However, I haven't been able to figure what trigger the problem.
15 Posted by Jan on 23 Aug, 2011 02:01 PM
Issue is again here. I send you video, please watch where the cursor appeared after mouse click. It is still one line above the place the mouse pointed.
16 Posted by lisa on 24 Aug, 2011 02:11 AM
I have noticed the same problem. After having RStudio open for some time, at some point (not sure if it's because of something I've done inadvertently) when I try to click with the mouse to alter code in a .R file, the cursor in the file appears in the line above where I'm trying to click. The problem goes away when I restart RStudio.
In the attached screen shot, my mouse pointer doesn't show up, but I had tried to click on the word "drop" on the line below where the cursor is located.
I am using RStudio 0.94.92 with R version 2.13.1 in Windows XP Home Edition 2002 with Service Pack 3.
Please let me know if i can provide you with any more information.
Thanks!
17 Posted by Katya on 23 Feb, 2012 07:39 PM
I wonder if this problem ever got resolved. I'm experiencing the same behavior - mouse pointer difficulties in the code area.
Support Staff 18 Posted by Josh Paulson on 23 Feb, 2012 10:19 PM
Katya (and others),
We've recently released v0.95 of RStudio, can you make sure you are on the latest version (0.95.261). We have made some changes that will hopefully help us get to the bottom of these offset problems:
http://www.rstudio.org/download/desktop
If you are seeing VERTICAL offset problems that occur only sometime after using RStudio for a while, we don't specifically have a fix yet, but have added a diagnostic feature that should help us get to the bottom of this. The next time you encounter this problem:
Help | Diagnostics | Dump Editor Contentsfrom the main menuCtrl+A(orCommand+Aon Mac) to select the entire contents of the textboxThe diagnostic info here is the raw contents of your editor's buffer, so if you are not willing to share your code, please don't send it. Hopefully there are enough of you that are willing to send your code, that we can get this figured out and fixed.
If you are having a HORIZONTAL offset on the same line or a different problem, then feel free to add a comment or start a new thread.
We're so sorry for this annoying bug and for how long it is taking us to figure it out. We continue to not be able to repro it in-house which is why we have to ask you to go to such lengths to gather data for us.
Thank you for your patience and cooperation!
19 Posted by Katya Ognyanova on 25 Feb, 2012 09:19 AM
Josh, thank you for the quick reply. I'm using RStudio 0.95.261 on a 64
bit Windows 7 machine. The problem is indeed a vertical rather than a
horizontal offset of the mouse pointer. Sometimes this gets resolved if
I switch between syntax tabs.
I haven't been doing much work with R in the last day or two - once I go
back to that next week I will be sure to send a screenshot along with
buffer contents.
20 Posted by Jason on 05 Mar, 2012 07:02 PM
I am experiencing the same issue, using Windows 7. I can confirm that Katya's "solution" works. If I switch to another syntax tab the problem appears to stop at least for some time.
Support Staff 21 Posted by Joe Cheng on 27 Mar, 2012 08:36 PM
I just made a change that may fix the vertical offset problems. The change should be in tomorrow's daily build (0.96.70) and later.
http://www.rstudio.org/download/daily/
If you could give it a try and let me know if the problem is resolved we would greatly appreciate it!
22 Posted by Duy Ngoc Do on 16 Aug, 2012 02:43 PM
Dear Joe
I have tried with all version of Rstudio but the horizontal offset in the same line still occurs . I tried to remove and reinstall both R and Rstudio but it does not helps.
I copied the " Dump Editor Contents" hope that you can help to figure out the prolems . I currently using Window SP 2.
Thank for your helps
Dump Editor Contents:
""102 101 116 97 108 32 60 45 32 114 101 97 100 46 99 115 118 40 34 104 116 116 112 58 47 47 66 101 110 100 105 120 67 97 114 115 116 101 110 115 101 110 46 99 111 109 47 66 97 121 101 115 47 67 112 104 45 50 48 49 50 47 100 97 116 97 41 . ""
Support Staff 23 Posted by Joe Cheng on 17 Aug, 2012 01:16 AM
Hi Duy,
The problem here is that your font is not monospace/fixed-width. Please choose a different font under Tools | Options | Appearance. Thanks!
Josh Paulson closed this discussion on 24 Aug, 2012 04:18 PM.