Bug 31757 - Custom attributes aren't included in "intellisense" popup
Summary: Custom attributes aren't included in "intellisense" popup
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 5.2
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2015-07-08 15:06 UTC by Justin
Modified: 2016-02-09 01:12 UTC (History)
5 users (show)

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


Attachments
No custom attributes show up in "intellisense" list (279.07 KB, image/png)
2015-07-08 15:06 UTC, Justin
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 for Bug 31757 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Justin 2015-07-08 15:06:16 UTC
Created attachment 11940 [details]
No custom attributes show up in "intellisense" list

I use a lot of custom defined attributes in my app. When I start typing "?attr" in an xml layout file, none of my custom attributes show up in the list.

If I actually get to typing the / after ?attr then the "intellisense" window closes and auto-fills whatever was selected.  This part is EXTREMELY irritating as I have to remember to hit escape before typing the slash.
Comment 1 Udham Singh 2015-07-10 07:55:41 UTC
I have tried this issue and unable to reproduce the reported behavior at my end.

Could you provide us sample test project along with the bug so that I can reproduce this issue at my end.It would be great if you provide us IDE log,Environment Info.

IDE log via help->open log directory.
Environment Info via Xamarin Studio->About Xamarin Studio->Show Details.

Environment Info:

=== Xamarin Studio ===

Version 5.9.4 (build 5)
Installation UUID: 93e693b0-b53d-40f4-b29c-b61ff5cbe892
Runtime:
	Mono 4.0.2 ((detached/c99aa0c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400020005

=== Xamarin.Android ===

Version: 5.1.4.16 (Enterprise Edition)
Android SDK: /Users/xamarin23/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 6.3 (7569)
Build 6D570

=== Xamarin.iOS ===

Version: 8.10.3.2 (Enterprise Edition)
Hash: 8b265d6
Branch: master
Build date: 2015-06-30 15:19:13-0400

=== Xamarin.Mac ===

Version: 2.0.2.40 (Enterprise Edition)

=== Build Information ===

Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 16:52:06-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8

=== Operating System ===

Mac OS X 10.10.0
Darwin 800BC.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Justin 2015-07-22 13:23:41 UTC
What steps did you take to try to reproduce the problem?  This happens in every single Android project I have ever created.

Here is my environment info: 

=== Xamarin Studio ===

Version 5.9.5 (build 5)
Installation UUID: ca8f03a4-5a35-4404-b7c9-2b6b7c4437a9
Runtime:
	Mono 4.0.3 ((detached/429313d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400030013

=== Apple Developer Tools ===

Xcode 6.4 (7720)
Build 6E35b

=== Xamarin.iOS ===

Version: 8.10.4.10 (Business Edition)
Hash: c57a2c7
Branch: master
Build date: 2015-07-09 15:56:39-0400

=== Xamarin.Mac ===

Version: 2.0.2.84 (Starter Edition)

=== Xamarin.Android ===

Version: 5.1.5.2 (Business Edition)
Android SDK: /Users/justin/Devel/android/sdk
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Build Information ===

Release ID: 509050005
Git revision: 8d5aa047f336e5129fff1b174a972021b087bd76
Build date: 2015-07-14 16:37:43-04
Xamarin addins: 3bc005cd1e150ae5f206c1cf76164f47f2f2b62c

=== Operating System ===

Mac OS X 10.10.4
Darwin Justins-MBP-2 14.4.0 Darwin Kernel Version 14.4.0
    Thu May 28 11:35:04 PDT 2015
    root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64
Comment 3 Stephen Shaw 2016-02-09 01:12:19 UTC
I can confirm this bug.

Using a file like this styles.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
    <attr name="my_color" format="reference" />

    <color name="my_color_dark">#ff33B5E5</color>
    <color name="my_color_light">#ff355689</color>

	<style name="MyTheme.Dark" parent="@android:style/Theme.Material">
	    <item name="my_color">@color/my_color_dark</item>
	</style>

	<style name="MyTheme.Light" parent="@android:style/Theme.Material.Light">
	    <item name="my_color">@color/my_color_light</item>
	</style>
</resources>

Main.axml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <Button
        android:id="@+id/myButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="?attr/my_color"     <-- this should show up in the autocomplete, but doesn't
        android:text="@string/hello" />
</LinearLayout>