Bug 53353 - [VS 2015][Android Designer][4.3.1.33] Android widget Intellisense not working in case of VS.
Summary: [VS 2015][Android Designer][4.3.1.33] Android widget Intellisense not working...
Status: VERIFIED ANSWERED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: 15.2
Assignee: Stephen Shaw
URL:
Depends on:
Blocks:
 
Reported: 2017-03-15 13:12 UTC by Jacky Waswani
Modified: 2017-05-24 11:06 UTC (History)
9 users (show)

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


Attachments
Logs & screenshot attached. (70.75 KB, application/x-zip-compressed)
2017-03-15 13:12 UTC, Jacky Waswani
Details
DesignerLogs (6.81 KB, application/x-zip-compressed)
2017-03-20 12:06 UTC, Jacky Waswani
Details
Attaching obj/Debug/Schemas/25.zip (145.96 KB, application/x-zip-compressed)
2017-03-31 10:04 UTC, Aman Dharwal
Details
IDE Logs for VS 2015 (11.11 KB, application/x-zip-compressed)
2017-05-18 09:57 UTC, Pratik Lad
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 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:
VERIFIED ANSWERED

Description Jacky Waswani 2017-03-15 13:12:30 UTC
Created attachment 20351 [details]
Logs & screenshot attached.

Description:
Intelligence not displayed when trying to change the component or value of the android widget from the designer source.

Environment:
Xamarin for VS - 4.3.1.33
XA - 7.2.0.1
XI - 10.8.0.17

Steps to reproduce:
1. Create single view Android project.
2. Double click on Main.xaml file to open the designer.
3. Drag button on to the designer.
4. Click on Source tab to open the designer source code.
5. Try to add more values into the button code from source, enter "a" to open the intelligence & observe.

Actual: Intelligence not displayed for the widget value available.

Expected:
All the property should start with android widget & should displayed in intelligence window.

NOTE: Its working fine with Xamarin studio on MAC machine.

Please find the attached logs & screen shot for more detail.

Also find the expected screen-cast: http://www.screencast.com/t/obioqB5FwZ6
Comment 3 Jacky Waswani 2017-03-20 12:06:24 UTC
Created attachment 20456 [details]
DesignerLogs

Hi,

Issue is still reproducible in latest 15.1-RC build.
And also reproduce for Vs-2017 build 4.4.0.5

Attached the logs for more details.
Comment 4 Roshan Mankani 2017-03-23 09:39:57 UTC
@jeremie,

I am reverting back the status for this defect to "New" since requested logs are been provided.

Please check and let us know if there any more information you need on this defect.
Comment 5 Stephen Shaw 2017-03-27 15:27:51 UTC
Ok, it looks look it won't autocomplete the namespace, but once you have "android:" typed in or whatever prefix is being used that it'll autocomplete the rest.

I'll figure out why it is doing that.
Comment 6 Stephen Shaw 2017-03-30 17:58:23 UTC
Jacky, would you be able to go into the obj/Debug/Schemas/*/ and zip up and attach the xsd files. There should be about 4 files.

* -> it'll be some number. Probably 25? It doesn't really matter which number is there though.
Comment 7 Aman Dharwal 2017-03-31 10:04:56 UTC
Created attachment 21094 [details]
Attaching obj/Debug/Schemas/25.zip
Comment 8 Aman Dharwal 2017-03-31 10:06:03 UTC
@Stephen Attached 25.zip you asked for , Kindly check the attachment
Comment 9 Pratik Lad 2017-05-18 09:56:32 UTC
Hello,
This bug is still reproducible for VS 2015 and VS 2017 
Verified on build :-
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Xamarin   4.6.0.600 (8a9c886)
Xamarin.Android   7.3.99.38 (21d46f4)
Xamarin.iOS   10.11.0.144 (c3cecd5)


Build Information:-
https://gist.github.com/p-lad/fbbf73239195810a9bdd1d9ebc4814d1

Screencast link :-

http://www.screencast.com/t/qv2KNXBsP9b


Attached Logs
Comment 10 Pratik Lad 2017-05-18 09:57:04 UTC
Created attachment 22255 [details]
IDE Logs for VS 2015
Comment 11 Alan McGovern 2017-05-18 10:06:13 UTC
We do not control *when* the intellisense popup appears. If you write some text and the popup does not appear because you started typing while the caret was right beside the `/` character then that is normal Visual Studio behaviour and it is correct.

We are only concerned about the contents of the popup when it appears. In this case it looks like it does contain all the correct information when it appears, so this bug looks like it's validated-resolved.

If you think the bug still exists can you describe what the problem is?
Comment 12 Tanmay Bhattacharjee 2017-05-19 09:13:01 UTC
Hi Alan,

Issue here is intellisense only work when user pass command as ctrl+space without any character written.

When user write any latter say "a", intellisense not working & doesn't show the recomadations which is perfectly fine with VSFM.

I also crosschecked with Android studio, its working fine.


Expected: intellisense should work with blank or some latter entered.

Screencast link for more info for the bug: http://www.screencast.com/t/GZgYzP9Zu
Comment 13 Stephen Shaw 2017-05-23 17:57:37 UTC
@Tammay unfortunately, I believe this is how it works in Visual Studio (for Windows). As far as I can tell this is because there are several namespaces. I don't know if it is because as soon as you type a character it views it as an invalid namespace? With it being a blank line everything is an option. If you type in "android:", "app:", "tools:", etc it'll provide a completion list again however without the namespace included.

Part of the reason you see this work in things like Visual Studio for Mac and Android Studio is because they do not use XSD files for their intellisense or validation support. With Visual Studio we are generating and regenerating the XSD files on the fly because of the dynamic nature of android layouts (ie, changes to +ids, strings, colors, other layouts, libraries and their resources, etc).

The hope for the future is a much better system, but for now we have to use XSD.

Marking it as Resolved because this is how the system works in VS. :(
Comment 14 Jacky Waswani 2017-05-24 11:06:53 UTC
As per Comment 13 , Intelligence only works with ctrl+space on blank line.
Also it works in case of user types  "android:", "app:", "tools:", etc 

As this is expected for Visual Studio, hence marking this bug as Verified.

Test Environment:
Microsoft Visual Studio Enterprise 2017 Preview Version 15.3 (26510.0-Preview) Preview VisualStudio.15.Preview/15.3.0-Preview+26510.0
Microsoft .NET Framework Version 4.6.01586
Xamarin   4.6.0.620 
Xamarin.Android SDK   7.3.99.44 
Xamarin.iOS and Xamarin.Mac SDK   10.11.0.144