Bug 16412 - The Tree View of Solution pane does not work properly
Summary: The Tree View of Solution pane does not work properly
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: master
Assignee: Cody Russell
URL:
Depends on:
Blocks:
 
Reported: 2013-11-23 04:35 UTC by Imgen Tata
Modified: 2016-10-31 17:10 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Working at 5k (120.64 KB, image/gif)
2016-10-25 14:33 UTC, Jason Imison
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Imgen Tata 2013-11-23 04:35:49 UTC
Description of Problem:
When I single click a tree node, it should expand/collapse the node, but it does not currently. It's a long-standing bug, please fix it. 

Steps to reproduce the problem:
1. Single click a tree node in solution pane

Actual Results:
The tree node does not expand/collapse


Expected Results:
The tree node should expand/collapse


How often does this happen? 
Always.

Additional Information:
I am running on Windows 8.1 x64
Comment 1 Mikayla Hutchinson [MSFT] 2013-11-23 14:52:53 UTC
What version(s) of GTK# to you have installed in Add/Remove Programs?
Comment 2 Imgen Tata 2013-11-23 19:13:21 UTC
The latest. GTK# for .NET 2.12.22
Comment 3 Imgen Tata 2013-11-23 19:15:51 UTC
As far as I know, this is a OS-specific bug, I don't get it on previous OSes such as Windows 7, Windows Server 2008 & 2008 R2. Only on Windows 8 series such as Windows 8, Windows 8.1, Windows Server 2012, etc.
Comment 4 Imgen Tata 2013-11-23 19:16:32 UTC
Please fix this, this is a long-standing bug, I reported it last year, and to this day, this annoying bug still exists. Kind of surprising.
Comment 5 Mikayla Hutchinson [MSFT] 2013-11-24 00:18:48 UTC
Do you have any specific steps to reproduce this?
Comment 6 Imgen Tata 2013-11-24 00:49:02 UTC
What do you mean? What is not clear? There is no steps actually. If you ask me, the only step is to open Xamarin Studio.
Comment 7 Imgen Tata 2013-11-24 00:49:30 UTC
BTW, the keyboard shortcuts are working fine though.
Comment 8 Imgen Tata 2013-11-24 00:52:10 UTC
Please read the bug description if you haven't already.
Comment 9 Imgen Tata 2013-11-24 00:52:50 UTC
And you need a Windows 8 or above machine to reproduce if it's not obvious to you.
Comment 10 Mikayla Hutchinson [MSFT] 2013-11-24 02:20:36 UTC
I have a Windows 8.1 machine and it works fine.

I'm asking for repro steps in case it's triggered by some specific sequence of actions.
Comment 11 Imgen Tata 2013-11-24 02:31:16 UTC
Really, could you prove that? I have 3 windows 8 and windows 8.1 machines, all have the same issue, how come your code are ok. Could you prove that?
Comment 12 Imgen Tata 2013-11-24 02:33:09 UTC
Unicorn found, maybe.
Comment 13 Imgen Tata 2013-11-24 05:27:02 UTC
Usually, it's like this, when the tree view just got focus from other control, or in other words, the first single click, it works, then the subsequent clicks won't work. If then I switch to other control to let the solution pane lose focus, after the solution pane regain focus, then also the first single click will work. I guess that's what you said about the specific steps.
Comment 14 Mikayla Hutchinson [MSFT] 2013-11-24 13:59:03 UTC
Yes, that's what I was asking for. However, I still cannot reproduce it :/
Comment 15 Imgen Tata 2013-11-24 19:00:21 UTC
I'll record video to get the record straight. Why so hard to report a bug?
Comment 16 Imgen Tata 2013-11-24 19:01:04 UTC
Will send you the video by email
Comment 17 Imgen Tata 2013-11-25 03:35:22 UTC
I have emailed you the video I recorded. Please take a look. My email address is imgen@live.com and the title of the email reads - "About the tree node click issue in solution pane"
Comment 18 Imgen Tata 2013-11-25 04:40:03 UTC
Odd, I get a delivery failure for my email. So I upload my video to skydrive for you to view, the link is below
http://sdrv.ms/1ejeuB0
Comment 19 Imgen Tata 2013-11-25 04:40:56 UTC
You can see that I am running Windows 8.1 and the clicks after the first click indeed does not work. Please fix this long standing annoying issue, for the good. 
    If you cannot reproduce this error, could you also send a video as a proof? I am running Xamarin Studio for Android on Windows 8.1
