Bug 23105 - Xamarin IDE preprocessor cache not updating with newer assemblies
Summary: Xamarin IDE preprocessor cache not updating with newer assemblies
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 5.3
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
: 21233 ()
Depends on:
Blocks:
 
Reported: 2014-09-17 12:49 UTC by Thomas McKane
Modified: 2014-12-30 07:32 UTC (History)
5 users (show)

Tags:
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 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:
VERIFIED FIXED

Description Thomas McKane 2014-09-17 12:49:23 UTC
Having to erase the files under Library/Caches/XamarinStudio-5.0/DerivedData/ to force Xamarin to update the DLL methods/properties or the preprocessor throws an error in the IDE.  Source still compiles, just says it's an error due to outdated cache.  Confirmed with multiple projects and assembly tests.

Method to reproduce:

1. Create a new blank class library, add 3 new methods.
2. Compile to release version
3. Create a new project, whatever kind you want
4. Add the DLL from step 2 and add #include in your current project
5. Create instance and check for all 3 methods
6. Close project and edit the original class library and add a new method, compile to release version
7. Re-open the new project that references the class, check for the new method from step 6
8. Clear cache under Library/Caches/XamarinStudio-5.0/DerivedData/
9. Check again, it's there.
Comment 1 Ram Chandra 2014-09-18 07:39:11 UTC
I have checked this issue with steps provided with bug description but I am unable to reproduce this issue.

Observation: I am getting same result for both the condition when I delete files from DerivedData or without  delete the files from DerivedData directory. I have add a new method and build the project on release mode then in my console project when I try to access that method with the help of object XS intelliSense doesn't display that method but when I type that method any build the project I am not  getting any error.

If you have chance please have a look on provided screencast and let me know if I am missing something. 

Screencast: http://www.screencast.com/t/8NzhkhQib72

Could you please provide build information ? So that we can reproduce this issue at our end.

you can get build information from here:

Xamarin Studio => About Xamarin Studio => Show Details=> Copy Information.

Environment Info:

=== Xamarin Studio ===

Version 5.3 (build 441)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
Runtime:
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Build Information ===

Release ID: 503000441
Git revision: befb6aa1176d37a5f678f4274f340a0159091b7a
Build date: 2014-09-08 17:57:02-04
Xamarin addins: 6dc7c388e31fdfc8014689839d37de0d4622435c

=== Operating System ===

Mac OS X 10.9.3
Darwin Jatin66s-iMac.local 13.2.0 Darwin Kernel Version 13.2.0
    Thu Apr 17 23:03:13 PDT 2014
    root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
Comment 2 Thomas McKane 2014-09-18 09:10:13 UTC
You described the issue:

"when I try to access that method with the help of object XS
intelliSense doesn't display that method"

Our code is red all over and shows errors in the IDE, but it will compile.  We need Intellisense to correctly update the references and not show errors in the IDE.
Comment 3 Ram Chandra 2014-09-19 04:40:41 UTC
As per Comment 2, I am confirm this issue. 

I am getting the same behavior as mentioned in bug I am able to use that method but IDE shows error on that method.

Workaround: If I remove the reference of old dll  from the console project and compile the library project and reference again the new dll to our console project, I am not getting that error.
Comment 4 Mike Krüger 2014-09-19 06:21:35 UTC
Works in a newer version - confirmed working with master.
5.7.0.209
Comment 5 Mike Krüger 2014-09-19 06:22:15 UTC
*** Bug 21233 has been marked as a duplicate of this bug. ***
Comment 6 Thomas McKane 2014-09-19 08:31:37 UTC
Not a duplicate as a restart doesn't fix like 21233 indicates.  We have to delete the cache manually to fix, nothing else works.

However, the newest beta version does fix this issue.
Comment 7 Mike Krüger 2014-09-19 10:32:21 UTC
I really whish that my fixes bubble up faster into the release versions :(

But we've a reason to be careful to push fixes to the releases.
Comment 8 Shruti 2014-12-30 07:32:39 UTC
I have checked this issue and it is working fine.  I have followed the steps given in comment(1) and observed that references is getting update  successfully without deleting and adding dll  again in references. 

Screencast: http://www.screencast.com/t/rS8LpwBxlB

Environment Info:
=== Xamarin Studio ===

Version 5.5.4 (build 15)
Installation UUID: 67eaf3b4-f8a7-4ab4-a9df-3197350ca5dc
Runtime:
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

=== Apple Developer Tools ===

Xcode 6.2 (6736)
Build 6C86e

=== Xamarin.Mac ===

Version: 1.10.0.18 (Trial Edition)

=== Xamarin.iOS ===

Version: 8.4.0.47 (Trial Edition)
Hash: 7244769
Branch: 
Build date: 2014-12-11 14:54:30-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Trial Edition)
Android SDK: /Users/ixamarin78/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		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)
		5.0    (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)

=== Build Information ===

Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8

=== Operating System ===

Mac OS X 10.10.0
Darwin XamnewiMac.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

Hence, Closing this issue