Bug 14196 - Check for device before saying one is not attached
Summary: Check for device before saying one is not attached
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.3.x
Hardware: PC Windows
: Low enhancement
Target Milestone: 1.6.x (connection)
Assignee: dean.ellis
Depends on:
Reported: 2013-08-22 20:35 UTC by James Clancey
Modified: 2013-11-13 11:54 UTC (History)
6 users (show)

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

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 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:

Description James Clancey 2013-08-22 20:35:41 UTC
A lot of times, I am told by MTVS that there is no device attached. There is a device attached and I just have to click the refresh thing before it works. Can it auto check for me before complaining?
Comment 1 Dominique Louis 2013-09-03 08:30:46 UTC
James, there should be a timer that requests device info from the server every few seconds. It will say "No Devices" if the connection to the server has dropped. Click refresh will typically re-establish a server connection, which then give use the attached device data. We have since implemented a cached list of devices, for when the server connection drops.
Comment 2 James Clancey 2013-09-03 11:51:44 UTC
Something is obviously broken.  I left my machines paired and on all night without my phone connected. I woke up this morning to VS still seeing my iPhone connected.
Comment 3 Bo Pang 2013-10-09 14:00:49 UTC
Today I check this issue with MTVS 1.6.71.

I tried to connect and disconnect the device on the build server and it takes about 1 min before the devices connection information is refreshed.

@Dominique, is that a expected behavior?
Comment 4 Dominique Louis 2013-10-09 14:34:08 UTC
It shouldn't take a minute. The list is usually refreshed within seconds.
Comment 5 dean.ellis 2013-10-09 14:50:39 UTC
Dom, the device cache might be getting in the way here as it only refreshes every minute. I don't think we really need it now. I'll test it and find out.
Comment 6 dean.ellis 2013-10-10 09:19:42 UTC
The device cache has been removed, users will only have to wait a max of 5 seconds.

Fixed in XamarinVS/master/afcb510908
Comment 7 Mohit Kheterpal 2013-11-13 11:54:35 UTC
Today we have checked this issue with following builds :

VS 2013
MTVS 1.8.360

Now when we plugh or unplugh device from server then VS reflects it within 2 or 3 seconds.

Hence closing this issue.