Comment 20 Cody Russell 2014-02-03 19:25:13 UTC
I've got Windows 8.1 (64-bit) and I've never been able to reproduce this issue yet.

http://screencast.com/t/IOqTcXzZLzB
Comment 21 Imgen Tata 2014-02-03 20:14:57 UTC
I don't know why you cannot reproduce the issue. Sounds very weird. Cause I can reproduce this on multiple windows 8/8.1 machines. Maybe it's the new version? Don't know. 
Below is the version info of my Xamarin Studio

Xamarin Studio
Version 4.2.3 (build 51)
Installation UUID: 4c875cca-9a9a-41fe-848c-64c2bd59ccf7
Runtime:
	Microsoft .NET 4.0.30319.34003
	GTK+ 2.24.22 theme: MS-Windows
	GTK# (2.12.0.0)

This is really weird. This is kinda like your words against mine. I think I am done with it. I think I have wasted enough time and energy on this. Xamarin Studio kinda sucks, at least on Windows. Although I really appreciate the UI rework you've done with 2.0 but that's about it. Quite a few issues, like the "Build Configuration" combo box, I have to long press to choose a configuration, in what world can this be considered intuitive? Like the "Fonts" options in the "Options" dialog, when I tried to Edit it, nothing happens, only after the combo box lost its focus, the Font dialog appears. Just to name a few. Anyway, I only use Xamarin Studio for debugging and testing. For editing, I use SharpDevelop which is much more useful. Although I really like it to have a UI rework like Xamarin Studio did about a year ago.
Comment 22 Cody Russell 2014-02-03 22:11:24 UTC
Yeah, it is very weird. :(  I've only got one machine to test this on, and also one VMware image, and I've tried reproducing this on them both but I've never been able to. I'm sorry.

I don't see a bug open for the Font Options panel you're describing, but that's easy to reproduce. I've filed a new bug for that here: https://bugzilla.xamarin.com/show_bug.cgi?id=17584
Comment 23 Mikayla Hutchinson [MSFT] 2014-02-03 23:01:43 UTC
I'm sorry if I gave the impression that I don't believe you. I *do* believe that's it's happening for you, but in order for us to fix the bug we need to reproduce it locally, so we need to figure out what is different in your environment that is triggering the issue.

The problem you mention about requiring a long press on the build configuration combo is perhaps related, since I don't see that issue either (though I do see the issue with the fonts combo).

Maybe it has something to do with the mouse. Are you using a touchpad, touchscreen, or a mouse? Does it have some custom driver/software from the manufacturer?
Comment 24 Imgen Tata 2014-02-05 08:41:03 UTC
No. I am just frustrated. 
Anyway, I'll provide information you asked. I am using a Logitech mouse which is of course using Logitech's driver. But I can hardly imagine it has something to do with mouse. And the same issue happens with touchpad and touch screen too. I believe that no matter what, the source of the mouse event does not make much difference. I am inclined to think that this issue is just that GTK# being sucky or GTK being sucky for that matter. It's never good on Windows anyway. This probably is a GTK thing, not a Xamarin Studio thing. And if you have the patience, please click the tree a bit longer. Since it has the tendency that sometime, although very rare, it does work as expected. And I don't think it's an environment thing since I am having this issue on 3 different laptops, two Sony VAIOs (completely different models, one bulky laptop, one ultrabook), one Intel ultrabook. All Windows 8/8.1 OS though. I don't have this issue with Windows 7. 

This issue has something to do with focus though. Here it goes:
#1, Open a project, now the solution does not have focus
#2, Click a node in the solution pane, it can expand or collapse correctly
Click the same node again, it won't work as expected, nothing happens
#3, Click somewhere else to make the solution pane lose focus, the important thing is to make it lose focus, use a keyboard combination if you like
#4, Click the same node, it works as expected

Now I hope you get the idea

I guess that the "Build Configuration" combo box problem also has something to do with the focus. The symptom is below:
#1, click the combo, the list will show up for a moment(~500ms) and then hide itself
#2, long press the combo box, the list will show up and move to the desired item, and release the mouse, the desired item will be selected.


OK, I think I provided enough information, plus an video that I recorded. So it's your job to put these bits together, reproduce it, and fix it or pass it to relevant team.
Comment 25 Imgen Tata 2014-02-05 08:42:36 UTC
Some minor modifications

No. I am just frustrated. 
Anyway, I'll provide information you asked. I am using a Logitech mouse which
is of course using Logitech's driver. But I can hardly imagine it has something
to do with mouse. And the same issue happens with touchpad and touch screen
too. I believe that no matter what, the source of the mouse event does not make
much difference. I am inclined to think that this issue is just that GTK# being
sucky or GTK being sucky for that matter. It's never good on Windows anyway.
This probably is a GTK thing, not a Xamarin Studio thing. And if you have the
patience, please click the tree a bit longer. Since it has the tendency that
sometime, although very rare, it does work as expected. And I don't think it's
an environment thing since I am having this issue on 3 different laptops, two
Sony VAIOs (completely different models, one bulky laptop, one ultrabook), one
Intel ultrabook. All Windows 8/8.1 OS though. I don't have this issue with
Windows 7. 

This issue has something to do with focus though. Here it goes:
#1, Open a project, now the solution does not have focus
#2, Click a node in the solution pane, it can expand or collapse correctly
#3, Click the same node again, it won't work as expected, nothing happens
#4, Click somewhere else to make the solution pane lose focus, the important
thing is to make it lose focus, use a keyboard combination if you like
#5, Click the same node, it works as expected

Now I hope you get the idea

I guess that the "Build Configuration" combo box problem also has something to
do with the focus. The symptom is below:
#1, click the combo, the list will show up for a moment(~500ms) and then hide
itself
#2, long press the combo box, the list will show up and move to the desired
item, and release the mouse, the desired item will be selected.


OK, I think I provided enough information, plus an video that I recorded. So
it's your job to put these bits together, reproduce it, and fix it or pass it
to relevant team.
Comment 26 Mikayla Hutchinson [MSFT] 2014-02-05 18:11:01 UTC
I use Xamarin Studio on Windows 8.1 almost every day and I have never seen clicks fail to register on the solution pad in normal use. I have also attempted your repro steps many, many times without seeing this happen. It's not a case of not trying enough - it must be something specific to the environment on your machines, maybe locale, drivers, Windows theme, a Windows setting, or an other app or utility.

I'm sorry, but we're going to have to leave this bug in the NEEDINFO state until we get additional environment information from you or another user that helps us identify what in the environment is triggering this.
Comment 27 Mikayla Hutchinson [MSFT] 2014-02-05 18:12:20 UTC
FWIW, I was re-reviewing the video you pasted earlier and I noticed something strange - the editable area of the global search box (in the top right of the XS window) has a rendering glitch that seems to indicate some kind of size calculation problem, which might be related.
Comment 28 Mikayla Hutchinson [MSFT] 2014-02-05 18:22:19 UTC
Yeah, the only time I saw that issue before was in the screenshots of bug 9744. Do you have display scaling enabled?
Comment 29 Cody Russell 2014-02-05 18:30:39 UTC
I have two more questions:

When you have Xamarin Studio in a state where the treeview node will not expand upon clicks, if you enter the expander-triangle with your mouse does it change color (from white to black)? I'm curious if it's responding to mouse motion events but not click events, or if it's not responding to either one.

Also, you mentioned this being a touchscreen device. Out of curiosity, do you also use Xamarin Studio on a Windows machine that doesn't have touch hardware/drivers? If so, do you have the same problems with the treeview there?
Comment 30 Cody Russell 2014-02-05 18:42:56 UTC
Also, does this device you're running on have a high DPI screen by any chance?
Comment 31 Imgen Tata 2014-02-05 19:50:35 UTC
I noticed the search box issue too ---- the bottom border is not rendered correctly. 
I do have a high DPI screen, but this is another myth I guess, like the mouse theory, since I have a 1600x900 13" screen, it is not a high DPI screen, but still has this issue. And even if I disable high DPI display scaling in the compatibility section of file properties dialog, the issue still persists.

For the bug you mentioned, 9744, I see that it's not fixed either - over a year now and still not fixed. Incompetency? No? 

As for the color of the expander, it's always black. It never is white and never change color.

Ok, this is final. I will not provide further info, or spend any energy on this. I reported this bug twice, spent hours and hours on this thing, and cannot even get it reproduced, not to mention fixed. I am done, through with this.

Incompetency? No? Forgive me for being rude.
Comment 32 Mikayla Hutchinson [MSFT] 2014-02-05 21:49:42 UTC
No, prioritization.

Relatively very few people use Windows in hi-dpi mode, all it causes (as far as we know) is some minor rendering glitches, and it's a lot of work to fix since it requires deep and complex changes to GTK+.
Comment 33 Mikayla Hutchinson [MSFT] 2014-02-05 22:01:50 UTC
I understand that this bug is frustrating, and we have put significant effort into investigating it, however it appears to be specific to your environment. I'm sorry, but unless you can answer further questions about your environment we will be unable to make any further progress in diagnosing and fixing the issue.
Comment 34 Imgen Tata 2014-02-16 07:56:25 UTC
Ok, my bad. The latest version of Xamarin Studio does not have the combobox and tree view issue on my 1600x900 resolution 13" Ultrabook. I was very stupid by assuming it wound't work since last time it really didn't work and sorry for being a little bit angry about it. So I want to know anything I can provide to you guys to fix this issue? Because I don't want to give up the high DPI screen just for Xamarin Studio to work a little bit better.
Comment 35 Mikayla Hutchinson [MSFT] 2014-02-18 17:54:06 UTC
It seems likely that it's related to high dpi mode. Cody is investigating improved high dpi though we can't promise a timeline for a fix since it's pretty complex.
Comment 36 Sergey Khabibullin 2014-03-03 02:15:04 UTC
This is not Windows-only. And, yes, it's a long-standing bug.
I reported it a year ago (https://bugzilla.xamarin.com/show_bug.cgi?id=10800).
I remember the bug appeared after migration from 2.x. The problem is relevant for at least two Linux machines that run MonoDevelop. For me, this thing happens, for example, after solution pad got focus from a Dialog.
Comment 37 MrSmith 2014-04-03 17:29:20 UTC
Same issue here, right out of the box. Did not use any special settings. My laptop has no fancy hardware/software modifications - i like to keep certain things functional.

Product: Xamarin Studio
Version: v4.2.3 (build 60)
Environment: Windows 7 Pro (64bit)
Priority: Medium
GTK#: v2.12
Hardware: Dell Precision Workstation
Screen Resolution: 1920x1080 (recommended setting)

Steps to reproduce:
1. Installed Xamarin Studio
2. Open a project solution
3. Expand any item under your solution (this works 'iffy)

Actual Results:
Unable to collapse.

Workaround:
* Use keyboard shortcut
* Doubleclick item (this works so-so)
Comment 38 Jason Imison 2016-10-25 14:33:55 UTC
Created attachment 18216 [details]
Working at 5k

I'm using XS 6.2 on Windows with a 5k (5120x288) screen here and no issues. Is this still an issue for anyone?

Xamarin Studio Enterprise
Version 6.2 (build 530)
Installation UUID: d6144b0e-1282-4f5b-97e0-b29e3295e1a8
Runtime:
	Microsoft .NET 4.0.30319.42000
	GTK+ 2.24.26 (Dark theme)
	GTK# 2.12.40
Comment 39 Jason Imison 2016-10-25 14:36:17 UTC
(5120 x 2880)
Comment 40 Cody Russell 2016-10-31 17:10:58 UTC
This should be fixed now.