Bug 2751 - Intellisense does not update for Resources
Summary: Intellisense does not update for Resources
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 2.8.5
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: shana@xamarin.com
: 3164 3264 ()
Depends on:
Reported: 2012-01-05 14:19 UTC by Mike Bluestein
Modified: 2014-11-15 03:36 UTC (History)
5 users (show)

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

simple test case with 2 buttons (22.62 KB, application/zip)
2012-01-05 14:19 UTC, Mike Bluestein

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:

Description Mike Bluestein 2012-01-05 14:19:13 UTC
Created attachment 1131 [details]
simple test case with 2 buttons

Description of Problem:

When adding a new resource to an android xml file, the resource is generated correctly when building, as using it in code builds ok. However, intellisense for the new resource only appears after opening and closing the Resource.designer.cs file.

(Running MD 2.8.5 - there isn't a 2.8.5 in bugzilla for MD ... see bug 2659)

Steps to reproduce the problem:
1. Add a new button to Main.axml, giving it an id
2. In code reference the button through Resource.Id and build.

Actual Results:

Everything builds ok, but typing Resource.Id. displays an intellisense list without the new button.

Expected Results:

The button's id should appear in the intellisense list

How often does this happen? 


Additional Information:

I attached a trivial test case which is in a state where it has the new button and builds ok with code that references it, but the intellisense list doesn't show the button because I haven't opened Resource.Designer.cs.
Comment 1 Mikayla Hutchinson [MSFT] 2012-01-05 15:54:03 UTC
We probably need to emit a file change notification after running the msbuild target.
Comment 2 Mikayla Hutchinson [MSFT] 2012-01-06 20:06:20 UTC
Fixed in master.
Comment 3 Mikayla Hutchinson [MSFT] 2012-01-31 17:43:04 UTC
*** Bug 3164 has been marked as a duplicate of this bug. ***
Comment 4 Mikayla Hutchinson [MSFT] 2012-02-08 13:21:39 UTC
*** Bug 3264 has been marked as a duplicate of this bug. ***
Comment 5 akash 2012-02-09 01:53:34 UTC
Hi Michael, can you please advise how can we emit a file change notification after running the msbuild target ??
Comment 6 Mikayla Hutchinson [MSFT] 2012-02-09 13:33:31 UTC
That's something that the addin does, it's not something you can do manually.

You may be able to work around this by switching focus to another app then back to MD, which would force MD to detect changes in all files of the project.
Comment 7 Christopher Svanefalk 2014-11-15 03:36:49 UTC
This is still an issue - just ran across it in a fresh project after starting to use MonoDroid.

=== Xamarin Studio ===

Version 5.5.3 (build 6)
Installation UUID: fb249e80-2b94-4e1a-bb82-1f0a76379e63
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

=== Xamarin.Android ===

Version: 4.18.1 (Business Edition)
Android SDK: /Users/csvanefalk/Library/Developer/android-sdk-osx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.0    (API level 11)
		3.1    (API level 12)
		4.0    (API level 14)
		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)
		4.5    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 80e9ff7
Build date: 2014-10-22 15:09:12-0400

=== Xamarin.Mac ===


=== Build Information ===

Release ID: 505030006
Git revision: fbe3e9453daf6a3bb9a9709ed22bec35f7c9056b
Build date: 2014-10-23 13:08:38-04
Xamarin addins: e44add2b39de4dd57c0742bb2e620dfad84c64c6

=== Operating System ===

Mac OS X 10.10.0
Darwin Christophers-MacBook-Pro.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